comanage-dev - Re: [comanage-dev] Proposed New Coding Convention
Subject: COmanage Developers List
List archive
- From: Scott Koranda <>
- To: Marie Huynh <>
- Cc: Benn Oshrin <>, comanage-dev <>
- Subject: Re: [comanage-dev] Proposed New Coding Convention
- Date: Mon, 1 Jul 2013 08:19:16 -0500
- Authentication-results: sfpop-ironport02.merit.edu; dkim=pass (signature verified)
Hi,
> If we'd done it from the beginning, maybe, but at this point, there are
> enough
> variables in existence that we're not going to dig through and rename that I
> don't think it is a productive addition.
I think we have taken the approach before that we will
implement a new coding convention going forward and change or
modify existing code as time and circumstances permit.
This would not be new then.
So I support the convention and would like to use it going
forward.
Thanks,
Scott
>
>
> On Sun, Jun 30, 2013 at 10:36 AM, Benn Oshrin
> <>
> wrote:
>
> When passing a variable from a controller to a view, prefix the name of
> the
> variable with "vv_" (for "view variable"). This makes it clearer where a
> variable came from.
>
> Example controller:
>
> $this->set('vv_cous', $this->allCous($coid));
>
> Example view:
>
> foreach($vv_cous as $cou) {
> ...
> }
>
> Thoughts?
>
> -Benn-
>
>
- Re: [comanage-dev] Proposed New Coding Convention, Marie Huynh, 07/01/2013
- Re: [comanage-dev] Proposed New Coding Convention, Scott Koranda, 07/01/2013
Archive powered by MHonArc 2.6.16.