Re: Newbie question for "best practice" on how to combine CakePHP with a (given) design

2010-03-31 Thread janitor048
Hey guys, thanks a lot for these very useful hints. I will definitely do some more reading and start experimenting along the lines of your suggestions. And probably come back with more specific questions then.. :-) Cheers, Oliver On Mar 29, 6:05 pm, cricket wrote: > To add to Jeremy's comments

Re: Newbie question for "best practice" on how to combine CakePHP with a (given) design

2010-03-29 Thread cricket
To add to Jeremy's comments, In your menu elements, you can refer to the present location with $this->here, so you can have logic for showing/hiding submenus, etc. and avoid having to create separate layouts for each menu situation. For my login_prompt element, I check if the user is already logg

Re: Newbie question for "best practice" on how to combine CakePHP with a (given) design

2010-03-29 Thread Jeremy Burns
Looks like a combination of layouts and elements. Don't forget you can create as many layouts as you want, and specify which one to use in your controller - either inside beforeFilter (so that it applies to all functions in the controller) or inside a controller function (which will override all

Newbie question for "best practice" on how to combine CakePHP with a (given) design

2010-03-29 Thread janitor048
Hi there, I'm pretty new to CakePHP (and MVC in general for that matter) and I'm just working through the docs etc. And since the cookbook is quite informative, I think I've got a pretty good idea of what CakePHP could do for me by now. However, I would like to ask a question on best or common pr