Hide label for input field
Ok, I found the solution. <?= $form->field($model, ‘sample_text’)->textArea()->label(false) ?>
Ok, I found the solution. <?= $form->field($model, ‘sample_text’)->textArea()->label(false) ?>
This can be done by Yii itself, you do not need an extension for it. However an extension can help cleaning up the rules() method as described here: http://www.yiiframework.com/extension/unique-attributes-validator/ This is the code (copied from that site) which will work without using the extension: public function rules() { return array( array(‘firstKey’, ‘unique’, ‘criteria’=>array( ‘condition’=>’`secondKey`=:secondKey’, ‘params’=>array( … Read more
You aren’t inserting a value for id. Since you don’t explicitly set it, it’s implicitly given a null value, which is, of course, not a valid value for a primary key column. You can avoid this entire situation by defining this column as serial instead of a plain old integer, and leave all the heavy … Read more
Just to provide an answer – because this error is pretty common – here are a few causes: The :parameter name does not match the bind by mistake (typo?). This is what happened here. They have :alias in the SQL statement, but bound :username. So when the param binding was attempted, Yii/PDO could not find … Read more