Skip to content

Commit

Permalink
Tutorial bugs. Fixes #286
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Oct 4, 2016
1 parent ff7b542 commit 3759ef9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion user_guide_src/source/tutorial/create_news_items.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ as a method instead of a news item's slug.
::

$routes->post('news/create', 'News::create');
$routes->add('news/(:segment)'], 'News::view/$1');
$routes->add('news/(:segment)', 'News::view/$1');
$routes->get('news', 'News::index');
$routes->add('(:any)', 'Pages::view/$1');

Expand Down
3 changes: 3 additions & 0 deletions user_guide_src/source/tutorial/news_section.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ a new ``News`` controller is defined. Create the new controller at
::

<?php

use App\Models\NewsModel;

class News extends \CodeIgniter\Controller
{
public function index()
Expand Down

0 comments on commit 3759ef9

Please sign in to comment.