Skip to Content.
Sympa Menu

comanage-dev - Re: [comanage-dev] Proposed New Coding Convention

Subject: COmanage Developers List

List archive

Re: [comanage-dev] Proposed New Coding Convention


Chronological Thread 
  • From: Marie Huynh <>
  • To: Benn Oshrin <>
  • Cc: comanage-dev <>
  • Subject: Re: [comanage-dev] Proposed New Coding Convention
  • Date: Sun, 30 Jun 2013 22:51:24 -0700
  • Authentication-results: sfpop-ironport01.merit.edu; dkim=pass (signature verified)

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.


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-




Archive powered by MHonArc 2.6.16.

Top of Page