comanage-dev - [comanage-dev] Proposed New Coding Convention
Subject: COmanage Developers List
List archive
- From: Benn Oshrin <>
- To: comanage-dev <>
- Subject: [comanage-dev] Proposed New Coding Convention
- Date: Sun, 30 Jun 2013 10:36:44 -0700
- Authentication-results: sfpop-ironport07.merit.edu; dkim=neutral (message not signed) header.i=none
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-
- [comanage-dev] Proposed New Coding Convention, Benn Oshrin, 06/30/2013
Archive powered by MHonArc 2.6.16.