
Yii
bennybi
心若浮云常自在, 意如流水任东西...
展开
-
Yii2融合EasySwoole的消息处理服务
众所周知,Yii2是集优雅与效率于一身的框架,EasySwoole则对Swoole做了人性化的使用包装,如何能使两者相融合,这里分享我的实践例子。src\common\config\main.php - 定义easyswoole根目录。1. 在Yii控制台下启动,兼容EasySwoole的种种特性。2. 能正确调取Yii中所有的模型类、组件等等。原创 2022-10-27 10:57:44 · 710 阅读 · 0 评论 -
优先级
Action调用优先级: 1 路由映射 2 Module Action 3 App Action 模板调用优先级: 1. Theme's i18n 模板 2. Theme's 模板 3. 默认模板原创 2017-03-20 10:51:42 · 250 阅读 · 0 评论 -
常用命令笔记
1. 产生模块语言包: yiic message modules/InfBackOffice/messages/config.php原创 2017-03-20 10:51:47 · 186 阅读 · 0 评论 -
Model常用搜索方法
User::model()->findByAttributes(array('name' => $this->username))原创 2017-03-20 10:51:50 · 369 阅读 · 0 评论 -
Rules
1. 模组需要包含文件要定义在模组Class里面,如: class XxxModule extends CWebModule { public $theme; public function init() { // this method is called when the module is being created // you may p原创 2017-03-20 10:51:53 · 189 阅读 · 0 评论 -
Yii2常用笔记
【代码】Yii2常用笔记。原创 2017-03-20 10:52:04 · 243 阅读 · 1 评论 -
Integration with ZF2
1. edit index.php Yii::import('application.vendors.zf2.Loader.StandardAutoloader', true); Yii::registerAutoloader(array(new Zend\Loader\StandardAutoloader(array('autoregister_zf' => true)), 'autoload原创 2017-03-20 10:52:10 · 242 阅读 · 0 评论 -
gii使用样例
Model Class: module_name.models.model Controller ID: module_name/controller Form generation example: crud的配置" TITLE="gii声明modulecrud的配置" />原创 2017-03-20 10:52:13 · 267 阅读 · 0 评论