PHP 8.1.33
Preview: CCodeForm.php Size: 1.18 KB
/home/jambtst2015/www/framework/gii/CCodeForm.php

<?php
/**
 * CCodeForm class file.
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @link http://www.yiiframework.com/
 * @copyright 2008-2013 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

/**
 * CCodeForm represents the form for collecting code generation parameters.
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @package system.gii
 * @since 1.1.2
 */
class CCodeForm extends CActiveForm
{
	/**
	 * @var CCodeModel the code model associated with the form
	 */
	public $model;

	/**
	 * Initializes the widget.
	 * This renders the form open tag.
	 */
	public function init()
	{
		echo <<<EOD
<div class="form gii">
	<p class="note">
		Fields with <span class="required">*</span> are required.
		Click on the <span class="sticky">highlighted fields</span> to edit them.
	</p>
EOD;
		parent::init();
	}

	/**
	 * 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>";
	}
}

Directory Contents

Dirs: 6 × Files: 6

Name Size Perms Modified Actions
assets DIR
- drwxr-xr-x 2024-11-22 17:53:16
Edit Download
- drwxr-xr-x 2025-10-15 07:48:57
Edit Download
- drwxr-xr-x 2025-10-15 14:46:03
Edit Download
- drwxr-xr-x 2024-11-22 17:53:16
Edit Download
models DIR
- drwxr-xr-x 2025-10-18 20:04:02
Edit Download
views DIR
- drwxr-xr-x 2024-11-22 17:53:16
Edit Download
3.08 KB lrw-r--r-- 2024-11-22 17:53:16
Edit Download
1.18 KB lrw-r--r-- 2024-11-22 17:53:16
Edit Download
4.46 KB lrw-r--r-- 2024-11-22 17:53:16
Edit Download
13.42 KB lrw-r--r-- 2024-11-22 17:53:16
Edit Download
18.50 KB lrw-r--r-- 2025-11-03 23:39:34
Edit Download
7.49 KB lrw-r--r-- 2024-11-22 17:53:16
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).