Re: Cake AclBehaviour: editing controlled items

2009-08-14 Thread Nicky De Maeyer
Apperently this is a known issue and there's a bug trac on it. The version in which it will be fixed was set in 1.3, which is kind of strange imho... In The mean time I've been experimenting with the afterSave of Acl and with the code I added to this... I've perfected this and ironed out some

Cake AclBehaviour: editing controlled items

2009-08-13 Thread Nicky De Maeyer
I've stumbled upon this problem a while ago and fixed this by editing the core AclBehaviour, but i'm strugelling to get around this. Can someone explain me why this is the default behaviour? i'll take you through, step by step, of what I'm doing, and what's my problem. 1. I've got a model, Item,

Re: Related Models are an instance of AppModel

2009-06-10 Thread Nicky De Maeyer
That's the problem, it started out as a fully baked project: models, controllers, view, config,... all was baked so the file and class names, directories and path configs should be right... none of them were altered during development As i've said, we've stepped through it following the moves of

Related Models are an instance of AppModel

2009-06-09 Thread Nicky De Maeyer
I have the following code for my model 'Order': ?php class Order extends AppModel { public $name = 'Order'; public $validate = array( 'user_id' = array('numeric'), 'point_of_sales_id' = array('rule' = 'numeric', 'message' = 'numeric'),