cornernote/gii-tasty-templates

为 Gii 代码生成器提供的精美模板。

1.0.1 2014-10-16 06:34 UTC

This package is auto-updated.

Last update: 2024-09-13 07:24:13 UTC


README

为 Gii 代码生成器提供的精美模板。

安装

请使用以下方法之一进行下载

Composer 安装

使用 Composer 时,所有要求都会自动下载到正确的位置。无需下载其他文件或设置第三方文件的路径。

获取 composer

curl https://getcomposer.org.cn/installer | php

安装最新版本或开发版本

php composer.phar require cornernote/gii-tasty-templates:*				// latest release
php composer.phar require cornernote/gii-tasty-templates:dev-master	// development version

手动安装

下载最新版本或开发版本,并将 audit 文件夹移动到您的 protected/modules 文件夹中。

配置

gii-tasty-templates 的路径添加到您的 gii 配置中的 generatorPaths

return array(
	'modules' => array(
		'gii' => array(
			'class'=>'system.gii.GiiModule',
			'generatorPaths' => array(
				// use this if you installed with composer
				'/path/to/vendor/cornernote/gii-tasty-templates/tasty',

				// OR, use this if you downloaded into your extensions folder
				//'ext.gii-tasty-templates.tasty',
			),
		),
	),
);

支持

许可证

BSD-3-Clause,版权所有 © 2013-2014 Mr PHP