Welcome Guest, Not a member yet? Register   Sign In
how to included a file with in controller
#2

[eluser]TheFuzzy0ne[/eluser]
REPOST:

Hello sir,

I'm using common columnleft.php for all. Inside column left there is database connection retrieving data.but since there is no columleft in controller. Only in page it is showing correctly. Remaining page it is giving error. Help will be appreciated.

Thanks.

This is code of home page:
Code:
$this->load->model(‘excute’);
$data[‘login’] = $this->excute->loginname($username);
$this->load->view(‘header’,$data);      
$this->load->view(‘contentleft’);
$this->load->view(‘home’,$data);
$this->load->view(‘footer’);

Now if I am passing result is showing in particular page ie. in home page only.other page that is client details. it is showing error.

Quote:A PHP Error was encountered

Severity: Notice

Message: Undefined variable: login

Filename: views/contentleft.php

Line Number: 3

Help will be appreciated.


Messages In This Thread
how to included a file with in controller - by El Forum - 07-06-2009, 07:02 AM
how to included a file with in controller - by El Forum - 07-06-2009, 08:52 AM
how to included a file with in controller - by El Forum - 07-06-2009, 08:56 AM
how to included a file with in controller - by El Forum - 07-06-2009, 11:26 PM
how to included a file with in controller - by El Forum - 07-07-2009, 03:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB