Welcome Guest, Not a member yet? Register   Sign In
Extracting Data via Model
#5

[eluser]jzmwebdevelopement[/eluser]
[quote author="InsiteFX" date="1333772905"]Controller:
Code:
$data['name'] = $this->model_name->function_name->();
[/quote]

InsiteFX.

In my controller I have the following line:

Code:
$data['companyName'] = $this->quote->getCompanyDetails->$companyName;
    
    $this->load->view('home', $data);

I am getting Undefined variable in my view

in my model do I have to write
Code:
public function ($field){
for every row that I wish to call from the database?


Messages In This Thread
Extracting Data via Model - by El Forum - 04-06-2012, 08:30 PM
Extracting Data via Model - by El Forum - 04-06-2012, 09:16 PM
Extracting Data via Model - by El Forum - 04-06-2012, 09:25 PM
Extracting Data via Model - by El Forum - 04-06-2012, 09:28 PM
Extracting Data via Model - by El Forum - 04-06-2012, 09:48 PM
Extracting Data via Model - by El Forum - 04-06-2012, 10:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB