PATH:
home
/
letacommog
/
letaweb
/
admin
/
widgets
<?php class CWidgetModuleRenderer extends CWidgetStructure { public $page_id,$data = null; public function init() { } public function run() { if (is_null($this->data)) { $this->data = array('data' => array()); $json_path = Yii::app()->site->model->getFilePath('module_data', $this->page_id, '.json'); if (file_exists($json_path)) { $content = file_get_contents($json_path); $this->data = json_decode($content, true); } } if (!is_null($this->data)) { if (!isset($this->data['type'])) { return; } $className = 'CWidget'.ucwords($this->data['type']); Yii::app()->controller->widget('application.widgets.modules.'.$className, array( 'page_id' => $this->page_id, 'data' => $this->data, )); } } }
[+]
..
[+]
views
[-] Pagination.php
[edit]
[-] CWidgetCustomModule.php
[edit]
[-] CWidgetModuleRenderer.php
[edit]
[-] CWidgetZone.php
[edit]
[-] CTab.php
[edit]
[-] CWidgetRow.php
[edit]
[-] CWidgetEcommerce.php
[edit]
[+]
modules
[-] CWidgetCMS.php
[edit]
[-] CPanel.php
[edit]
[-] ActiveDataProvider.php
[edit]
[-] CPager.php
[edit]
[-] CWidgetModule.php
[edit]
[-] CWidgetColumn.php
[edit]
[-] CTabContent.php
[edit]
[-] CWidgetStructure.php
[edit]
[-] CPriceTable.php
[edit]