Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12345 anikendra 1
<?php
2
/**
3
 * DebugKit TestController of test_app
4
 *
5
 * PHP 5
6
 *
7
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
8
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
9
 *
10
 * Licensed under The MIT License
11
 * Redistributions of files must retain the above copyright notice.
12
 *
13
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
14
 * @link          http://cakephp.org CakePHP(tm) Project
15
 * @since         DebugKit 0.1
16
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
17
 **/
18
 
19
/**
20
 * Class DebugKitTestController
21
 *
22
 * @since         DebugKit 0.1
23
 */
24
class DebugKitTestController extends Controller {
25
 
26
/**
27
 * Mame of the Controller
28
 *
29
 * @var string
30
 */
31
	public $name = 'DebugKitTest';
32
 
33
/**
34
 * Uses no Models
35
 *
36
 * @var array
37
 */
38
	public $uses = array();
39
 
40
/**
41
 * Uses only DebugKit Toolbar Component
42
 *
43
 * @var array
44
 */
45
	public $components = array('DebugKit.Toolbar');
46
 
47
/**
48
 * Return Request Action Value
49
 *
50
 * @return string
51
 */
52
	public function request_action_return() {
53
		$this->autoRender = false;
54
		return 'I am some value from requestAction.';
55
	}
56
 
57
/**
58
 * Render Request Action
59
 */
60
	public function request_action_render() {
61
		$this->set('test', 'I have been rendered.');
62
	}
63
}