EDIT: Issue has been solved. Thanks for your help!
Page 1 of 1
Problem with creation of model
#2
Posted 14 January 2010 - 12:24 AM
public function beforeValidate()
{
//if(parent::beforeValidate()) { //?
$this->ip = Yii::app()->request->userHostAddress;
return true;
//}
}
php:
foreach(array('cat', 'dog', 'cow') as $animal) echo $animal."\n";
python:
[(animal, print(animal)) for animal in ['cat', 'dog', 'cow']]
ruby:
['cat', 'dog', 'cow'].each {|animal| puts animal}
You say Tomato, I say Tomato.
#3
Posted 14 January 2010 - 01:03 AM
Woops.. Forgot to add return true;
Thanks for the help jayrulez!
Thanks for the help jayrulez!
Share this topic:
Page 1 of 1

Help












