Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //----------------------------------------------
- // setups view
- //----------------------------------------------
- class SetupsView extends View {
- private $maincontent = '';
- //----------------------------------- common render
- protected function commonRender() {
- }
- //----------------------------------- render blocks
- protected function renderBlocks() {
- $this->_blocks['header'] = 'application setup';
- $this->_blocks['content'] = $this->maincontent;
- }
- //----------------------------------- start setup
- public function start_setup() {
- //$this->_w($this->_routes, __METHOD__);
- $this->maincontent =
- $this->v_message.'<br/><br/><a href="'.$this->route_create_tables().'">continue</a>';
- }
- //----------------------------------- create tables
- public function create_tables() {
- $this->maincontent = 'creating tables<br/><br/>'.
- $this->v_message.'<br/><br/><a href="'.$this->route_finish().'">finish</a>';
- }
- //----------------------------------- finish setup
- public function finish_setup() {
- $this->maincontent = $this->v_message;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement