Skip to content

Commit 78fb53b

Browse files
committed
docs: use $this->request->is()
1 parent 5c67255 commit 78fb53b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • user_guide_src/source/tutorial/create_news_items

user_guide_src/source/tutorial/create_news_items/002.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function create()
1313
helper('form');
1414

1515
// Checks whether the form is submitted.
16-
if (strtolower($this->request->getMethod()) !== 'post') {
16+
if (! $this->request->is('post')) {
1717
// The form is not submitted, so returns the form.
1818
return view('templates/header', ['title' => 'Create a news item'])
1919
. view('news/create')

0 commit comments

Comments
 (0)