public function init()
 {
     \pistol88\order\assets\OrderFormLightAsset::register($this->getView());
     \pistol88\order\assets\CreateOrderAsset::register($this->getView());
     return parent::init();
 }
Exemple #2
0
<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
use yii\bootstrap\Alert;
use yii\bootstrap\ActiveForm;
use pistol88\cart\widgets\ElementsList;
use pistol88\cart\widgets\CartInformer;
use pistol88\order\widgets\ChooseClient;
use pistol88\order\widgets\BuyByCode;
use pistol88\service\widgets\AreaAndMaterial;
$this->title = 'Заказ услуги';
$this->params['breadcrumbs'][] = $this->title;
\pistol88\service\assets\BackendAsset::register($this);
\pistol88\order\assets\CreateOrderAsset::register($this);
$this->registerJs("pistol88.createorder.updateCartUrl = '" . Url::toRoute(['tools/cart-info']) . "';");
?>
<div class="price-index">

    <div class="service-menu">
        <?php 
echo $this->render('../parts/menu');
?>
    </div>

    <br class="clear" />

    <p align="center"><small>Enter - отправить заказ</small></p>

    <div class="control row">
Exemple #3
0
 public function init()
 {
     parent::init();
     \pistol88\order\assets\CreateOrderAsset::register($this->getView());
     return true;
 }