Skip to content

Routes static parameter problem not found page #352

Description

@byazrail

Hi,

Sample routes line;
$routes->add('Settings', 'Site\Controllers\Pages::getSetting/1'); // 1 .etc alpha numeric or number problem.

Workaround;
$routes->add('bla/settings', 'Site\Controllers\Pages::getSettingOne');
$routes->add('zzz/settings', 'Site\Controllers\Pages::getSettingTwo');

Pages Controller on 2 function added;
getSettingOne() {return $this->getSetting(1);}
getSettingTwo() {return $this->getSetting(2);}

Have a nice day...

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