$algo)); user()->setState('bench-algo', $a ? $algo : 'all'); //$this->redirect('/bench'); //return; } else { $algo = user()->getState('bench-algo'); } $this->render('index', array('algo'=>$algo)); } public function actionResults_overall() { $this->renderPartial('results_overall'); } public function actionDel() { $id = getiparam('id'); if ($id > 0 && $this->admin) { dborun("DELETE FROM benchmarks WHERE id=$id"); } $this->goback(); } ///////////////////////////////////////////////// public function actionDevices() { $this->render('devices'); } }