code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain th...
PHP
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain th...
PHP
<?php /* SVN FILE: $Id: ajax2.ctp 7062 2008-05-30 11:29:53Z nate $ */ /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, plea...
PHP
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain th...
PHP
<?php echo $rss->header(); if (!isset($channel)) { $channel = array(); } if (!isset($channel['title'])) { $channel['title'] = $title_for_layout; } echo $rss->document( $rss->channel( array(), $channel, $content_for_layout ) ); ?>
PHP
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain th...
PHP
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain th...
PHP
This is the TestsAppsController index view <?php echo isset($var) ? $var : ''; ?>
PHP
{"cakephp":"cool"}
PHP
<div id="notificationLayout"> <h1><?php echo $name; ?></h1> <h3><?php echo $title; ?></h3> <p><?php echo $message; ?></p> </div>
PHP
<h2>Cache Me</h2> <p>B. In Plain Element</p> <?php $this->log('2. in plain element') ?>
PHP
<?php echo $this->element('nocache/sub2'); ?> <!--nocache--> <?php $foobar = 'in sub1'; ?> <?php echo $foobar; ?> <!--/nocache--> <?php echo 'printing: "' . $foobar . '"'; ?>
PHP
<h2>Cache Me</h2> <!--nocache--> <p>F. In Element With No Cache Tags</p> <?php $this->log('6. in element with no cache tags') ?> <!--/nocache-->
PHP
<!--nocache--> <?php $barfoo = 'in sub2'; ?> <?php echo $barfoo; ?> <!--/nocache--> <?php echo 'printing: "' . $barfoo . '"'; ?>
PHP
<?php $this->extend('noneexistent_parent_element'); ?> Element content.
PHP
Parent Element. <?php echo $this->fetch('content'); ?>
PHP
<?php echo gettype($form); ?>
PHP
<?php echo 'this is the test element'; ?>
PHP
<?php $this->extend('parent_element'); ?> Element content.
PHP
<?php echo $this->Html->link('Test', 'http://example.com'); ?>
PHP
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain th...
PHP
<?php class TestAppEngine { }
PHP
Into TestPlugin.
PHP
test plugin default layout
PHP
<?php echo $content_for_layout; ?> This email was sent using the TestPlugin.
PHP
<?php echo 'this is the plugin element using params[plugin]'; ?>
PHP
<?php echo 'this is the test set using View::$plugin plugin element'; ?>
PHP
Content from TestPlugin.Elements/sub_dir/sub_element
PHP
<?php __('This is a translatable string'); ?>
PHP
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.tx...
PHP
<?php class TestPluginAppHelper extends AppHelper { }
PHP
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.tx...
PHP
test plugin index
PHP
test_plugin add/edit scaffold view
PHP
<?php class TestPluginEngine { }
PHP
<?php /** * Test Suite TestPlugin AppController * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LI...
PHP
<?php /** * TestPluginController used by Dispatcher test to test plugin shortcut urls. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and...
PHP
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.tx...
PHP
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.tx...
PHP
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.tx...
PHP
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.tx...
PHP
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.tx...
PHP
<?php /** * Test Suite TestPlugin Other Library * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LI...
PHP
<?php /** * Test Suite TestPlugin Library * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE....
PHP
<?php /** * Test Suite CustomLibClass Library * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICE...
PHP
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain th...
PHP
<?php /** * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain th...
PHP
<?php App::uses('CakeRoute', 'Routing/Route'); class TestRoute extends CakeRoute { }
PHP
<?php /** * Test Suite Test Plugin Cache Engine class. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see...
PHP
<?php /** * Exception Renderer * * Provides Exception rendering features. Which allow exceptions to be rendered * as HTML pages. * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT L...
PHP
<?php /** * Test Suite Test Plugin Logging stream class. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please s...
PHP
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.tx...
PHP
<?php /** * Testing task in a plugin * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt ...
PHP
<?php Configure::write('CakePluginTest.test_plugin.routes', 'loaded plugin routes');
PHP
;<?php exit() ?> ; SVN FILE: $Id$ ;/** ; * Test App Ini Based Acl Config File ; * ; * ; * PHP 5 ; * ; * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) ; * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) ; * ; * Licensed under The MIT License ; * Redistributions of files must r...
PHP
<?php /** * Test Suite TestPlugin config file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LIC...
PHP
<?php Configure::write('CakePluginTest.test_plugin.custom', 'loaded plugin custom config');
PHP
<?php Configure::write('CakePluginTest.test_plugin.bootstrap', 'loaded plugin bootstrap');
PHP
<?php /** * TestAppSchema file * * Use for testing the loading of schema files from plugins. * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and lice...
PHP
<?php /** * Test Suite TestPlugin config file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LIC...
PHP
<?php /** * Test Plugin Post Model * * * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistribut...
PHP
<?php /** * Behavior for binding management. * * Behavior to simplify manipulating a model's bindings when doing a find operation * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT L...
PHP
<?php /** * Behavior for binding management. * * Behavior to simplify manipulating a model's bindings when doing a find operation * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT L...
PHP
<?php /** * Test Plugin Auth User Model * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributi...
PHP
<?php /** * Test Suite TestPlugin AppModel * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE...
PHP
<?php /** * Test suite plugin session handler */ App::uses('CakeSessionHandlerInterface', 'Model/Datasource/Session'); class TestPluginSession implements CakeSessionHandlerInterface { public function open() { return true; } public function close() { } public function read($id) { } public function write...
PHP
<?php class TestDriver extends TestSource { }
PHP
<?php App::uses('DboSource', 'Model/Datasource'); class DboDummy extends DboSource { public function connect() { return true; } }
PHP
<?php App::uses('DataSource', 'Model/Datasource'); class TestSource extends DataSource { public function describe($model) { return compact('model'); } public function listSources($data = null) { return array('test_source'); } public function create(Model $model, $fields = array(), $values = array()) { re...
PHP
<?php class TestOtherSource extends DataSource { public function describe($model) { return compact('model'); } public function listSources($data = null) { return array('test_source'); } public function create(Model $model, $fields = null, $values = array()) { return compact('model', 'fields', 'values'); ...
PHP
<?php /** * Test App Comment Model * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions ...
PHP
<?php /** * Test App Comment Model * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions ...
PHP
<?php Configure::write('CakePluginTest.js_plugin.bootstrap', 'loaded js plugin bootstrap');
PHP
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.tx...
PHP
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.tx...
PHP
<?php Configure::write('CakePluginTest.test_plugin_two.bootstrap', 'loaded plugin two bootstrap');
PHP
<?php /** * Static content controller. * * This file will render views from views/pages/ * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license ...
PHP
<?php /** * Application level Controller * * This file is application-wide controller file. You can put all * application-wide controller-related methods here. * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)...
PHP
<?php /** * TestsAppsPostsController file * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE....
PHP
<?php App::uses('CakeErrorController', 'Controller'); class TestAppsErrorController extends CakeErrorController { public $helpers = array( 'Html', 'Session', 'Form', 'Banana', ); }
PHP
<?php /** * TestsAppsController file * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt ...
PHP
<?php /** * Test Suite TestUtilityClass Library * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LI...
PHP
<?php /** * Test Suite Library * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redi...
PHP
<?php /** * Test Suite Test App Cache Engine class. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see th...
PHP
<?php /** * Test Suite Test App Logging stream class. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see ...
PHP
<?php /** * SampleShell file * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redist...
PHP
admin_edit template
PHP
I got rendered <?php echo $test; ?>
PHP
<?php /** * Routes file * * Routes for test app * * PHP versions 4 and 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LI...
PHP
<?php $config = array( 'Read' => 'value2', 'Deep' => array( 'Second' => array( 'SecondDeepest' => 'buried2' ) ), 'TestAcl' => array( 'classname' => 'Overwrite', 'custom' => 'one' ) );
PHP
<?php /* * Test App PHP Based Acl Config File * * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * ...
PHP
;<?php exit() ?> ; SVN FILE: $Id$ ;/** ; * Test App Ini Based Acl Config File ; * ; * ; * PHP 5 ; * ; * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) ; * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) ; * ; * Licensed under The MIT License ; * Redistributions of files must r...
PHP
<?php $config = array( 'tags' => array( 'form' => 'start form', 'formend' => 'finish form', 'hiddenblock' => '<div class="hidden">%s</div>' ) );
PHP
<?php $config = array( 'Read' => 'value', 'Deep' => array( 'Deeper' => array( 'Deepest' => 'buried' ) ), 'TestAcl' => array( 'classname' => 'Original' ) );
PHP
<?php //do nothing this is an empty file.
PHP
<?php /** * Test App Comment Model * * * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistribut...
PHP
<?php /** * Test App Comment Model * * * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistribut...
PHP
<?php /** * Behavior for binding management. * * Behavior to simplify manipulating a model's bindings when doing a find operation * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT L...
PHP
<?php /** * Behavior for binding management. * * Behavior to simplify manipulating a model's bindings when doing a find operation * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT L...
PHP
<?php /** * Test App Comment Model * * * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistribut...
PHP