You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getting same errors
#Call to a member function label() on string
#Call to a member function hint() on string
and i was trying to edit dinamic eval class but error the same above
eval('
namespace '.$namespace.';
use yii\db\ActiveRecord;
class '.$this->langClassShortName.' extends ActiveRecord
{
public static function tableName()
{
return ''.$this->tableName.'';
}
public function attributeLabels(){
$label = [
\'title\' => Yii::t(\'core\', \'test label\'),
];
return $label;
}
public function attributeHints(){
$label = [
\'title\' => Yii::t(\'core\', \'test hint\'),
];
return $label;
}
}');
i need to custom hint and label for lang model
how to fix this?
The text was updated successfully, but these errors were encountered:
im try using label and hint
field($model, 'title')->textInput(['maxlength' => true])->hint('test hint')->label('test label');?>getting same errors
#Call to a member function label() on string
#Call to a member function hint() on string
and i was trying to edit dinamic eval class but error the same above
eval('
namespace '.$namespace.';
use yii\db\ActiveRecord;
class '.$this->langClassShortName.' extends ActiveRecord
{
public static function tableName()
{
return ''.$this->tableName.'';
}
i need to custom hint and label for lang model
how to fix this?
The text was updated successfully, but these errors were encountered: