Welcome Guest, Not a member yet? Register   Sign In
Page Structure
#11

[eluser]smilie[/eluser]
My guidline is always to create one controller for a 'group' of function (pages) that are related to each other.

For example, controller 'user' would have functions such as:
- list;
- create;
- edit;
- delete.

Then, same for controller 'groups' and so on.

You could also follow other logic, such as:
all save actions go in one controller;
all list actions go in other controller.
Then you would get:

index.php/save/$what/$extra_data
for example:
save > user > ID
or
save > group > ID
or
save > article > ID

or controller for listing items:
list > users
list > user > ID
list > articles
list > article > ID

Etc.

Try not to place too many functions per controller for the performance sake.

Regards,
Smilie




Theme © iAndrew 2016 - Forum software by © MyBB