Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • ActionFormModelBase
  • CActiveDataProvider
  • CalendarEventFormModel
  • CallFormModel
  • CArrayDataProvider
  • CAssetManager
  • CBaseController
  • CBaseUrlRule
  • CCacheHttpSession
  • CClientScript
  • CController
  • CCookieCollection
  • CDataProvider
  • CDataProviderIterator
  • CDbHttpSession
  • CExtController
  • CFormModel
  • CHttpCookie
  • CHttpRequest
  • CHttpSession
  • CHttpSessionIterator
  • COutputEvent
  • CPagination
  • CreatePageFormModel
  • CSort
  • CSqlDataProvider
  • CTheme
  • CThemeManager
  • CUploadedFile
  • CUrlManager
  • CUrlRule
  • CWebApplication
  • CWebModule
  • CWidgetFactory
  • EditMobileFormsFormModel
  • EventCommentPublisherFormModel
  • EventFormModel
  • EventPublisherFormModel
  • FileSystemObjectDataProvider
  • MassActionFormModel
  • MobilePagination
  • NoteFormModel
  • NotificationsController
  • TimeFormModel
  • UploadLogoFormModel
  • X2FormModel
  • X2HttpRequest

Interfaces

  • IDataProvider
  • IWidgetFactory
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * CExtController class file.
 4:  *
 5:  * @author Qiang Xue <qiang.xue@gmail.com>
 6:  * @link http://www.yiiframework.com/
 7:  * @copyright 2008-2013 Yii Software LLC
 8:  * @license http://www.yiiframework.com/license/
 9:  */
10: 
11: 
12: /**
13:  * CExtController is the base class for controllers distributed as extension.
14:  *
15:  * The main purpose of CExtController is to redefine the {@link viewPath} property
16:  * so that it points to the "views" subdirectory under the directory containing
17:  * the controller class file.
18:  *
19:  * @property string $viewPath The directory containing the view files for this controller.
20:  *
21:  * @author Qiang Xue <qiang.xue@gmail.com>
22:  * @package system.web
23:  * @since 1.0
24:  */
25: class CExtController extends CController
26: {
27:     private $_viewPath;
28: 
29:     /**
30:      * Returns the directory containing view files for this controller.
31:      * This method overrides the parent implementation by specifying the view path
32:      * to be the "views" subdirectory under the directory containing the controller
33:      * class file.
34:      * @return string the directory containing the view files for this controller.
35:      */
36:     public function getViewPath()
37:     {
38:         if($this->_viewPath===null)
39:         {
40:             $class=new ReflectionClass(get_class($this));
41:             $this->_viewPath=dirname($class->getFileName()).DIRECTORY_SEPARATOR.'views';
42:         }
43:         return $this->_viewPath;
44:     }
45: 
46:     /**
47:      * @param string $value the directory containing the view files for this controller.
48:      */
49:     public function setViewPath($value)
50:     {
51:         $this->_viewPath=$value;
52:     }
53: }
54: 
API documentation generated by ApiGen 2.8.0