EditAction.php 443 Bytes
Newer Older
Clément Damiens's avatar
 
Clément Damiens committed
1
 <?php
Clément Damiens's avatar
 
Clément Damiens committed
2
class EditAction extends CAction
Clément Damiens's avatar
 
Clément Damiens committed
3 4 5 6
{
    public function run($id=null, $answer=null, $tpl=null)
    {
    	$this->getController()->layout = "//layouts/empty";
Clément Damiens's avatar
 
Clément Damiens committed
7
        $params = array("canEdit" => true, "showAnswerActions"=>false);
Clément Damiens's avatar
 
Clément Damiens committed
8
        $params = Form::getDataForAnswer($params);
Clément Damiens's avatar
 
Clément Damiens committed
9
        $tpl=(!empty($tpl)) ? $tpl : "survey.views.tpls.forms.formWizard";
Clément Damiens's avatar
 
Clément Damiens committed
10 11 12 13
        echo $this->getController()->renderPartial($tpl,$params );
	 			
    }
 }