Re: Contain with an associated plugin

2013-06-01 Thread Larry Lutz
was in the Group model. I do have some 'Users' routes, but they have to do with login, register, etc. That shouldn't affect the Group model on association. Thanks again for your help! On Friday, May 31, 2013 10:33:05 PM UTC-5, Larry Lutz wrote: > > I'm having diffic

Contain with an associated plugin

2013-05-31 Thread Larry Lutz
I'm having difficulty getting containable to work when the contained model is in a plugin. Specifically, I have a Group model that is associated with a Users (CakeDC) plugin. Normally, you just prefix the plugin model name with the plugin name such as Users.User, but it seems that the Containabl

CakePHP 2.x Moving Find into Model

2013-05-23 Thread Larry Lutz
I'm trying to achieve the fat model/skinny controller mantra in CakePHP 2.7. In that scenario, the model should control the data, and that means moving the finds out of the controllers and into the models. However, at least with the view and admin_view actions, one needs the data paginated. The

AppController Troubleshooting

2013-05-17 Thread Larry Lutz
I'm hoping that someone can give me some troubleshooting ideas. I have a CakePHP 2.2.7 application/site with 31 controllers in addition to AppController. Thirty of those controllers correctly import (actually use) AppController so that variables set in it are available in the other controllers

Re: CakeDC Categories with Associated Models

2013-02-09 Thread Larry Lutz
The simplest solution would be to just make the call to the model from > the controller action and set the returned string as a view var: > > $this->set('path', $this->Collection->Category->catFullPath(...)); > > Better yet, create an afterFind() method in the m

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

Returning Nested Set Items with Full Path

2012-12-04 Thread Larry Lutz
I'm working with Cake 2.2.4. I've learned perhaps more than I ever cared to about nested sets and really appreciate how well Cake manages them. Unfortunately, for all my research, I haven't been able to find a way to create an array from my Category model that will give the full path for each C