How do I declare a controller method for a named route in Laravel 4? -


i attempting declare method/function in controller responds numerically named route. when load page in site receive error stating controller method not found, meaning laravel won't load application incorrect formatting. searched answer no luck.

here route i'm attempting access via math controller:

students/academics/math/7-12

here method declaration route:

public function get712()

which gives me following error no matter page i'm loading:

call undefined method illuminate\routing\router::get712()

i'm not sure how name function/method in controller purely numeric routes since hyphen not allowed , there no upper/lowercase numbers.

why not pass 7-12 variable method?

route:

students/academics/math/{number}  

controller:

public function getmath($number) {     // code here } 

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -