Need help: How can I use xdebug to debug Cake shells?

2009-12-22 Thread Laran Evans
I've read oodles of documentation, I can't find anything anywhere that covers how to use xdebug to debug PHP CLI scripts, let alone with those written as Cake shells. This is a huge issue for me right now. Can anyone shed some light on this? Thanks. Check out the new CakePHP Questions site

Multiple belongsTo relations to the same table fails

2009-09-22 Thread Laran Evans
This is the error I get: Missing Database Table Error: Database table to_users for model ToUser was not found. Here's the code that prompts it: ?php class Mail extends AppModel { var $actsAs = array('Containable'); var $name = 'Mail'; var $validate = array(

Call to undefined method AuthComponent::authorize()

2009-08-30 Thread Laran Evans
I'm following this guide to setup an ACL: http://book.cakephp.org/view/648/Setting-up-permissions When I run my code though I get this error: Fatal error: Call to undefined method AuthComponent::authorize() in C: \Development\Projects\LinkBuilder\cake\trunk\app\app_controller.php on line 8 The