public attr / function, constructeurs __construct
[mtweb] / mw / app / controllers / index / index.php
1 <?php
2
3   class mw_index_index extends mw_controller{
4
5     public function index(){
6       $env = $this->env();
7       $start_action = $env->config("start_action");
8       if($start_action){
9         if($env->get_controller($start_action)){
10           $start_action_params = $env->config("start_action_params");
11           if($start_action_params && is_array($start_action_params)){
12             foreach($start_action_params as $key => $value) $_GET[$key] = $value;
13           }
14           $env->run($start_action);
15         }
16       }
17     }
18
19   }