On Thu, Jan 29, 2009 at 4:45 PM, Olivier Mansour <[email protected]> wrote:

>
>
> 2009/1/29 Thomas Rabaix <[email protected]>
>
>> The problem is you cannot have to class with the same name :
>> 'exportAction'. You can solve this issue by moving the action into the main
>> actions.class.php.
>>
>> Or if you are using sf1.2 I think you can prefix the class name with the
>> module name : Module1_exportAction.
>
>
> Thanks for the workaround, works fine. I'am using 1.2
> But now my point is why the require_once isn't done in the getController
> method ?
>

The sfController class does not execute the action, it is delegated it to
the sfComponent class (sfAction). The sfController " directs application
flow". Now I guess, there are 2 ways to get one action/component : in the
actions.class or in the nameAction.class.php so the controllerExists methods
does all the check... so it just does an extra work by loading the file.
(Performance is your answer)

-- 
Thomas Rabaix

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to