コード例 #1
0
 public function platformsAction()
 {
     include_once 'platforms.php';
     $this->tplVars['header']['actions']['names'][] = array('name' => 'platforms', 'menu_name' => 'Platform list');
     $this->tplVars['header']['actions']['names'][] = array('name' => 'platformadd', 'menu_name' => 'Platform add');
     $this->tplVars['header']['actions']['names'][] = array('name' => 'os', 'menu_name' => 'OS list');
     array_push($this->viewIncludes, 'products/platformList.tpl');
     $platforms = new Platforms();
     $this->tplVars['platforms'] = $platforms->selectAll();
     unset($platforms);
 }