Skip to content

News Tutorial Routes #1288

Description

@InsiteFX

Lonnie,

In the news Tutorial.

Static Pages: - The route is this.
$routes->get('(:any)', 'Pages::view/$1');

But at the end of the Create News Items - You have this, which route is the correct one?
$routes->post('news/create', 'News::create'); $routes->add('news/(:segment)', 'News::view/$1'); $routes->get('news', 'News::index'); $routes->add('(:any)', 'Pages::view/$1');

Also the post news create does not work 404 page change the route to add and the form comes up but with the validation errors.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions