- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
<?php
class Controller_Messages extends Controller {
    
    function __construct() {
        $this->log = new Log;
        if(!defined('SECURITY_CONST')) {
            $this->log->log('[controller_messages.php:'.__LINE__.'] SECURITY_CONST is undefined');
            exit;
        }
        $this->user = new User;
        $this->lang = new Lang;
        $this->view = new View;
        $this->model = new Model_Messages;
        if(!$this->user->isAuth()) {
            header('Location: /not_auth');
        }
        $this->user_lang = $this->user->getLang();
        $this->lang->setLang($this->user_lang);
    }
                                 
        
установка в подпапки неподдерживается
В противном случае движок будет негибким.
throw new StackOverflowException();
}