[ONE LINE DESCRIPTION OF PROJECT]
[A PARAGRAPH DESCRIBING WHY YOU BUILT THIS]
[ANOTHER PARAGRAPH DESCRIBING YOUR IMPETUS FOR RELEASING THIS]
| [alias] | |
| au = update-index --assume-unchanged webroot/index.php plugins/empty tmp/cache/blog/empty tmp/cache/cms/empty tmp/cache/core/empty tmp/cache/models/empty tmp/cache/newsletter/empty tmp/cache/persistent/empty tmp/cache/views/empty |
| <?php | |
| App::uses('Controller', 'Controller'); | |
| class AppController extends Controller { | |
| public $components = array( | |
| 'Auth' => array( | |
| 'authorize' => 'Controller', | |
| ), | |
| 'Session' |
| No AuthComponent => everything is public | |
| With AuthComponent => everything denied by default (except login action) | |
| - open up certain action for public with: Auth->allow('action'); | |
| - open up all actions: Auth->allow(); | |
| - open up all non-admin actions, see Example (beforeFilter) | |
| AuthComponent setup with Authorize object => restrict actions for authenticated users | |
| - for instance with ControllerAuthorize, you define isAuthorized() function in your (App)Controller and | |
| have it return true/false based on some conditions, See Example (isAuthorized) |
| language: php | |
| php: | |
| - 5.3 | |
| - 5.4 | |
| env: | |
| - DB=mysql | |
| - DB=pgsql | |
| - DB=sqlite |
| <?php | |
| /** | |
| * ODBC for DBO | |
| * | |
| * PHP versions 4 and 5 | |
| * | |
| * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
| * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) | |
| * | |
| * Licensed under The MIT License |
| <?php | |
| /** | |
| * ModelWriteTest file | |
| * | |
| * PHP 5 | |
| * | |
| * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> | |
| * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | |
| * | |
| * Licensed under The MIT License |
| cd to app | |
| git submodule add git://github.com/ceeram/cakephp.git Core | |
| <optional> | |
| cd Core | |
| git checkout 2.4 | |
| cd .. | |
| </optional> | |
| //update webroot/index.php: |
| trait foo { function bob() { echo 'from trait'; }} | |
| class bar { use foo { bob as likeBob }; function bob() { $this->likeBob();}} | |
| class baz extends bar { function bob() { parent::bob(); echo ' from child'; }} | |
| $a = new baz; | |
| $a->bob(); | |
| //result: from trait from child |
| <?php | |
| /** | |
| * Provider Test Case | |
| * | |
| */ | |
| class ProviderTest extends PHPUnit_Framework_TestCase { | |
| /** | |
| * |