Skip to content

Commit e3fc582

Browse files
authored
Merge pull request #8099 from cakephp/ADmad-patch-1
Change render method to return in PostsController
2 parents dadbac5 + 0aedac2 commit e3fc582

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

en/controllers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ have called ``Controller::render()``, CakePHP will not try to re-render the view
254254
{
255255
public function my_action()
256256
{
257-
$this->render('custom_file');
257+
return $this->render('custom_file');
258258
}
259259
}
260260

@@ -271,7 +271,7 @@ For example::
271271
{
272272
public function myAction()
273273
{
274-
$this->render('Users.UserDetails/custom_file');
274+
return $this->render('Users.UserDetails/custom_file');
275275
}
276276
}
277277

0 commit comments

Comments
 (0)