We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c67255 commit 78fb53bCopy full SHA for 78fb53b
1 file changed
user_guide_src/source/tutorial/create_news_items/002.php
@@ -13,7 +13,7 @@ public function create()
13
helper('form');
14
15
// Checks whether the form is submitted.
16
- if (strtolower($this->request->getMethod()) !== 'post') {
+ if (! $this->request->is('post')) {
17
// The form is not submitted, so returns the form.
18
return view('templates/header', ['title' => 'Create a news item'])
19
. view('news/create')
0 commit comments