well...
if I use the routing:

myRoute:
  url:   company/:module/:action/*

I can use all modules in this pattern, but I want use just three [employers,
customers, group] inside company.

Its Possible? How can I configure this?


2010/4/7 Stéphane <stephane.er...@gmail.com>

> Hi,
>
>
> "
> like:
>
> company/customer/new"
>
> Is this a route or a module/action breakdown ?
>
>
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
>
>
> On Wed, Apr 7, 2010 at 4:15 PM, Welington Veiga <welington.ve...@gmail.com
> > wrote:
>
>> This is my problem!
>> I need a third deep level to keep a good design.
>>
>>
>> like:
>>
>> company/customer/new
>>
>>
>> but in the symfony structure company is not a application. It's
>> authentication, credentials, user etc are common.
>>
>> I also have:
>> calendar/tasks/view/5
>>
>> A beautifully solution maybe is:
>>
>> company/
>> ..actions/
>> ....customerActions.class.php
>> ....employeersActions.class.php
>> ....groupsActions.class.php
>> calendar/
>> ...
>> news/
>> ...
>>
>> Thank u.
>>
>>
>>
>>
>> 2010/4/7 Daniel Lohse <annismcken...@googlemail.com>
>>
>> Too many actions are often a sign of code duplication and/or shortcomings
>>> in separation of concerns. You want fat models and slim controllers. Your
>>> controller is either doing too much or you are putting actions into modules
>>> where they don't belong or fit.
>>>
>>> Care to share all your action names (just the names of the methods) in a
>>> particular big actions class? Also, a bit of code for each would also help.
>>>
>>> More than 15 actions per module are generally not advisable, you'll need
>>> to break things down when you're pushing that limit.
>>>
>>>
>>> Cheers, Daniel
>>>
>>> On 07.04.2010, at 14:25, Welington Veiga wrote:
>>>
>>> In this doc page  chapter 
>>> 6<http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_sub_alternative_action_class_syntax>are
>>>  an alternative way to write action: one per file.
>>> I think this isn't the best solution. I can add a new deep level in the
>>> route and use the parameter to decide what method  must be invoked on three
>>> or four sfAction classes but I will need to rewrite secure issues.
>>>
>>> Anyone can help me?
>>>
>>> 2010/4/7 Welington Veiga <welington.ve...@gmail.com>
>>>
>>>> I have  a problem with a big application what we are writing under
>>>> symfony.
>>>> It's our first contact with this fantastic framework, but we have a
>>>> lot of code in a single action file. Our modules are big, with three
>>>> crud:
>>>>
>>>> Like company has employers, groups  and customers.
>>>> All in a application.
>>>>
>>>> I need a new deep level.
>>>>
>>>>
>>>> The solution, I think, is use three sfActions class for each module.
>>>> But maybe you have any experience with another solution, or another
>>>> pattern for  this situatuation.
>>>>
>>>> PS: I dont know how to configure  new actions under 'app/myapp/modules/
>>>> mymodule/actions' folder.
>>>
>>>
>>>
>>>
>>> --
>>> Welington da Veiga Silva
>>> ---
>>> "Há pessoas que transformam o sol numa simples mancha amarela, mas há
>>> aquelas que fazem de uma simples mancha amarela o próprio sol."
>>> ( Pablo Picasso )
>>>
>>> --
>>> If you want to report a vulnerability issue on symfony, please send it to
>>> security at symfony-project.com
>>>
>>> You received this message because you are subscribed to the Google
>>> Groups "symfony users" group.
>>> To post to this group, send email to symfony-users@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> symfony-users+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/symfony-users?hl=en
>>>
>>>
>>>  --
>>> If you want to report a vulnerability issue on symfony, please send it to
>>> security at symfony-project.com
>>>
>>> You received this message because you are subscribed to the Google
>>> Groups "symfony users" group.
>>> To post to this group, send email to symfony-users@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
>>> For more options, visit this group at
>>> http://groups.google.com/group/symfony-users?hl=en
>>>
>>
>>
>>
>> --
>> Welington da Veiga Silva
>> ---
>> "Há pessoas que transformam o sol numa simples mancha amarela, mas há
>> aquelas que fazem de uma simples mancha amarela o próprio sol."
>> ( Pablo Picasso )
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Welington da Veiga Silva
---
"Há pessoas que transformam o sol numa simples mancha amarela, mas há
aquelas que fazem de uma simples mancha amarela o próprio sol."
( Pablo Picasso )

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to