Welcome Guest, Not a member yet? Register   Sign In
unable to get data through result()
#8

(09-06-2015, 11:18 AM)nady Wrote: Now i got 1 notice 1 warning

Notice Message: Undefined variable: top

Warning Message: Invalid argument supplied for foreach()

both error shows in view file.

Modify this in your controller:

PHP Code:
public function index()

{
$this->load->database();
$this->load->model('select');
$data['cat'] = $this->select->select();
$data['top'] = $this->select->topmenu();
$this->load->view('HomeView'$data);

Reply


Messages In This Thread
unable to get data through result() - by nady - 09-05-2015, 11:15 PM
RE: unable to get data through result() - by nady - 09-06-2015, 07:36 AM
RE: unable to get data through result() - by nady - 09-06-2015, 11:18 AM
RE: unable to get data through result() - by pdthinh - 09-06-2015, 11:30 AM
RE: unable to get data through result() - by nady - 09-06-2015, 11:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB