-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for options array to Page::renderView()
- Loading branch information
1 parent
dc1ffc9
commit 88736da
Showing
4 changed files
with
10 additions
and
5 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 | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* @method static string|Page|NullPage page($source, $args = []) Static getter (factory) method for Pages. | ||
* @method static string|null partial(string $partial_name, array $args = []) Static getter (factory) method for Partials. | ||
* | ||
* @version 0.27.1 | ||
* @version 0.28.0 | ||
* @author Teppo Koivula <[email protected]> | ||
* @license Mozilla Public License v2.0 https://mozilla.org/MPL/2.0/ | ||
*/ | ||
|
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 | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
* | ||
* @internal This class is only intended for use within the Wireframe internals. | ||
* | ||
* @version 0.3.0 | ||
* @version 0.4.0 | ||
* @author Teppo Koivula <[email protected]> | ||
* @license Mozilla Public License v2.0 https://mozilla.org/MPL/2.0/ | ||
*/ | ||
|
@@ -174,8 +174,8 @@ protected function pageRenderView(HookEvent $event) { | |
$original_view = $event->object->_wireframe_view; | ||
$original_view_template = $event->object->_wireframe_view_template; | ||
$event->object->_wireframe_layout = ''; | ||
$event->object->setView($event->arguments[0]); | ||
$event->return = $event->object->render(); | ||
$event->object->setView($event->arguments(0)); | ||
$event->return = $event->object->render($event->arguments(1)); | ||
$event->object->_wireframe_layout = $original_layout; | ||
$event->object->_wireframe_view = $original_view; | ||
$event->object->_wireframe_view_template = $original_view_template; | ||
|