Is any way to do something like that: Triggers on action, that runnings before or after action, and in other folder. For example folder protected/triggers/CMainController.php function actionAfterIndex() { ... } Will calls after main action.
There are methods in CController for beforeAction() and afterAction() . You're also able to determine the current action with their $action parameter.
protected boolean beforeAction(CAction $action)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.