initial commit
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* DebugKit TestController of test_app
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP(tm) Project
|
||||
* @since DebugKit 0.1
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
**/
|
||||
|
||||
/**
|
||||
* Class DebugKitTestController
|
||||
*
|
||||
* @since DebugKit 0.1
|
||||
*/
|
||||
class DebugKitTestController extends Controller {
|
||||
|
||||
/**
|
||||
* Mame of the Controller
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $name = 'DebugKitTest';
|
||||
|
||||
/**
|
||||
* Uses no Models
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $uses = array();
|
||||
|
||||
/**
|
||||
* Uses only DebugKit Toolbar Component
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $components = array('DebugKit.Toolbar');
|
||||
|
||||
/**
|
||||
* Return Request Action Value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function request_action_return() {
|
||||
$this->autoRender = false;
|
||||
return 'I am some value from requestAction.';
|
||||
}
|
||||
|
||||
/**
|
||||
* Render Request Action
|
||||
*/
|
||||
public function request_action_render() {
|
||||
$this->set('test', 'I have been rendered.');
|
||||
}
|
||||
}
|
||||
37
exp/Plugin/DebugKit/Test/test_app/Lib/Panel/TestPanel.php
Normal file
37
exp/Plugin/DebugKit/Test/test_app/Lib/Panel/TestPanel.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* Test Panel of test_app
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP(tm) Project
|
||||
* @since DebugKit 0.1
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
App::uses('DebugPanel', 'DebugKit.Lib');
|
||||
|
||||
/**
|
||||
* Class TestPanel
|
||||
*
|
||||
* @since DebugKit 0.1
|
||||
*/
|
||||
class TestPanel extends DebugPanel {
|
||||
|
||||
/**
|
||||
* Startup
|
||||
*
|
||||
* @param Controller $controller
|
||||
*/
|
||||
public function startup(Controller $controller) {
|
||||
$controller->testPanel = true;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Test Panel of test_app
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP(tm) Project
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
App::uses('DebugPanel', 'DebugKit.Lib');
|
||||
|
||||
/**
|
||||
* Class PluginTestPanel
|
||||
*
|
||||
*/
|
||||
|
||||
class PluginTestPanel extends DebugPanel {
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* Request Action Render template
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP(tm) Project
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
?>
|
||||
<?php echo $test; ?>
|
||||
Reference in New Issue
Block a user