Spark Plug Cakephp plugin is a user management and admin section using authsome and a simple acl.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
config facebook connect integration (thanks to nice plugin… Aug 17, 2010
controllers fixed security issue thanks to mescalito Oct 19, 2011
locale fixed typo in config param Jul 22, 2010
tests Moved directories so project can be used as a git submodule in plugin… May 17, 2010
cake.bat started translation to spanish (uses/dashboard.ctp is translated as a… May 31, 2010


| SparkPlug is a simple auth-acl plugin for cakephp1.3 |

Default user created = admin
Default password = 1234

1. Download the latest version or use git to keep the plugin up to date

	cd yourapp/app/plugins
	git clone git://  

2. Schema import (use your favorite sql tool to import the schema)


3. Import config files

	3.1 open /app/config/core.php and paste on the last line
	3.2 open /app/config/routes.php and paste on the last line
4. Include callback in your AppController class

	open or create the file /app/app_controller.php and paste or edit the file. It should look like this 
		class AppController extends Controller {
			var $components = array ('Session','SparkPlug.Authsome' => 
				array('model' => 'User'));
        	var $uses = array('SparkPlug.UserGroup');
			function beforeFilter()

5. Adjust plugin configuration

	Change /app/plugins/spark_plug/config/config.php (parameters are explained there) to suit your needs.
6. {OPTIONAL} Do you want your permission rules filtered ?

	cd yourapp/app/plugins
	git clone filter
	then modify in your app_controller components variable this line
	var $components = array ('Session', 'Filter.Filter', 'SparkPlug.Authsome' => 
				array('model' => 'User'));  

	(note 'Filter.Filter' component added)

7. {OPTIONAL} Do you want facebook users to access your app ?

	cd yourapp/app/plugins
	git clone facebook
	then modify in your app_controller components variable this line
	var $components = array ('Session', 'Facebook.Connect', 'SparkPlug.Authsome' => 
				array('model' => 'User'));  

	(note 'Facebook.Connect' component added)
	then copy the file
	yourapp/app/plugins/facebook/facebook.php.example into yourapp/config/facebook.php
	then edit file yourapp/config/facebook.php
	and put your facebook app keys
	Yes, you have to login previously to your facebook account and then create a new application, using fb developers api 
	You will first need to update your facebook application with the connect url of your application's url.  This is done on 
	the facebook application settings. 



please check github page (