Abstract Class yeesoft\controllers\admin\BaseController

Inheritanceyeesoft\controllers\admin\BaseController » yeesoft\controllers\BaseController » yii\web\Controller
Subclassesyeesoft\comment\controllers\DefaultController, yeesoft\controllers\admin\DashboardController, yeesoft\media\controllers\AlbumController, yeesoft\media\controllers\CategoryController, yeesoft\media\controllers\DefaultController, yeesoft\media\controllers\ManageController, yeesoft\menu\controllers\DefaultController, yeesoft\menu\controllers\LinkController, yeesoft\page\controllers\DefaultController, yeesoft\post\controllers\CategoryController, yeesoft\post\controllers\DefaultController, yeesoft\seo\controllers\DefaultController, yeesoft\settings\controllers\CacheController, yeesoft\settings\controllers\DefaultController, yeesoft\settings\controllers\ReadingController, yeesoft\settings\controllers\SettingsBaseController, yeesoft\translation\controllers\DefaultController, yeesoft\translation\controllers\SourceController, yeesoft\user\controllers\DefaultController, yeesoft\user\controllers\PermissionController, yeesoft\user\controllers\PermissionGroupsController, yeesoft\user\controllers\RoleController, yeesoft\user\controllers\UserPermissionController, yeesoft\user\controllers\VisitLogController

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$_implementedActions array yeesoft\controllers\admin\BaseController

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
findModel() Finds the model based on its primary key value. yeesoft\controllers\admin\BaseController
getRedirectPage() Define redirect page after update, create, delete, etc yeesoft\controllers\admin\BaseController
renderIsAjax() Render ajax or usual depends on request yeesoft\controllers\BaseController

Property Details

$_implementedActions protected property
protected array $_implementedActions = ['index''view''create''update''delete''toggle-attribute''bulk-activate''bulk-deactivate''bulk-delete''grid-sort''grid-page-size']
$disabledActions public property
public array $disabledActions = []
$enableOnlyActions public property
$layout public property
public string $layout '@vendor/yeesoft/yii2-yee-core/views/layouts/admin/main.php'
$modelClass public property
$modelSearchClass public property

Method Details

actionBulkActivate() public method

Activate all selected grid items

public void actionBulkActivate ( )
actionBulkDeactivate() public method

Deactivate all selected grid items

public void actionBulkDeactivate ( )
actionBulkDelete() public method

Deactivate all selected grid items

public void actionBulkDelete ( )
actionCreate() public method

Creates a new model.

If creation is successful, the browser will be redirected to the 'view' page.

public mixed actionCreate ( )
actionDelete() public method

Deletes an existing model.

If deletion is successful, the browser will be redirected to the 'index' page.

public mixed actionDelete ( $id )
$id integer
actionGridPageSize() public method

Set page size for grid

public void actionGridPageSize ( )
actionGridSort() public method

Sorting items in grid

public void actionGridSort ( )
actionIndex() public method

Lists all models.

public mixed actionIndex ( )
actionToggleAttribute() public method

public void actionToggleAttribute ( $attribute, $id )
$attribute string
$id int
actionUpdate() public method

Updates an existing model.

If update is successful, the browser will be redirected to the 'view' page.

public mixed actionUpdate ( $id )
$id integer
actionView() public method

Displays a single model.

public mixed actionView ( $id )
$id integer
beforeAction() public method

public void beforeAction ( $action )
$action
behaviors() public method

public void behaviors ( )
findModel() protected method

Finds the model based on its primary key value.

If the model is not found, a 404 HTTP exception will be thrown.

protected yeesoft\db\ActiveRecord findModel ( $id )
$id mixed
return yeesoft\db\ActiveRecord

The loaded model

throws \yii\web\NotFoundHttpException

if the model cannot be found

getRedirectPage() protected method

Define redirect page after update, create, delete, etc

protected string|array getRedirectPage ( $action, $model null )
$action string
$model yeesoft\db\ActiveRecord