models/CiiSettingsForm.php
public function run()
	{

		// Setup the form
		$form = $this->beginWidget('cii.widgets.CiiActiveForm', array(
		    'id'=>get_class($this->model),
		    'enableAjaxValidation'=>true,
		    'action' => $this->action,
		    'htmlOptions' => array(
		    	'class' => 'pure-form pure-form-aligned'
		    )
		));

			// Main Content
			$this->renderMain($form);

		// Close the form
		$this->endWidget();
	}
public function run()
	{

		// Setup the form
		$form = $this->beginWidget('cii.widgets.CiiActiveForm', array(
		    'id'=>get_class($this->model),
		    'enableAjaxValidation'=>true,
		    'action' => $this->action,
		    'htmlOptions' => array(
		    	'class' => 'pure-form pure-form-aligned'
		    )
		));

			// Main Content
			$this->renderMain($form);

		// Close the form
		$this->endWidget();
	}
public function run ( ) { // Setup the form $ form = $ this -> beginWidget ( 'cii.widgets.CiiActiveForm' , array ( 'id' => get_class ( $ this -> model ) , 'enableAjaxValidation' => true , 'action' => $ this -> action , 'htmlOptions' => array ( 'class' => 'pure-form pure-form-aligned' ) ) ) ; // Main Content $ this -> renderMain ( $ form ) ; // Close the form $ this -> endWidget ( ) ; }
The following is run when the widget is called
The following is run when the widget is called