Skip to content

igodip/Cakephp-Users

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CakePHP Users Plugin

Installation

Open the console and type:

cake schema create --plugin Users

Load the plugin in the file Config/bootstrap.php

CakePlugin::loadAll(array(
    array('routes' => true, 'bootstrap' => true, 'ignoreMissing' => true)
));

Modify the AppController.php file.

public function beforeFilter(){
    parent::beforeFilter();
	
	if (isset($this->params['prefix']) && $this->params['prefix'] == 'admin') {
		$this->Auth->deny();
    }else{
    	$this->Auth->allow();
    }
	
}

About

Cakephp-Users plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages