Welcome Guest, Not a member yet? Register   Sign In
Can't call the right action
#10

[eluser]Mirage[/eluser]
Quote:Sorry but I understood in reading doc that using subfolder to organize Controllers its like :
A folder = Controller
A file in this folder = Action

That's a misunderstanding. If you organize controllers into folders, you're just adding a grouping segment for your controllers. Actions are still to be defined within each controller.

Lets assume for example you have and 'admin' section on your application. In the admin you can operate on things like users, forums, blogs, etc, etc.

In that case you may not want an admin controller. But rather an admin group (aka subfolder) with controllers for users, forums and blogs. Each of those controllers then providing the appropriate actions.

HTH,
-m


Messages In This Thread
Can't call the right action - by El Forum - 10-11-2008, 11:48 AM
Can't call the right action - by El Forum - 10-11-2008, 12:01 PM
Can't call the right action - by El Forum - 10-11-2008, 01:12 PM
Can't call the right action - by El Forum - 10-11-2008, 01:55 PM
Can't call the right action - by El Forum - 10-11-2008, 02:11 PM
Can't call the right action - by El Forum - 10-11-2008, 02:43 PM
Can't call the right action - by El Forum - 10-11-2008, 02:56 PM
Can't call the right action - by El Forum - 10-11-2008, 03:09 PM
Can't call the right action - by El Forum - 10-11-2008, 03:14 PM
Can't call the right action - by El Forum - 10-11-2008, 03:47 PM
Can't call the right action - by El Forum - 10-11-2008, 04:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB