码迷,mamicode.com
首页 >  
搜索关键字:behaviors    ( 75个结果
yii2_访问控制
public function behaviors() { return [ 'access' => [ 'class' => \yii\filters\AccessControl::className(), 'only' => ['create', 'update'], 'rules' => [ ... ...
分类:其他好文   时间:2017-02-15 00:56:48    阅读次数:270
yii2缓存action里的views
1在控制器里加上 public function behaviors() { $behaviors[]= [ 'class' => 'yii\filters\PageCache', // 设置需要加载的缓存文件 'only' => ['index'], // 设置需要缓存的控制器 'durati..... ...
分类:其他好文   时间:2017-02-04 11:28:20    阅读次数:190
yii2_behaviors() _AccessControl过滤器详解
1 2 或者重载 ...
分类:数据库   时间:2017-01-30 10:32:37    阅读次数:564
Yii2页面缓存详解
class TestController extends Controller{ // 该方法会在其他方法之前执行 public function behaviors() { // 声明缓存配置 return [ // 需要注意的这里是二维数组 [ 'class' => 'yii\fi... ...
分类:其他好文   时间:2017-01-26 12:22:00    阅读次数:218
[Angular Directive] Combine HostBinding with Services in Angular 2 Directives
You can change behaviors of element and @Component properties based on services using @HostBinding in @Directives. This allows you to build @Directive ...
分类:其他好文   时间:2016-12-22 20:04:55    阅读次数:214
[Angular Directive] Build a Directive that Tracks User Events in a Service in Angular 2
A @Directive is used to add behavior to elements and components in your application. This makes @Directives ideal for behaviors such as "tracking" whi ...
分类:其他好文   时间:2016-12-22 19:26:49    阅读次数:212
iOS10之Expected App Behaviors
昨天上架到appStore的时候碰到个问题,构建好后上传到itunesconnect的的包都用不了, 显示错误为:此构建版本无效。 或者英文显示为:ITC.apps.preReleaseBuild.errors.invalidBinary 由于和itunesconnect帐号绑定的邮箱暂时进不去,没 ...
分类:移动开发   时间:2016-12-21 13:58:18    阅读次数:290
[Angular Directive] 3. Handle Events with Angular 2 Directives
A @Directive can also listen to events on their host element using @HostListener. This allows you to add behaviors that react to user input and update ...
分类:其他好文   时间:2016-12-21 07:43:55    阅读次数:172
[Angular Directive] 1. Write an Angular Directive
Angular 2 Directives allow you manipulate elements by adding custom behaviors through attributes. This lesson covers how to create a Directive and att ...
分类:其他好文   时间:2016-12-21 07:40:53    阅读次数:140
YII2 过滤器 filters
使用过滤器 过滤器本质上是一类特殊的 行为,所以使用过滤器和 使用 行为一样。 可以在控制器类中覆盖它的 yii\base\Controller::behaviors() 方法来申明过滤器, 如下所示: ...
分类:其他好文   时间:2016-11-30 19:52:27    阅读次数:156
75条   上一页 1 2 3 4 5 6 ... 8 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!