Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //-------------------------------------------------
- // setups controller
- //-------------------------------------------------
- class SetupsController extends Controller {
- protected $_routes = array(
- 'start' => 'action=start_setup',
- 'create_tables' => 'action=create_tables',
- 'finish' => 'action=finish_setup'
- );
- //----------------------------------- declare params
- protected function declareParams() {
- }
- //----------------------------------- common Dispatch
- protected function commonDispatch() {
- }
- //----------------------------------- start setup
- public function start_setup() {
- //$this->_w($this->_routes, __METHOD__);
- $this->set('message', 'start setup');
- }
- //----------------------------------- create tables
- public function create_tables() {
- $this->set('message',$this->Setup->createTables());
- }
- //----------------------------------- finish setup
- public function finish_setup() {
- $this->set('message', 'setup finished');
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement