Re: Validate only some field

2010-06-08 Thread josu jauregui
Hi marco! I use: $this->myModel->validate = Set::merge($this->myModel->validate, $newValidation); where $newValidation has the new rules to the specific case. for example: $newValidation= array('name_of_the_field_in_the_model_validation' => array('name_of_validation' => array('rule' => VALID_

Re: Problema con safe_mode y creacion directorio/subdirectorios

2010-03-17 Thread josu jauregui
Gracias por las respuestas. La posibilidad de tener los directorios creados previamente no es posible dado que parte de estructura de directorios se tiene que generar dinámicamente. 8-( He estado mirando y el entorno en el que se implantará la app no tiene safe_mode activado así que en principio no

Re: How to update multiple table data using saveall

2010-03-10 Thread josu jauregui
Hi! You may to assign an id to the object; if the object doesn´t have an id, cakephp creates a new record. Try this: function edit($id = null) { if (!empty($this->data)) { * $this->Book->id=$id;* $this->Book->saveall($this-> > > data); >

Re: Creating a login screen

2009-11-24 Thread josu jauregui
Do you have uncommented line Configure::write('Routing.admin', 'admin'); in core.php?? 2009/11/24 Dewayne Pinion > To be honest I am not sure about admin routing. Learning as I go a bit > here.. :) > > > On Tue, Nov 24, 2009 at 11:57 AM, josu jauregui wrote

Re: Creating a login screen

2009-11-24 Thread josu jauregui
=> 'pages', 'action' => > 'display', 'home')); > > Router::connect('/pages/*', array('controller' => 'pages', 'action' => > 'display')); > > > On Tue, Nov 24, 2009 at

Re: Creating a login screen

2009-11-24 Thread josu jauregui
-> > > logout()); > } > } > > > > On Tue, Nov 24, 2009 at 11:10 AM, josu jauregui wrote: > >> Hi! Is your mod_rewrite activated?. Can you send me the users_controller >> file to make some tests?. >> >> Bye! >> >> 2009/11/24 Dewayne

Re: Session, Cache and Model

2009-11-24 Thread josu jauregui
Hi! In the controller you especify if you want to use cache mode(cache time, actions cached, ...); the Model gets the data to the controller and the controller process it according to the cache settings you specify in the controller class. More info: http://book.cakephp.org/view/346/Caching-in-the-

Re: Creating a login screen

2009-11-24 Thread josu jauregui
Hi! Is your mod_rewrite activated?. Can you send me the users_controller file to make some tests?. Bye! 2009/11/24 Dewayne Pinion > Hi Josu, > Thank you for the response. Yes, I have the file created and it is in the > app/controllers directory > > On Tue, Nov 24, 2009 at

Re: Creating a login screen

2009-11-24 Thread josu jauregui
Hi!. Sorry but my english is not good. You must be sure that the name of the controller file is users_controller.php and it´s in app/controllers directory. I hope this can help you. 2009/11/24 Dave > Can you be more specific about when you get this error? What is the URL > cake is trying to ac