Re: Cake Pages w/Multiple Actions, Multiple Models

2007-09-15 Thread bingo
another option that I feel gives more flexibility is this http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction so you end up writing lot of small elements and use views to compose these elements. However you will need to also consider how requestAction is affecti

Re: Cake Pages w/Multiple Actions, Multiple Models

2007-09-14 Thread McFadly
Ryan, This is a pretty standard question from people just getting started, so don't worry. The simple answer is in your controller, add the variable: $uses = array('Post, 'Comment'); You can then access both $this->Post->save(); and $this->Comment- >save(); from that controller. Of course any

Cake Pages w/Multiple Actions, Multiple Models

2007-09-14 Thread nryan
Hello everyone, I've been working with Cake and I understand exactly how everything works to create pages which are tied to one particular action with one particular model. However, I am building a web application which requires pages that can perform multiple actions on multiple models, dependi