Changes between Version 5 and Version 6 of GuardPlugin
- Timestamp:
- 2011-03-25T21:00:51Z (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GuardPlugin
v5 v6 42 42 {{{ 43 43 cp app/plugins/guard/config/guard_default.php app/config/guard.php 44 }}} 45 46 The last step is to change the application to load Guard component instead of Auth component. It is usually in app/app_controller.php. Because Guard component is subclass of Auth component, all the parameters accepted by Auth are also accepted by Guard component. Guard component will also define Auth as the alisas of Guard component. So there is no need to change all the Auth reference in the application. 47 48 {{{ 49 class AppController extends Controller 50 { 51 var $components = array('Guard.Guard', 'Other_Compoment'); 52 ... 44 53 }}} 45 54