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
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:
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,
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