Hi all,
The prob that i am facing is something like this.
I have a login form, I am able to do login after that I am showing
logout link on the left side. with that I want to display some more
contents one after the other. For this the data come from a table
called menu_items.
Now I am not understanding where to put the code for fetching the data
from the database.
I have a line of code:
$this->set('main_category', $this->MainCategory->find('list',
array('fields' => array('main_category_id','main_category')))); some
thing like this.
I am using default.ctp page. I placed this code here. But its throwing
error.
(Undefined variable: maincategory)
Where to put this line.
Please help me
:) :)
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
To unsubscribe, reply using "remove me" as the subject.