Difference between #2 and #3 of
Load the Yii-Bootstrap Extension on Specific Actions

Revision #3 has been created by chuntley on Dec 17, 2012, 3:10:34 PM with the memo:

More explanation on preventing bootstrap loading on delete action
« previous (#2)

Changes

Title unchanged

Load the Yii-Bootstrap Extension on Specific Actions

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

bootstrap, filter

Content changed

[...]
);
}

```

This will load bootstrap for all actions in the controller, other than the "delete" action.
 By default the "delete" action does not render a view, which allows us to safely skip bootstrap loading on that action. If you wanted to disable loading bootstrap for another specific action, do the following:


```php
array('ext.bootstrap.filters.BootstrapFilter - delete, uploadajax')
```
[...]
7 0
15 followers
Viewed: 27 977 times
Version: 1.1
Category: How-tos
Written by: chuntley
Last updated by: chuntley
Created on: Dec 13, 2012
Last updated: 12 years ago
Update Article

Revisions

View all history