Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow for inheritance of Controller::$_render property within subclasses
- Loading branch information
1 parent
87a88da
commit 9f3bebe
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,22 @@ | |||
<?php | |||
/** | |||
* Lithium: the most rad php framework | |||
* | |||
* @copyright Copyright 2013, Union of RAD (http://union-of-rad.org) | |||
* @license http://opensource.org/licenses/bsd-license.php The BSD License | |||
*/ | |||
|
|||
namespace lithium\tests\mocks\action; | |||
|
|||
class MockRenderAltController extends \lithium\action\Controller { | |||
protected $_render = array( | |||
'data' => array('foo' => 'bar'), | |||
'layout' => 'alternate' | |||
); | |||
|
|||
public function access($var) { | |||
return $this->{$var}; | |||
} | |||
} | |||
|
|||
?> |