Re: No validation after deploy

2010-05-22 Thread Matteo
Hi all, solved. I'm posting that hoping it could be of some help. The cause was the name of my model file. I used 'Latest.php' instead of 'latest.php'. Because of the first capital letter, in the host server validation didn't work. My machine and the which one of the remote server are BOTH .nix

Re: No validation after deploy

2010-05-21 Thread Matteo
thanx Nicolas, however the PHP version is the 5.2.x in both environments. On May 21, 9:31 am, "Nicolas Maleve" wrote: > I had a similar problem once with a validation rule. > It was due to the difference of PHP versions between my dev environment > (php5) and the production environment (php4) >

Re: No validation after deploy

2010-05-21 Thread Nicolas Maleve
I had a similar problem once with a validation rule. It was due to the difference of PHP versions between my dev environment (php5) and the production environment (php4) Upgrading the production environment to php5 was the solution, but it isn't always possible. ,n Le Ven 21 mai 2010 9:08, Matteo

Re: No validation after deploy

2010-05-21 Thread Matteo
Hi Andrei, the "model" one, please see below: class Latest extends AppModel { var $name = 'Latest'; var $validate = array( 'title' => array('rule' => 'notEmpty', 'message' => 'mandatory field'), 'body' => array('rule' => 'notEmpty', '

Re: No validation after deploy

2010-05-20 Thread Andrei Mita
Do you use model validation or a custom made one? On Thu, May 20, 2010 at 9:58 PM, Matteo wrote: > Hi all, > > hope you can help a very newbe one. > > I have a very simple form with two fields: title and body. > > In my dev enviroment I check for the two fields to be fill. > Validation works fi