CakePHP 2.x User Management Premium Plugin Version 2.3.x
Must Know Necessary Things
You must follow the necessary things for better use of this plugin-
- App Controller (yourapp/app/Controller/AppController.php) Download App Controller
- This controller must use 'Form', 'Html', 'Session', 'Js', 'Usermgmt.UserAuth', 'Usermgmt.Image' helpers.
- This controller must use 'Session','RequestHandler', 'Usermgmt.UserAuth' components.
- This controller must have 'userAuth' private function.
- This controller must have 'beforeFilter' function and should call 'userAuth' from inside it.
- This controller must have 'paginate' override function.
- Plugin already has Security feature. If you want use security on rest of the pages of site you should use 'Security' component in this controller.
- Bootstrap (yourapp/app/Config/bootstrap.php)
- This file is used for loading plugins.
- Please load User Management Plugin in this file
CakePlugin::load('Usermgmt', array('routes' => true, 'bootstrap' => true));
- Please note in above syntax 'routes' => true, 'bootstrap' => true must be present.
- beforeFilter (a function in any controller)
- If you use this function in your controller you must have parent::beforeFilter(); as a first line in this function.
- If you do not use parent::beforeFilter(); in this function this can break authentication functionality of your site.
- Basically authentication is controlled from beforeFilter function of App Controller. If you use beforeFilter function in other controller this means you are overriding this function, In this case App Controller beforeFilter function will not execute. For avoiding this you should use parent::beforeFilter(); in any override beforeFilter function.
- Your layout must include plugin CSS and JS file and other things Download Default Layout
- You must include plugin css, js and other setting in your default layout (yourapp/app/View/Layouts/default.ctp)
- For more information reffer README file
- Image Folder
- By default profile photos folder name is umphotos (yourapp/app/webroot/img/umphotos)
- This folder must have write permissions for e.g. 777 permissions
- Also img folder (yourapp/app/webroot/img) should have write permissions for e.g. 777 permissions
- Google and Yahoo Authentication
- If google and yahoo authentication are not working on your website please contact me at chetanvarshney@gmail.com
- Twitter Bootstrap
- If you are using 2.3 version then you should download Twitter Bootstrap package from Twitter Bootstrap Official Website
- Follow instructions from REAM me file
- Tinymce and Ckeditor code
- Download Tinymce editor from Tinymce Official Website
- Download Ckeditor editor full package from Ckeditor Official Website
- Follow instructions from REAM me file
- Jquery
- Download Jquery latest version from Jquery Official Website
- Follow instructions from REAM me file
- Bootstrap Datepicker
- Download Bootstrap Datepicker from here
- Follow instructions from REAM me file
- Bootstrap Datetimepicker
- Download Bootstrap Datepicker from here
- Follow instructions from REAM me file
- Bootstrap Chosen
- Download Bootstrap Chosen from here
- Follow instructions from REAM me file
- Bootstrap Typeahead
- Download Bootstrap Typeahead from here
- Follow instructions from REAM me file