Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function beforeFilter(Event $event) {
- if( true ){ //if a sample condition is true
- return $this->redirect([
- 'controller' => 'test',
- 'action' => 'action'
- ]);
- }
- public function beforeFilter(Event $event) {
- if( true ){ //if a sample condition is true
- $url = '/'; //set url here
- echo '<script type="text/javascript">';
- echo 'window.location="'.$url.'"';
- echo '</script>';
- exit;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement