Skip to content

Commit 7a76353

Browse files
authored
Merge pull request #8100 from cakephp/change
Change render method to return in PostsController (es, ja, pt)
2 parents 944669a + ce9718d commit 7a76353

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

es/controllers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ re-renderizar la vista::
264264
{
265265
public function my_action()
266266
{
267-
$this->render('custom_file');
267+
return $this->render('custom_file');
268268
}
269269
}
270270

@@ -280,7 +280,7 @@ También puedes renderizar vistas dentro de plugins usando la siguiente sintaxis
280280
{
281281
public function myAction()
282282
{
283-
$this->render('Users.UserDetails/custom_file');
283+
return $this->render('Users.UserDetails/custom_file');
284284
}
285285
}
286286

ja/controllers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ AJAX 呼び出しではとても有用です。 ::
234234
{
235235
public function my_action()
236236
{
237-
$this->render('custom_file');
237+
return $this->render('custom_file');
238238
}
239239
}
240240

@@ -251,7 +251,7 @@ AJAX 呼び出しではとても有用です。 ::
251251
{
252252
public function myAction()
253253
{
254-
$this->render('Users.UserDetails/custom_file');
254+
return $this->render('Users.UserDetails/custom_file');
255255
}
256256
}
257257

pt/controllers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ convencional. Você pode fazer isso chamando o método
253253
{
254254
public function my_action()
255255
{
256-
$this->render('custom_file');
256+
return $this->render('custom_file');
257257
}
258258
}
259259

0 commit comments

Comments
 (0)