Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <?php
  2. $form = \yii\bootstrap\ActiveForm::begin([
  3. 'id' => 'shop-stage',
  4. 'layout' => 'horizontal',
  5. ]);
  6.  
  7. $stageView = Yii::getAlias("@app/cart/stages/name.php");
  8. if (is_file($stageView)) {
  9. $eventData = empty($eventData) ? [] : $eventData;
  10. /*Подключение менюшки к админке layouts/admin/main.php*/
  11. echo Yii::$app->controller->renderPartial($stageView,
  12. array_merge($eventData, [
  13. 'form' => $form,
  14. ])
  15. );
  16. }
  17.  
  18. ?>
  19. <?php \yii\bootstrap\ActiveForm::end();?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement