The documentation is correct, the view s rendered as soon as the controller function that was invoked returns or reaches the last line. You can make it render earlier by calling $this->render()
On Sunday, September 21, 2014 8:34:26 PM UTC+2, James Gaston wrote: > > While trying to track down an error in a UsersController method: > > Notice (8): Undefined index: User [APP/Controller/UsersController.php, > line ...] > > I've come back to an issue that has yet to clarify in my head, > specifically, the line in the cakephp v2 controller documentation that says: > > "... once a controller action has completed, CakePHP will handle > rendering and delivering the View." > > Seems to me this line in the documentation is incorrect. In fact, a > controller renders a view and then control may return to the same > controller method to process any form date submitted by the view. Am I > wrong in my thinking? > > - James > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
