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.  The only difference was I
had turned off my dev box overnight and this was a fresh run.  Very
odd.

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 App::Import to bring in an external model.

Am I correct in my thinking?

Thanks again for the help.
B.

On Oct 21, 2:37 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> 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..,
>
> Come to think of it... you don't have debug set to 0, right? Just
> checking.
>
> To save yourself the trouble of instantiating the Model, why don't you
> have it defined in $uses?
> The loss in performance will be so small you wont need to worry about
> it... ever, probably.
>
> /Martin
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to