Skip to content

Commit

Permalink
Testing, documentation & refactoring in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi committed Feb 2, 2024
1 parent b4d18cc commit c7d1efc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/templates/controller-class-template.php.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ class __TEMPLTATE_CONTROLLER__ extends __CONTROLLER_2_EXTEND__
//get the contents of the view first
$view_str = $this->renderView('index.php', ['controller_object'=>$this]);
return $view_str;
//uncomment and edit the line below to incorporate the view above into your app's template
//return $this->renderLayout( $this->layout_template_file_name, ['content'=>$view_str] );
return $this->renderLayout( $this->layout_template_file_name, ['content'=>$view_str] );
}

public function preAction(): ResponseInterface {
Expand Down
4 changes: 1 addition & 3 deletions tests/test-template-output/ExpectedFooBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ public function actionIndex() {

//get the contents of the view first
$view_str = $this->renderView('index.php', ['controller_object'=>$this]);
return $view_str;

//uncomment and edit the line below to incorporate the view above into your app's template
//return $this->renderLayout( $this->layout_template_file_name, ['content'=>$view_str] );
return $this->renderLayout( $this->layout_template_file_name, ['content'=>$view_str] );
}

public function preAction(): ResponseInterface {
Expand Down

0 comments on commit c7d1efc

Please sign in to comment.