Re: Session ID keeps regenerating in Cake-1.2.0.5875 pre-beta

2007-11-01 Thread Divagater
I was having the same problem. Setting Security.level to medium resolves the issue for me. When I set the level to high I am logged out of my app on every page refresh. So the symptom is that I log in successfully and view the default page. If I click refresh I am logged out and redirected back

Re: Simple use of 1.2 authComponent

2007-06-22 Thread Divagater
Some one else just asked the same question about doing acl without having to add users to the aros table. I am not sure what the resistance there is. I Just think of it as another association where every user has one access request object. Here is how I use the auth component in 1.2. In

Re: slash escaping

2007-06-22 Thread Divagater
urlencode() should do the trick: http://us.php.net/urlencode ~Billy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: Which editor you use for views ?

2007-06-21 Thread Divagater
vim (console) with PHP syntax highlighting. I also use the php.vim script written by Tobias Schlitt for auto completion, auto docblock insertion, etc. .ctp files are set to php file type. Billy --~--~-~--~~~---~--~~ You received this message because you are

Re: The State of the Docs Address 2007

2007-06-19 Thread Divagater
Thanks for the update John. I look forward to seeing the 1.2 manual when it is released. I am pretty new to CakePHP and am developing my app on the 1.2.x.x code base. To date there has not been a single problem that I could not overcome by browsing this group, the api, or the Bakery. I encourage

Re: setting ACL dynamically for user 1.2

2007-06-17 Thread Divagater
If you use the Auth component the default is to deny all actions. You can allow access to actions on the fly with $this-Auth- allow('someAction') in a beforeFilter. So, maybe wrapping the allow method in your own conditional to test for group membership or ownership etc. is what you are looking

Re: Dynamically Create a Model and Bind it to a Table?

2007-06-03 Thread Divagater
imho creating a single events_data table that uses an event_id foreign key to join back the the events table is the way to go. The events_data table could have a text field that stores serialized arrays. See http://us2.php.net/serialize for details.

Re: using uuid component to create id's into my model

2007-06-02 Thread Divagater
I thought a behavior to insert UUID's would be better suited for this over the MySQL triggers I was using so I through one together. Here a link for anyone thats interested: http://bin.cakephp.org/view/109738435 I am working on posting the behavior to the bakery as well. Cheers, Billy

Re: ACL in Cake 1.2.0.5146

2007-06-02 Thread Divagater
Check this thread out if you haven't already: http://groups.google.com/group/cake-php/browse_thread/thread/479cd6f421ed29f7 The steps in the first post by cook worked for me when I tested it. I was also able to add aro's and aco's using 'cake/console/cake acl create ...'. The only caveat was

Re: using uuid component to create id's into my model

2007-05-30 Thread Divagater
` BEFORE INSERT ON `posts` FOR EACH ROW SET NEW.id = UUID(); Cheers, Divagater On May 30, 11:18 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Please if you have any working code snippet showing me how to integrate Daniel Hofstetter (http://cakebaker.42dh.com) Uuid component into my model, so