Skip to content

Commit

Permalink
Update CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
ronmarasigan committed Jan 27, 2023
1 parent 75a821b commit 0a8a474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions console/cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ class {class} extends {extends} {
{
$_m = '_model';
}
if(! file_exists(APP_DIR . strtolower($option) . 's\\' . $class . ''.$_m.'.php'))
if(! file_exists(APP_DIR . strtolower($option) . 's/' . $class . ''.$_m.'.php'))
{
$file_handle = fopen(APP_DIR . strtolower($option) . 's\\' . $class . ''.$_m.'.php', 'w');
$file_handle = fopen(APP_DIR . strtolower($option) . 's/' . $class . ''.$_m.'.php', 'w');
$search = array('{class}', '{extends}');
$replace = array($class.$_m, $option);
$content = str_replace($search, $replace, $content);
Expand Down

0 comments on commit 0a8a474

Please sign in to comment.