@artilingo/artiframe-cli 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artilingo/artiframe-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "ArtiFrame — Zero-dependency native PHP framework with a powerful multilingual CLI. Scaffold projects, generate views, APIs and classes instantly.",
|
|
5
5
|
"main": "bin/artiframe.js",
|
|
6
6
|
"bin": {
|
|
@@ -643,6 +643,8 @@ REDISPHP;
|
|
|
643
643
|
][$lang] ?? ['file' => 'guide.html', 'installed' => 'ArtiFrame Installed Successfully!', 'guide' => 'To get started, see', 'note' => '💡 <b>Note:</b> If you want to change the homepage (landing.php) filename, you must also update the default page name in the <code>routeLink()</code> method inside <code>bin/ViewMethod.php</code>.'];
|
|
644
644
|
|
|
645
645
|
$landingContent = "<?php\n"
|
|
646
|
+
. "require_once __DIR__ . '/../app/ViewControl.php';\n"
|
|
647
|
+
. "use Bin\\ViewMethod;\n\n"
|
|
646
648
|
. "if (isset(\$_GET['guide'])) {\n"
|
|
647
649
|
. " header('Content-Type: text/html; charset=utf-8');\n"
|
|
648
650
|
. " readfile(__DIR__ . '/../{$docFile['file']}');\n"
|
|
@@ -724,7 +726,7 @@ REDISPHP;
|
|
|
724
726
|
$this->tick('public/landing.php');
|
|
725
727
|
|
|
726
728
|
// public/index.php - router
|
|
727
|
-
$indexContent = "<?php\n\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\
|
|
729
|
+
$indexContent = "<?php\n\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\nrouteLink();\n";
|
|
728
730
|
file_put_contents($targetDir . '/public/index.php', $indexContent);
|
|
729
731
|
$this->tick('public/index.php');
|
|
730
732
|
|