摘要:
一、调用相同模块下不同控制器的action // 在frontend\controllers\TestController\actionTest 方法中调用同一模块下的 // frontend\controllers\NewController\actionNewAction 方法 Yii::$ap 阅读全文
摘要:
定义: 策略模式(Strategy):它定义了算法家族,分别封装起来,让它们之间可以互相替换,此模式让算法的变化,不会影响到使用算法的客户。 结构: Strategy(策略类):定义所有支持的算法的公共接口。 ConcreteStrategy(具体策略类):封装了具体的算法或行为,继承于Strate 阅读全文
摘要:
在入口文件下添加.htaccess文件: # use mod_rewrite for pretty URL support RewriteEngine on # if a directory or a file exists, use the request directly RewriteCond 阅读全文