Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input form label and hint #66

Open
daunt opened this issue Jul 30, 2017 · 0 comments
Open

input form label and hint #66

daunt opened this issue Jul 30, 2017 · 0 comments

Comments

@daunt
Copy link

daunt commented Jul 30, 2017

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.'';
}

             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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant