Skip to content

Commit 20feb9c

Browse files
committed
🔨 improve creaveView method
Signed-off-by: otengkwame <[email protected]>
1 parent 96154e7 commit 20feb9c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Core/controllers/commands/Create.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,6 +1432,11 @@ public function createView($location = '', $viewFile = '', $defaultType = '--emp
14321432

14331433
$file = $pathinfo->basename;
14341434

1435+
if (!isset($pathinfo->dirname)) {
1436+
$this->failureOutput("Please check docs for correct syntax to create:view");
1437+
return;
1438+
}
1439+
14351440
$directory = $viewDirectory . DS . $pathinfo->dirname;
14361441

14371442
$filename = str_ext($file, true);

0 commit comments

Comments
 (0)