We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This issue has originally been reported by @RooTooZ at yiisoft/yii2#8401. Moved here by @cebe.
for example, I want to change the button setting
echo \yii\grid\GridView::widget([ 'id'=>'loggrid', 'dataProvider' => $dp, 'columns' => [ .... [ 'class' => \yii\grid\ActionColumn::className(), 'buttons'=>[ 'view'=>function ($url, $model) { # how can use this option in twig??? $customurl=Yii::$app->getUrlManager()->createUrl(['log/view','id'=>$model['id']]); return \yii\helpers\Html::a( '<span class="glyphicon glyphicon-eye-open"></span>', $customurl, ['title' => Yii::t('yii', 'View'), 'data-pjax' => '0']); } ], 'template'=>'{view} {delete}', ] ], ]);
The text was updated successfully, but these errors were encountered:
Fix docs (#48). Russian and english
c26a097
You can not use anonymous function in twig template. See docs https://github.com/yiisoft/yii2-twig/blob/master/docs/guide/layouts-and-widgets.md
Sorry, something went wrong.
Fix docs (yiisoft#48). Russian and english
071be39
548735d
No branches or pull requests
This issue has originally been reported by @RooTooZ at yiisoft/yii2#8401.
Moved here by @cebe.
for example, I want to change the button setting
The text was updated successfully, but these errors were encountered: