Skip to content

Instantly share code, notes, and snippets.

#The normal way
rich97@Ubuntu:~/Webroot/CakeCMP/app/plugins$ ls -la
total 8
drwxr-xr-x 2 rich97 rich97 4096 2010-02-03 15:30 .
drwxr-xr-x 13 rich97 rich97 4096 2010-01-22 17:15 ..
rich97@Ubuntu:~/Webroot/CakeCMP/app/plugins$ git clone git@github.com:rich97/CakeCMP.git
Initialized empty Git repository in /home/rich97/Webroot/CakeCMP/app/plugins/CakeCMP/.git/
remote: Counting objects: 1508, done.
remote: Compressing objects: 100% (1432/1432), done.
remote: Total 1508 (delta 256), reused 1235 (delta 60)
var loader = {
vpX: 0,
vpY: 0,
img: null,
setViewport: function(elem) {
loader.vpX = elem.width();
loader.vpY = elem.height();
},
callback: function(obj, callback) {
$.each(callback, function(method, params) {
<?php
namespace li3_cms\action;
class Controller extends \lithium\action\Controller {
}
-- phpMyAdmin SQL Dump
-- version 3.3.10
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 04, 2011 at 01:36 PM
-- Server version: 5.5.10
-- PHP Version: 5.3.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
<?php
/**
* li3_access plugin for Lithium: the most rad php framework.
*
* @author Tom Maiaroto
* @copyright Copyright 2010, Union of RAD (http://union-of-rad.org)
* @license http://opensource.org/licenses/bsd-license.php The BSD License
*/
namespace li3_access\tests\cases\extensions\adapter\security\access;
<?php
// ...
class AuthRbacTest extends \lithium\test\Unit {
// ...
public function testParseMatch() {
$request = new Request(array('library' => 'test_library', 'controller' => 'test_controller', 'action' => 'test_action'));
Summary
Classes Covered 1
Executable Lines 41
Lines Covered 41
Lines Uncovered 0
Total Coverage 100%
Average Per Class 100%
@rich97
rich97 / gist:1063377
Created July 4, 2011 14:14
Access control configuration.
<?php
use lithium\security\Auth;
use lithium\security\Password;
use li3_access\security\Access;
use li3_admin\models\Staffs;
Auth::config(array(
'root' => array(
'adapter' => 'Form', 'model' => 'Staffs', 'with' => 'Accounts',