Интернет-магазин nauazik.ru использует файлы cookie с целью персонализации сервисов и повышения удобства пользования веб-сайтом. Продолжая работу на сайте, Вы соглашаетесь
с Политикой использования файлов cookies.
Интернет-магазин nauazik.ru использует файлы cookie с целью персонализации сервисов и повышения удобства пользования веб-сайтом. Продолжая работу на сайте, Вы соглашаетесь
с Политикой использования файлов cookies.
public function setActive($value) { if($value!=$this->_active) { if($value) $this->open(); else $this->close(); } } public function init() { parent::init(); if($this->autoConnect) $this->setActive(true); } public function getActive() { return $this->_active; if(!isset($config['enabled']) || $config['enabled']) { Yii::trace("Loading \"$id\" application component",'system.CModule'); unset($config['enabled']); $component=Yii::createComponent($config); $component->init(); return $this->_components[$id]=$component; } } } return $this->getLocale()->getDateFormatter(); } public function getDb() { return $this->getComponent('db'); } public function getErrorHandler() { return $this->getComponent('errorHandler'); { if(self::$db!==null) return self::$db; else { self::$db=Yii::app()->getDb(); if(self::$db instanceof CDbConnection) return self::$db; else throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); } public function __construct($model) { $this->_model=$model; $tableName=$model->tableName(); if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', array('{class}'=>get_class($model),'{table}'=>$tableName))); if($table->primaryKey===null) { $table->primaryKey=$model->primaryKey(); if(isset(self::$_models[$className])) return self::$_models[$className]; else { $model=self::$_models[$className]=new $className(null); $model->_md=new CActiveRecordMetaData($model); $model->attachBehaviors($model->behaviors()); return $model; } } <?php class Menu extends CActiveRecord { public static function model($className=__CLASS__) { return parent::model($className); } public function tableName() { return 'menu'; public $settings = array(); public function init() { $this->settings = json_decode(file_get_contents(__DIR__ . "/../settings"), true); $menu = Menu::model()->findAll(array('condition'=>'visible=1', 'order'=>'`order` ASC')); foreach($menu as $item) $this->topmenu[] = array($item->id, $item->title, $item->link, $item->order, $item->target); if (!isset($_COOKIE['utm_date'])) if(($ca=$this->createController($route))!==null) { list($controller,$actionID)=$ca; $oldController=$this->_controller; $this->_controller=$controller; $controller->init(); $controller->run($actionID); $this->_controller=$oldController; } else throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', foreach(array_splice($this->catchAllRequest,1) as $name=>$value) $_GET[$name]=$value; } else $route=$this->getUrlManager()->parseUrl($this->getRequest()); $this->runController($route); } protected function registerCoreComponents() { parent::registerCoreComponents(); { if($this->hasEventHandler('onBeginRequest')) $this->onBeginRequest(new CEvent($this)); register_shutdown_function(array($this,'end'),0,false); $this->processRequest(); if($this->hasEventHandler('onEndRequest')) $this->onEndRequest(new CEvent($this)); } defined('YII_DEBUG') or define('YII_DEBUG', true); defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3); require_once(__DIR__ . '/../framework/yii.php'); Yii::createWebApplication(__DIR__ . '/protected/components/Config.php')->run();Принадлежности кузова
На выгодных условиях наш магазин УАЗ Моторс предлагает вам купить Кузовные детали, УАЗ, Хантер, Патриот, Буханка. На все модели принадлежности кузова установлена демократичная цена, что позволит владельцам авто сэкономить на расходах. Компанией будет осуществлена доставка заказанных деталей для кузова в кратчайшие сроки. Сотрудники компании помогут определиться с запчастью для кузова вашего авто в индивидуальном порядке. Все детали изготавливаются по стандартам, что гарантирует высокое качество и эксплуатирование на протяжении длительного периода времени с сохранением целостности покрытия, яркости цвета запасной части. Оформить покупку запчастей можно в несколько кликов на сайте нашего маркета УАЗ Моторс.
