On Thu, Dec 11, 2008 at 2:55 PM, Sam Ma <[EMAIL PROTECTED]> wrote:
> Does this is arguments/parameters means?

Hi Sam.

I think the coding standards are worded a little badly on that point.
Judging from the symfony code, the only location where variables are
written with underscores _ever_ are templates. Wherever else you use
variables, be it in function or method signatures or bodies, write
them camel-cased.

"Use underscores for option/argument/parameter names."

As Fabian tried to point out, what is really meant with this line are
the keys in associative arrays used to configure behaviour
dynamically. Nothing else.

Example:

function my_custom_helper($parameterOne, $parameterTwo, $options)
{
  // $options['option_one']
  // $options['option_two']
  // and so on...
}


Bernhard

--~--~---------~--~----~------------~-------~--~----~
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