Skip to content

Commit

Permalink
Merge pull request #15 from garretthyder/create-view-template
Browse files Browse the repository at this point in the history
Update createView call to drop the second param which is meant for $template
  • Loading branch information
amostajo authored Jan 13, 2020
2 parents 4687d51 + 91ceda0 commit dbd34c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AddCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function call($args = [])
}
switch ($vc[0]) {
case 'view':
$this->createView($vc[1]);
$this->createView($vc[1], isset($args[4]) ? $args[4] : 'view.php');
break;
default:
$this->createController($vc[0]);
Expand Down
2 changes: 1 addition & 1 deletion src/CreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function call($args = [])
case 'view':
if (!isset($object[1]) || empty($object[1]))
throw new NoticeException('Command "'.$this->key.'": View key name is missing.');
$this->createView($object[1], $args);
$this->createView($object[1], isset($args[3]) ? $args[3] : 'view.php');
break;
case 'controller':
if (!isset($object[1]) || empty($object[1]))
Expand Down

0 comments on commit dbd34c6

Please sign in to comment.