Posted By

haimuiba on 11/21/07


Tagged

textmate controller cakephp


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

sbbath
codehooligans


CakePHP - DropDown loop


 / Published in: PHP
 

  1. foreach ($dropDowns as $model => $conditions) {
  2. if (is_numeric($model)) {
  3. $model = $conditions;
  4. $conditions = array();
  5. }
  6. $this->set(Inflector::variable(Inflector::pluralize($model)), $this->Transaction->{$model}->generateList($conditions));
  7. }

Report this snippet  

You need to login to post a comment.