本文整理汇总了PHP中CActiveForm::run方法的典型用法代码示例。如果您正苦于以下问题:PHP CActiveForm::run方法的具体用法?PHP CActiveForm::run怎么用?PHP CActiveForm::run使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CActiveForm
的用法示例。
在下文中一共展示了CActiveForm::run方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: run
/**
* Runs the widget.
* This registers the necessary javascript code and renders the form close tag.
*/
public function run()
{
foreach ($this->_summaryAttributes as $attribute) {
$this->attributes[$attribute]['summary'] = true;
}
$options['attributes'] = array_values($this->attributes);
parent::run();
}
示例2: run
/**
* Runs the widget.
*/
public function run()
{
$templates = array();
foreach ($this->model->getTemplates() as $i => $template) {
$templates[$i] = basename($template) . ' (' . $template . ')';
}
$this->renderFile(Yii::getPathOfAlias('gii.views.common.generator') . '.php', array('model' => $this->model, 'templates' => $templates));
parent::run();
echo "</div>";
}
示例3: run
public function run()
{
parent::run();
if (Yii::app()->request->isAjaxRequest && !empty($_POST['ajaxReturn'])) {
$id = "#" . $this->htmlOptions['id'];
$ajaxReturn = $_POST['ajaxReturn'];
$js = "\$( '{$id}' ).submit( function(){ \$(this).formSubmit( {$ajaxReturn} ); return false; });";
Yii::app()->clientScript->registerScript('form' . $id, $js, CClientScript::POS_END);
}
}
示例4: run
/**
* Execute the widget.
*
* @access public
* @return void
*/
public function run()
{
parent::run();
}
示例5: run
/**
* Runs the widget.
* Don't render the close tag
*/
public function run()
{
ob_start();
parent::run();
ob_get_clean();
}
示例6: run
/**
* Runs the widget.
* This registers the necessary javascript code and renders the form close tag.
*/
public function run()
{
/* todo: override this parent's method in order to register our own js */
parent::run();
}