http://manual.cakephp.org/chapter/6
Basically you need to query your model using $this->Post->find($yourparamshere) which will return an array of results.
If you do a pr($result) it will output the structure of your array in the browser and you can see how to access the title. At that point you can do what you like with it.
On 6/8/06,
Garth Braithwaite <[EMAIL PROTECTED]> wrote:
IT makes perfect senses. Question number two is solved. On question
one I figured that was the answer, but I guess my real question is how
do I retrieve the title of the blog post from the database in the
controller before I use $this->pageTitle = $PostTitle;? I know how to
do this using php, but I am guessing there is a cleaner way to do in
the cake php.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" 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
-~----------~----~----~----~------~----~------~--~---
- Re: Layout Help John Zimmerman [gmail]
- Re: Layout Help Garth Braithwaite
