Thomas - Thanks for the reply.

I was a bit unclear. I know CamelCase, but I thought in symfony the  
coding standard was camelCase.

Even the phpDoc comment for the method reads....

    * Returns a camelized string from a lower case and underscored  
string by replaceing slash with
    * double-colol and upper-casing each letter preceded by an  
underscore.

if it takes a lower case string and uppercases each letter preceded by  
an underscore, then the first letter should be lower case.

Unfortunately my php build does not include lcfirst. I can of course  
get round this, but I'm pretty sure that symfony must have built in  
functionality to create camelCase strings with a lowercase first  
letter because that is how it generates template names from action  
names.

Regards
Jonathan


On 14 Oct 2008, at 15:45, Thomas Vestergaard wrote:

>
> Hi Frank,
>
> ContactUs is the correct camel case version. So in that respect is  
> it just you.
>
> However, I can see when the other possibility would be useful.
> But just run it through the lcfirst function to get what you want.
>
> Regards,
> Thomas
>
>
> On Tue, Oct 14, 2008 at 3:26 PM, Jonathan Franks  
> <[EMAIL PROTECTED]> wrote:
>>
>> hi,
>>
>> i'm on 1.1.4 and I'm getting a strange result from
>> sfInflector::camelize....
>>
>> echo sfInflector::camelize('contact_us');
>>
>> outputs....
>>
>> ContactUs
>>
>> but i want....
>>
>> contactUs
>>
>> is this me or symfony???
>>
>>>
>>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to