One thing that has helped me tremendously as I learn this framework is
to print the contents of $this->params and/or $this->data when I'm
working on a function/view and getting stuck.  Just do something like
this in your controller (at all points before a view might be
rendered):

set('currData', $this->data);
set('currParams', $this->params);

and add this to your view:

<pre>
<?php print_r($currData);
print_r($currParams); ?>
</pre>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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