create.php 490 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Author: lf
  4. * Blog: https://blog.feehi.com
  5. * Email: job@feehi.com
  6. * Created at: 2016-03-24 17:06
  7. */
  8. use yii\helpers\Url;
  9. /**
  10. * @var $categories []
  11. */
  12. $this->params['breadcrumbs'] = [
  13. ['label' => Yii::t('app', 'Category'), 'url' => Url::to(['index'])],
  14. ['label' => Yii::t('app', 'Create') . Yii::t('app', 'Category')],
  15. ];
  16. /**
  17. * @var $model common\models\Category
  18. */
  19. ?>
  20. <?= $this->render('_form', [
  21. 'model' => $model,
  22. 'categories' => $categories,
  23. ]); ?>