Return to Snippet

Revision: 4282
at November 21, 2007 08:38 by haimuiba


Initial Code
		foreach ($dropDowns as $model => $conditions) {
			if (is_numeric($model)) {
				$model = $conditions;
				$conditions = array();
			}
			$this->set(Inflector::variable(Inflector::pluralize($model)), $this->Transaction->{$model}->generateList($conditions));
		}

Initial URL

                                

Initial Description

                                

Initial Title
CakePHP - DropDown loop

Initial Tags
textmate, cakephp

Initial Language
PHP