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 http://cakeqs.org and help others with 
their CakePHP related questions.

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


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:

 array('numeric'),
'from_contact_id' => array('numeric'),
'to_user_id' => array('numeric'),
'to_contact_id' => array('numeric'),
'project_id' => array('numeric'),
'sent' => array('date'),
'subject' => array('notempty')
);
var $belongsTo = array(
'FromUser' => array(
'className' => 'User',
'foreignKey' => 'from_user_id'
),
'FromContact' => array(
'className' => 'Contact',
'foreignKey' => 'from_contact_id'
),
'ToUser' => array(
'className' => 'User',
'foreignKey' => 'to_user_id'
),
'ToContact' => array(
'className' => 'Contact',
'foreignKey' => 'to_contact_id'
),
'Project' => array(
'className' => 'Project',
'foreignKey' => 'project_id'
)
);

}
?>

And I already read this:
http://book.cakephp.org/view/851/Multiple-relations-to-the-same-model

My code seems to comply. It's just not working. Any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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 code is:

Auth->authorize("actions");
$this->Auth->loginAction = array(
'admin' => false,
'controller' => 'people',
'action' => 'login'
);
$this->Auth->logoutRedirect = array(
'controller' => 'users',
'action' => 'login'
);
$this->Auth->loginRedirect = array(
'controller' => 'posts',
'action' => 'add'
);
}

}

?>

I've got CakePHP version 1.2.4.8284

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