Re: Show Multiple Controllers in one View

2009-07-02 Thread red
Check $uses attribute of Controller: http://book.cakephp.org/view/51/Controller-Attributes#components-helpers-and-uses-53 var $uses = array('Portfolio', 'Section'); and later for example in view action in Portfolio controller simply: $this-Section-find('all'); On Jul 2, 4:07 am, Deuce

Re: Show Multiple Controllers in one View

2009-07-02 Thread Adriano Varoli Piazza
On 2 jul, 08:31, red mbu...@gmail.com wrote: Check $uses attribute of Controller:http://book.cakephp.org/view/51/Controller-Attributes#components-help... var $uses = array('Portfolio', 'Section'); and later for example in view action in Portfolio controller simply:

Re: Show Multiple Controllers in one View

2009-07-02 Thread brian
You probably want to associate Portfolio with Section. Maybe P hasMany S / S belongsTo P, unless a Section can belong to more than one Portfolio, in which case they'd be HABTM each other. Once you have the associations correctly set up you could use Containable to fetch the data. On Wed, Jul 1,

Show Multiple Controllers in one View

2009-07-01 Thread Deuce
I might have the terminology incorrect, but here is what I have. Sections - This has a list of Sections. Images - This is an image uploader that is associated with Sections. These two parts work fine. What I am trying to get it to do is on my Portfolio view, i would like for all of the