Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Extending Controller and passing data
  • Anyone know a good way to pass info the right config for passing data in controllers? like domain.com/controller/function/id domain.com/mylist/shows/view/2 I want to eliminate the 'view' part but action_index() doesn't pass the id. Also I want to still be able to use domain.com/shows/edit/2
    Also note the controller is extended:
    class Controller_Mylist_Shows extends Controller_Mylist
    {
    }
    

    Using routing it seems i have to add each method to the routing if i decide to pass the uri segment into view, so just trying to see if their is an alternative.
  • Create a router() method that filters some parts out before calling the controller method? http://fuelphp.com/docs/general/controllers/base.html

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion