I figure it, I must have add.ctp if I want to show validation errors, I redirect it on index.ctp but, when redirecting errors won't show up.
On Dec 20, 1:21 pm, peterchenadded <[email protected]> wrote: > Firstly, I think the second input "Question.pitanje" should be > "Question.opis" Since i don't understand the language it is only an > educated guess. > > I tested your code out with the form view in views/questions/add.ctp, > the controller function in controllers/questions_controller.php and > the model in models/question.php and it did work as expected! > > You should try to fix the > > "Notice (8): Undefined variable: layout [APP/views/elements/block.ctp, > line 17] > > Fatal error: Call to a member function filter() on a non-object in / > home/zakogagl/public_html/app/views/elements/block.ctp on line 17" > > problem first though. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
