Click read more to check gist code.
Sometimes it’s nice to know which template is currently rendered, just by looking into HTML source. It saves a lot of time if your application is really big.
I’ve needed URL with one variable replaced so it wouldn’t be duplicated every request. I’ve came up with this simple solution:
Sometimes you need to make mass operation on houndreds of records in Vtiger. Well in this case it’s 500 ones maximum… Well this is kinda stupid because it can surely handle up to thousands. How do I know? I’ve hacked the code and successfully converted 2000 leads 🙂 Well it takes some time but it […]
This code: $model = new SomeModel(); $model->attributes = $attributes; $model->save(); Yii::log(“errors saving SomeModel: ” . var_export($model->getErrors(), true)); Will log: 2014/07/31 22:57:59 [info] [application] errors saving SomeModel: array ( ‘date’ => array ( 0 => ‘Date cannot be blank.’, ), )