private function backend_model_wrapper($html) { $html = $this->backend_wrapper($html, 'model'); if ($this->backend_id) { $script = ''; foreach ($this->backend_id as $backend_id) { $script .= 'routerunner_attach("' . $backend_id . '");' . PHP_EOL; } \runner::stack_js($script); /* $html .= <<<HTML <script id="script_{$backend_id}">{$script}</script> HTML; */ } else { // todo: throw exception } return $html; }
<?php $debug = 1; \user::logout(); \runner::stack_js('setTimeout(function() { window.location.href = "' . \runner::config('BASE') . '"; }, 2000);'); ?> <body class="page-md page-header-top-fixed"> <div class="backend-wrapper"> <!-- BEGIN CONTAINER --> <div class="page-container row container-fluid container-margin"> <h1>You've been successfully logged out!</h1> </div> </div> </body>
<?php $debug = 1; \user::logout(); \runner::stack_js('setTimeout(function() { window.location.href = "' . \runner::config('BASE') . 'admin/user/loggedout"; }, 100);'); ?> <body class="page-md page-header-top-fixed"> <div class="backend-wrapper"> <!-- BEGIN CONTAINER --> <div class="page-container row container-fluid container-margin"> <h1>You've been successfully logged out!</h1> </div> </div> </body>