Re: App::Import and Model

2008-10-22 Thread BillBris
Thanks again. I altered my code to use $uses and removed the code for App::Import. Everything still works as expected. B. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, sen

Re: App::Import and Model

2008-10-22 Thread [EMAIL PROTECTED]
On Oct 21, 8:09 pm, BillBris <[EMAIL PROTECTED]> wrote: > Oddly enough, I added your suggestion and changed to debug=1 in the > core.php.  Everything worked just fine.  I returned the debug level to > 0 and everything still worked just fine.  The only difference was I > had turned off my dev box o

Re: App::Import and Model

2008-10-21 Thread Mathew
> Also, regarding using $uses.  There is no model for the controller, > therefore "$uses=null".  I'm of the understanding that if I add even > one model to the $uses list, I must add all, including the > controller's model, which there isn't one.  That is the reason for > keeping uses as null, and

Re: App::Import and Model

2008-10-21 Thread BillBris
Martin, Thanks, I'm still quite new to Cake and things like debug aren't always at the top of mind, but it is now. Oddly enough, I added your suggestion and changed to debug=1 in the core.php. Everything worked just fine. I returned the debug level to 0 and everything still worked just fine.

Re: App::Import and Model

2008-10-21 Thread [EMAIL PROTECTED]
See if any of these don't print at all of if they print something you are not expecting. debug(App::Import('Model', 'Category')); debug($category = new Category()); debug($categories = $category->findAll()); they should print something like: 1 Category Object { ... array(... lots of data here

App::Import and Model

2008-10-20 Thread BillBris
I've found the below to be true in both version 1.2 RC2 and RC3. I have a simple controller Home that has $uses = null, as it does not have any data associated with the page (It's a home page and very boring right now). In order to get some data into the view from another model (Category), I am