I am trying to display the images of my Houses from the folder but it shows the error like this
404 (Not Found)
My code is below
<?php
$PropertyType = "";
$image = "";
if($data != null)
{
foreach($data as $key=>$value)
{
$PropertyType = $value['PropertyType'];
$image=$value['HouseImage1'];
}
}
?>
the front-end code is this
<img src="<?php echo base_url('assets/images/House/'. $image);?>" alt="tab1" class="img img-responsive">
folders hierarchy is mentioned below
this is the model function
public function SIngleHouseADD($houseID)
{
$this->db->select('*');
$this->db->from('housedetail');
$this->db->where('HouseID', $houseID);
//$qry = $qry->result_array();
$query=$this->db->get();
$resultArray = $query->result_array();
return $resultArray;
//return $qry;
}
this one is the controller
public function SingleProperty()
{
//$HouseID = $_GET['id'];
$this->load->model('SingleAddModel');
$plots = $this->SingleAddModel->SIngleHouseADD($_GET['id']);
$data = array();
$data["data"] = $plots;
$this->load->view('SinglePropertyDetail_view', $data);
}