Advertisement
terorama

mvc / setupsview.inc.php

Dec 22nd, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.22 KB | None | 0 0
  1. <?php
  2.  
  3. //----------------------------------------------
  4. //            setups view
  5. //----------------------------------------------
  6. class SetupsView extends View {
  7.    
  8.    private $maincontent = '';
  9.    
  10.    //-----------------------------------   common render
  11.    protected function commonRender() {
  12.    }
  13.    
  14.    //-----------------------------------   render blocks
  15.    protected function renderBlocks() {
  16.    
  17.       $this->_blocks['header'] = 'application setup';
  18.       $this->_blocks['content'] = $this->maincontent;
  19.    }
  20.    
  21.    //-----------------------------------   start setup
  22.    public function start_setup() {
  23.    
  24.       //$this->_w($this->_routes, __METHOD__);
  25.       $this->maincontent =
  26.          $this->v_message.'<br/><br/><a href="'.$this->route_create_tables().'">continue</a>';
  27.    }
  28.    
  29.    //-----------------------------------   create tables
  30.    public function create_tables() {
  31.    
  32.       $this->maincontent = 'creating tables<br/><br/>'.
  33.          $this->v_message.'<br/><br/><a href="'.$this->route_finish().'">finish</a>';
  34.    }
  35.    
  36.    //-----------------------------------   finish setup
  37.    public function finish_setup() {
  38.    
  39.       $this->maincontent = $this->v_message;
  40.    }
  41.    
  42. }
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement