Re: CakeDC Categories with Associated Models

2013-02-09 Thread Larry Lutz
That works super-great for something like view.ctp where you're dealing with a single entity/record. That's exactly what I've done for those situations. The issue becomes much, much more complicated for something like index.ctp where you have to apply it to every record with a foreach loop. It'

Re: CakeDC Categories with Associated Models

2013-02-09 Thread lowpass
I think you're mixing up Models and Helpers. Your Collection model has an association with Categories.Category, using the alias Category, so you can do $this->Collection->Category->whatever() But, you can't call model methods in the view. You can, but you shouldn't. From the view's perspective, $t

CakeDC Categories with Associated Models

2013-02-09 Thread Larry Lutz
I'm attempting to use the CakeDC Categories plugin in CakePHP 2.3.0. Unfortunately, CakeDC's documentation is notoriously vague and incomplete, and my knowledge of Cake is very elementary. The problem is that, when dealing with hierarchical categories, Category.name is very unhelpful. For insta