Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Best practice for plural/singular MVC elements
  • Does Fuel PHP subscribe to the Rails conventions of having plural controllers and singular models? Thanks so much.
  • Fuel doesn't enforce that, it's up to you. I'd call it good practice though. The ORM does use singular model names by default, but you can configure it to use plural names if you want to.
  • Hm, I rather like having
    'agenda' => 'agenda/index',
    'agenda/:yyyy/:mm/:dd' => 'agenda/item',
    'mailme' => 'mailme/index',
    'news' => 'news/index',
    'news/:slug' => 'news/item',
    
    etc...

Howdy, Stranger!

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

In this Discussion