mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 11:02:40 +00:00
Remove controller reuse between testAction() calls.
Reusing controllers between various testAction calls would mean that calls that needed to render views, would break on the second call to testAction(). Controllers are rebuilt for each testAction() call now. Fixes #2142
This commit is contained in:
parent
b165acd926
commit
c5ca10ca69
4 changed files with 54 additions and 5 deletions
|
@ -21,6 +21,11 @@ class TestsAppsController extends AppController {
|
|||
public $uses = array();
|
||||
|
||||
public function index() {
|
||||
$var = '';
|
||||
if (isset($this->request->query['var'])) {
|
||||
$var = $this->request->query['var'];
|
||||
}
|
||||
$this->set('var', $var);
|
||||
}
|
||||
|
||||
public function some_method() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue