Always listen to John - he is usually right. Jeremy Burns Class Outfit
[email protected] http://www.classoutfit.com On 17 Feb 2011, at 14:24, Tapan Kumar Thapa wrote: > Issue resolved....:-) > > Many thanks John for pointing me to the correct point. > > My model file name was incomings.php by mistake i think so and that is why > validation was not working. > > Many thanks to Jeremy as well for helping me out. > > Regards > Tapan Thapa > India > > > On Thu, Feb 17, 2011 at 6:19 PM, John Andersen <[email protected]> > wrote: > Check your file names! Your model file name should be incoming.php! > If it is not, then you may actually be using the AppModel instead of > the Incoming Model class! > Enjoy, > John > > On 17 Feb., 13:05, Tapan Kumar Thapa <[email protected]> > wrote: > > If i put debug statement nothing gets print in my incoming view. > > > > If i also put die statement then complete page dies and i got blank white > > blank page. > > > > <?php > > > > class IncomingsController extends AppController { > > > > var $name = 'Incomings'; > > > > function request() { > > $this->Incoming->set(array( > > 'Incoming' => $this->params['named'] > > )); > > debug($this->Incoming->validates()); > > //die(debug($this->Incoming->validationErrors)); > > /* $this->Incoming->set($this->params['named']); > > if ($this->Incoming->validates()==TRUE) { > > $this->Session->setFlash("Correct"); > > } else { > [snip] > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group at > http://groups.google.com/group/cake-php > > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group at > http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
