easybib / form-decorator
EasyBib_Form_Decorator 是一套用于 Zend_Form 的 Twitter Bootstrap 装饰器
0.4.1
2013-07-26 15:59 UTC
Requires
- php: >=5.3.0
Suggests
- easybib-core/zf1: Our Zend Framework 1 fork (sans require_once and a couple components we don't need/use)
This package is auto-updated.
Last update: 2024-09-08 07:02:05 UTC
README
安装与配置
Composer
将此添加到仓库
{ "type": "vcs", "url": "https://github.com/easybib/EasyBib_Form_Decorator" }
然后在 require 中添加此内容
"easybib/form-decorator": "*"
PEAR
sudo pear channel-discover easybib.github.com/pear
sudo pear install easybib/EasyBib_Form_Decorator-alpha
- 在您的 application.ini 中添加
autoloaderNamespaces[] = "EasyBib"
- 在您的 Bootstrap 中添加
$view->addHelperPath('EasyBib/View/Helper', 'EasyBib_View_Helper');
- 按照文档夹中的示例将装饰器集成到您的表单中
更新?(PEAR)
(我们最喜欢你了!)
sudo pear upgrade -c easybib
或:sudo pear channel-update easybib.github.com/pear
pear upgrade easybib/EasyBib_Form_Decorator
表单装饰器
请参阅 docs
文件夹以获取装饰器示例表单和控制器用法
消息格式化工具
一个用于打印出花哨的 Twitter Bootstrap 消息的视图辅助工具。需要在视图辅助路径中添加(参见安装 4)
创建新包版本
包仓库(在源代码更改后)
- 在 generate-package.php 中更改版本
- php generate-package.php make
- pear package
- 将创建的 tgz 存档移动到 pear 仓库
Pear 仓库
pirum add . new_version.tgz
git add -A
git commit -a
git push origin gh-pages
Pear 升级(本地/vagrant 虚拟机)
sudo pear upgrade -c easybib
- (
sudo pear channel-update easybib.github.com/pear
)