Skip to content

Controller class name vs file name #36

Closed
@niallobrien

Description

@niallobrien

L4 it seems that your controller class cannot be called something like 'Auth.php' - must be 'AuthController.php' Class name must match file name, unlike L3 you could have 'Auth.php' class name 'Auth_Controller'.

This means when generating a URL, 'AuthController@login' must be used as opposed to 'auth@login' which was legal in L3.

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