? about findAllThreaded and hasMany

2007-02-08 Thread river_jetties
I have a controller that makes a call to a findAllThreaded for "menu headers". Now each of these "menu headers" has a has-many relationship to "menu items". How would I make the conditional syntax for the findAllThreaded so that it will only select menu items that are active? thanks, jonathan

Re: anything similar to acts_as_tree in Rails

2007-01-20 Thread river_jetties
any update on this. I just dl'd the 1.2 nightly build and don't see anything in the behaviors folder. Let me know if I'm missing anything. I'd really like to do something in Cake if I can get this piece of functionality iron'd out. --~--~-~--~~~---~--~~ You rece

being able to set the base root to an action / controller with parameter

2007-01-07 Thread river_jetties
I see how the default route is setup and how default actions get mapped in this manner: http://www.domain.com/cake/controller/action/$var1 assuming that cake is set up in the development environment. What I'd like to be able to do is have: http://www.domain/com/cake/$var1 map to a controller an

anything similar to acts_as_tree in Rails

2007-01-07 Thread river_jetties
I'm thinking of doing a project in cake and would like to know if there is a model convention similar to 'acts_as_tree' in rails. -j --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to t

Fatal error: Class 'Dispatcher' not found

2007-01-05 Thread river_jetties
I'm trying to install cake php and am getting this error. i'm assuming that there is an autoload functionality that will load the dispatcher.php file. Should the directory to this be in the include path? the docs seem to imply no. thanks jon --~--~-~--~~~---~--

Re: handling different routing patterns / newbie question

2006-07-09 Thread river_jetties
i think that's what we're thinking. The issue is that since the URL is linear, you will have to do things like verify against a list of controllers that you're not interfering with their namespace. That would be the advantage at getting it at the level of the Dispatcher (I would think) since you

Re: handling different routing patterns / newbie question

2006-07-09 Thread river_jetties
thanks for quick response. i'm less'ing through the dispatcher.php and see what (if anything) could be done. Maybe run a check against a db table where we map urls to longer filenames like http://www.domain.com/Content/$id or something. It looks like one of the if statements that set missingCont

handling different routing patterns / newbie question

2006-07-09 Thread river_jetties
Is it possible in cake to have something like the following in terms of URLS: http://www.domain.com/ -> index domain and then have various Controllers like: http://www.domain.com/Users/ http://www.domain.com/Users/edit/ http://www.domain.com/Places/ but also have a set of things that would l