| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <?php
- /**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @since 3.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
- */
- namespace TestApp\Controller;
- use Cake\Controller\Controller;
- use Cake\Routing\Router;
- /**
- * AuthTestController class
- *
- */
- class AuthTestController extends Controller {
- /**
- * components property
- *
- * @var array
- */
- public $components = array('Session', 'Auth');
- /**
- * testUrl property
- *
- * @var mixed
- */
- public $testUrl = null;
- /**
- * construct method
- */
- public function __construct($request = null, $response = null) {
- $request->addParams(Router::parse('/auth_test'));
- $request->here = '/auth_test';
- $request->webroot = '/';
- Router::setRequestInfo($request);
- parent::__construct($request, $response);
- }
- /**
- * login method
- *
- * @return void
- */
- public function login() {
- }
- /**
- * admin_login method
- *
- * @return void
- */
- public function admin_login() {
- }
- /**
- * admin_add method
- *
- * @return void
- */
- public function admin_add() {
- }
- /**
- * logout method
- *
- * @return void
- */
- public function logout() {
- }
- /**
- * add method
- *
- * @return void
- */
- public function add() {
- echo "add";
- }
- /**
- * add method
- *
- * @return void
- */
- public function camelCase() {
- echo "camelCase";
- }
- /**
- * redirect method
- *
- * @param mixed $url
- * @param mixed $status
- * @return void|\Cake\Network\Response
- */
- public function redirect($url, $status = null) {
- $this->testUrl = Router::url($url);
- return parent::redirect($url, $status);
- }
- /**
- * isAuthorized method
- *
- * @return void
- */
- public function isAuthorized() {
- }
- }
|