widgets\DetailView run()

run() public method Renders the detail view. This is the main entry of the whole detail view rendering. public void run ( )

web\YiiAsset $js

$js public property public $js = ['yii.js']

gii\Module beforeAction()

beforeAction() public method This method is invoked right before an action within this module is executed. The method will trigger the EVENT_BEFORE_ACTION event. The return value of the method will determine whether the action should continue to run. In case the action should not run, the request should be handled inside of the beforeAction code by either providing the necessary output or redirecting the request. Otherwise the response will be empty. If you override this method, your code s

bootstrap\ActiveForm field()

field() public method Generates a form field. A form field is associated with a model and an attribute. It contains a label, an input and an error message and use them to interact with end users to collect their inputs for the attribute. public yii\bootstrap\ActiveField field ( $model, $attribute, $options = [] )$model yii\base\Model The data model. $attribute string The attribute name or expression. See yii\bootstrap\Html::getAttributeName() for the format about attribute expression.

grid\GridView renderItems()

renderItems() public method Renders the data models for the grid view. public void renderItems ( )

redis\Cache setValue()

setValue() protected method Stores a value identified by a key in cache. This method should be implemented by child classes to store the data in specific cache storage. protected boolean setValue ( $key, $value, $expire )$key string The key identifying the value to be cached $value mixed The value to be cached. Most often it's a string. If you have disabled $serializer, it could be something else. $expire return boolean True if the value is successfully stored into cache, false oth

web\Request $serverName

$serverName public read-only property Server name, null if not available public string getServerName ( )

widgets\ActiveFormAsset $sourcePath

$sourcePath public property public $sourcePath = '@yii/assets'

Creating your own Application structure

Clone the Basic Template Modify the Files Make a Package Use the Template Note: This section is under development. While the basic and advanced project templates are great for most of your needs, you may want to create your own project template with which to start your projects. Project templates in Yii are simply repositories containing a composer.json file, and registered as a Composer package. Any repository can be identified as a Composer package, making it installable via create-project

grid\GridView $showHeader

$showHeader public property Whether to show the header section of the grid table. public boolean $showHeader = true