Re: Four sites using same database, but only their own records

2008-04-22 Thread ModByChris
Or you could use a beforeFind() to add the condition. I used that on a project that dealt with multiple finanical years. I changed the beforeFind() to alter the conditions to include the restriction of a specific year. in your case something like this in AppModel (having defined ARTIST_ID in boo

Re: DarkAuth and HABTM Relationship

2008-04-04 Thread ModByChris
The DarkAuth component just calls your User->find() method, I would suggest you double check your User model to ensure that your associations are set correctly there. ie. from the SQL I would say your User model has a single group association rather than habtm. ModByChris On Apr 3, 3:36

Re: DarkAuth in home.ctp

2008-04-04 Thread ModByChris
The controller that your home.ctp view uses is the PagesController The error is showing that your User model doesn't exist within your Pages controller. Did you set up your AppController to automatically include the Users model to all controllers? e.g. in your AppContoller definition you should

CakePHP 1.2 Routing with prefixes

2008-03-31 Thread ModByChris
I have not been able to find the way around this an it seems like it should be possible. I have a News controller, and I am dealing with a biennial event, so I have items for 2007,2009 and eventually more. I want to identify which set of news items to display, but using the URLs: /2007/news/:acti