PATH:
home
/
letacommog
/
letaweb
/
protected
/
modules
/
admin
/
controllers
<?php class DefaultController extends PController { public $layout = 'admin_column'; /** * Declares class-based actions. */ public function actions() { return array( // captcha action renders the CAPTCHA image displayed on the contact page 'captcha' => array( 'class' => 'CCaptchaAction', 'backColor' => 0xFFFFFF, ), // page action renders "static" pages stored under 'protected/views/sitename/pages' // They can be accessed via: index.php?r=sitename/page&view=FileName 'page' => array( 'class' => 'CViewAction', ), ); } public function actionIndex() { //if (Yii::app()->getUser()->checkAccess($this->adminRole)) { $this->render('index'); //} } public function actionView() { $this->render('view'); } public function actionUpdate() { $this->render('update'); } public function actionCreate() { $this->render('create'); } public function checkUserPermission($user_id, $action) { return true; } public function actionGetList() { if (isset($_REQUEST['name'])) { $name = $_REQUEST['name']; $tablename = 'tbl_'.$name; $m = 'get'.$tablename; if (method_exists($this, $m)) { $this->$m(); } else { $c = Yii::app()->db->createCommand() ->select('*') ->from($tablename); if (isset($_REQUEST['ids'])) { $ids = $_REQUEST['ids']; $c = $c->where(array('in', 'id', $ids)); } $s = $c->queryAll(); $this->ajaxSuccess($s); } } else { $this->ajaxSuccess(array()); } } public function actionError() { if ($error = Yii::app()->errorHandler->error) { if (Yii::app()->request->isAjaxRequest) { echo $error['message']; } else { $this->render('error', $error); } } } }
[+]
..
[-] TemplateController.php
[edit]
[-] PlanController.php
[edit]
[-] DomainController.php
[edit]
[-] WebsiteController.php
[edit]
[-] ConfigController.php
[edit]
[-] TransactionController.php
[edit]
[-] MailtemplateController.php
[edit]
[-] DefaultController.php
[edit]
[-] CategoryController.php
[edit]
[-] DashboardController.php
[edit]
[-] UserController.php
[edit]
[-] LanguageController.php
[edit]
[-] ModuleController.php
[edit]
[-] ModulecategoryController.php
[edit]
[-] PlanDescriptionController.php
[edit]
[-] TermController.php
[edit]
[-] SubscriptionController.php
[edit]
[-] InterfaceController.php
[edit]
[-] ColorController.php
[edit]
[-] ShareButtonController.php
[edit]
[-] SkinpresetController.php
[edit]
[-] ContentController.php
[edit]
[-] LogController.php
[edit]
[-] ProfileController.php
[edit]