Browse Source

Merge pull request #3024 from ADmad/3.0-controller-ext

Remove use of non-existent controller property.
Mark 12 years ago
parent
commit
d28779a57f

+ 0 - 1
src/Controller/Component/RequestHandlerComponent.php

@@ -499,7 +499,6 @@ class RequestHandlerComponent extends Component {
 			$controller->layout = $this->ajaxLayout;
 			return $this->respondAs('html', $options);
 		}
-		$controller->ext = '.ctp';
 
 		$viewClassMap = $this->viewClassMap();
 		if (array_key_exists($type, $viewClassMap)) {

+ 0 - 14
tests/TestCase/Controller/Component/RequestHandlerComponentTest.php

@@ -327,20 +327,6 @@ class RequestHandlerComponentTest extends TestCase {
 	}
 
 /**
- * testAutoResponseType method
- *
- * @return void
- */
-	public function testAutoResponseType() {
-		$event = new Event('Controller.startup', $this->Controller);
-		$this->Controller->ext = '.thtml';
-		$this->Controller->request->params['_ext'] = 'rss';
-		$this->RequestHandler->initialize($event);
-		$this->RequestHandler->startup($event);
-		$this->assertEquals('.ctp', $this->Controller->ext);
-	}
-
-/**
  * testAutoAjaxLayout method
  *
  * @return void