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_
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
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);
>
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
=> 'pages', 'action' =>
> 'display', 'home'));
>
> Router::connect('/pages/*', array('controller' => 'pages', 'action' =>
> 'display'));
>
>
> On Tue, Nov 24, 2009 at
->
>
> 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
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-
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
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