saveField with invalid ID creates a blank record

2012-05-18 Thread Richard@Home
CakePHP 2: Not noticed this behaviour before, is it by design? (Seems odd if it is...) CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(32) NOT NULL, `password` varchar(64) NOT NULL, `is_active` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY

Re: CakepHP 2.0 plugins no longer have a default controller?

2011-11-14 Thread Richard@Home
Just in case anyone else is looking for the answer to this: I posted a ticket on CakePHP's issue tracker: http://cakephp.lighthouseapp.com/projects/42648/tickets/2237-20-plugins-dont-have-a-default-controller To which Mark responded and updated the migration guide:

Re: Overriding form helper error messages in CakePHP 2.0

2011-10-28 Thread Richard@Home
Shamless bump! On Oct 24, 3:44 pm, Richard@Home richardath...@gmail.com wrote: Hi all. I have the following $validate in my User model:         var $validate = array(                 'email'=array(                         'required'=array(                                 'rule'='notEmpty

Re: CakePHP 2.0 upgrade - benefit vs pain scale

2011-10-27 Thread Richard@Home
I'm also upgrading a 1.3 app but it's proving to be problematic :-S I'd say if you aren't too far along in your project then upgrade, but If you're using custom plugins and behaviors prepare for a bit of hair pulling ;-) On Oct 27, 1:38 pm, Shukuboy shuku...@gmail.com wrote: Hi guys, I have

CakePHP 2.0 - Using a different/unconnected model in a behavior

2011-10-27 Thread Richard@Home
Hi all I'm currently re-writing a 1.3 behavior which handles custom routing In my 1.3 Routable behavior I could pull in a reference to the Route model in a method with: App::Import('Model', 'Route'); $Route = new Route(); And access it with: $data = $Route-find('all', ... ); I've tried the

Re: CakePHP 2.0 - Using a different/unconnected model in a behavior

2011-10-27 Thread Richard@Home
, Richard@Home richardath...@gmail.com wrote: Hi all I'm currently re-writing a 1.3 behavior which handles custom routing In my 1.3 Routable behavior I could pull in a reference to the Route model in a method with: App::Import('Model', 'Route'); $Route = new Route(); And access

CakepHP 2.0 plugins no longer have a default controller?

2011-10-26 Thread Richard@Home
In CakePHP 1.3 you can have a default controller for your plugins. e.g. if you had a Users plugin, you could create a users_controller so that urls such as: /users/index /users/edit/2 mapped to the index/edit actions in the Users controller in the Users plugin In CakePHP 2.0 you no longer seem

Re: CakepHP 2.0 plugins no longer have a default controller?

2011-10-26 Thread Richard@Home
and it works fine..? d//t. On Oct 26, 3:52 pm, Richard@Home richardath...@gmail.com wrote: In CakePHP 1.3 you can have a default controller for your plugins. e.g. if you had a Users plugin, you could create a users_controller so that urls such as: /users/index /users/edit/2

Re: CakepHP 2.0 plugins no longer have a default controller?

2011-10-26 Thread Richard@Home
' plugin with AccommodationController.php and it works fine..? d//t. On Oct 26, 3:52 pm, Richard@Home richardath...@gmail.com wrote: In CakePHP 1.3 you can have a default controller for your plugins. e.g. if you had a Users plugin, you could create a users_controller so that urls

Overriding form helper error messages in CakePHP 2.0

2011-10-24 Thread Richard@Home
Hi all. I have the following $validate in my User model: var $validate = array( 'email'=array( 'required'=array( 'rule'='notEmpty', 'message'='cannot be blank'