コード例 #1
0
ファイル: add.php プロジェクト: vlamug/landing-page-crm
<?php

/**
 * @var yii\web\View $this
 * @var backend\models\Landing $landing
 * @var common\models\Form $form
 */
use yii\helpers\Url;
use backend\widgets\BreadcrumbsWidget;
$this->title = 'Добавление формы для промо-страницы: ' . $landing->getName();
$this->params['page_name'] = $this->title;
$this->params['breadcrumbs'] = [['label' => 'Промо-страницы', 'url' => Url::to('landing')], ['label' => $landing->getName(), 'url' => Url::to(['/landing/view', 'id' => $landing->getLandingId()])], ['label' => 'Добавление формы']];
BreadcrumbsWidget::widget();
echo $this->render('_form', ['model' => $form, 'landing' => $landing]);
コード例 #2
0
ファイル: main.php プロジェクト: vlamug/landing-page-crm
                        </ul>
                    </li-->
                    <li>
                        <a href="<?php 
echo Url::to('/logout');
?>
">
                            <i class="fa fa-sign-out"></i>Выйти
                        </a>
                    </li>
                </ul>

            </nav>
        </div>
        <?php 
echo BreadcrumbsWidget::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], 'pageName' => isset($this->params['page_name']) ? $this->params['page_name'] : false]);
?>
        <div class="row wrapper wrapper-content animated fadeInRight">
            <?php 
echo $content;
?>
        </div>
        <div class="footer">
            <div class="pull-right">
                Developer Vasja Pupkin
            </div>
            <div>
                <strong>Copyright</strong> Op Op Op Company © 2014-2015
            </div>
        </div>