Changes between Version 5 and Version 6 of GuardPlugin


Ignore:
Timestamp:
2011-03-25T21:00:51Z (14 years ago)
Author:
Pan Luo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GuardPlugin

    v5 v6  
    4242{{{
    4343cp app/plugins/guard/config/guard_default.php app/config/guard.php
     44}}}
     45
     46The 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{{{
     49class AppController extends Controller
     50{
     51  var $components = array('Guard.Guard', 'Other_Compoment');
     52...
    4453}}}
    4554