It looks like you're new here. If you want to get involved, click one of these buttons!
gives a 404, but if i do it like this:
$route[FUEL_ROUTE.'module/model/action/:num'] = 'controller/method/$1';
Works if i go /1 in the URL bar... what's wrong?
$route[FUEL_ROUTE.'module/model/action/1'] = 'controller/method';
Comments
route[FUEL_ROUTE.'module/model/action/(:num)'] = 'controller/method/$1';
The blog uses routes similar to that but uses (.*) instead of :num (see fuel/modules/blog/config/blog_routes.php).
my advanced module is called 'akademie'. It has a number of modules. The one i'm interested in is 'akademie_links' (a simple URL -> title) thing.
Then, my goal is to add some extra stuff, like image upload / crop a-là facebook using jcrop. Here's my strategy: leave the create/edit form as it is with the module's own form_fields, and simply add an extra action to the items listing view called 'MEDIA' (right before 'EDIT' and 'DELETE' actions on the right).
Now when the user clicks 'MEDIA', this will send him to the 'akademie' controller's 'links_media' method. In this custom view, all the javascript goodness will take place, and stored accordingly by the same method upon POST submission. Hope it makes sense.
This MEDIA action URL will link to Here's the route i'm struggling with: But i get a 404 when i go to where 2 is obviously a akademie_links id.
as soon as i add the wildcard (.*) or (:num) after the trailing slash of the route key, i get 404... getting crazy!!!
thanks and excuse me