Просмотр файла vkclone-0.0.1/protected/components/ControllerBehavior.php

Размер файла: 499B
<?php
class ControllerBehavior extends CBehavior {
	public function events() {
		return array(
			'onBeforeAction' => 'beforeAction',
			'onAfterAction' => 'afterAction',
			'onBeforeRender' => 'beforeRender',
			'onAfterRender' => 'afterRender',
		);
	}

	protected function beforeAction(ControllerEvent $event) {}

	protected function afterAction(ControllerEvent $event) {}

	protected function beforeRender(ControllerEvent $event) {}

	protected function afterRender(ControllerEvent $event) {}
}