I've started using CodeIgniter and I seem to be doing pretty well. I've hit an issue though.
I have a controller called Articles. Users of the site can do the following:
- Get an article by slug name
- Get a list of articles in a category
- Get a list of articles that have x tag name
My issue is should I create 3 separate controllers:
Article.php- For single articlesCategory.php- For list of articles that have x categoryTag.php- For list of articles that have x tags
Or, should I place everything in Article.php?
I'm just trying to figure out the conventional way of doing things.