|
@@ -297,7 +297,6 @@ class GenController {
|
|
|
//if(!file_exists($subLinksView)) {
|
|
|
$subLinks = [];
|
|
|
foreach ($controller->methods as $meth) {
|
|
|
- echo $meth->name . "\n";
|
|
|
if(strpos($meth->name, "SUB_") !== 0) continue;
|
|
|
$display = $this->snakeToTitleCase(substr($meth->name, 4));
|
|
|
$subLinks[] = "<a " .
|
|
@@ -305,7 +304,7 @@ class GenController {
|
|
|
"class='d-block p-3 py-2 border-bottom'>$display</a>";
|
|
|
}
|
|
|
file_put_contents($subLinksView, implode("\n", $subLinks));
|
|
|
- echo "Generated " . $subLinksView . "\n";
|
|
|
+// echo "Generated " . $subLinksView . "\n";
|
|
|
//}
|
|
|
|
|
|
// generate action links if not existing
|
|
@@ -313,7 +312,6 @@ class GenController {
|
|
|
//if(!file_exists($actionLinksView)) {
|
|
|
$actionLinks = [];
|
|
|
foreach ($controller->methods as $meth) {
|
|
|
- echo $meth->name . "\n";
|
|
|
if(strpos($meth->name, "ACTION_") !== 0) continue;
|
|
|
$display = $this->camelToTitleCase(substr($meth->name, 7));
|
|
|
$actionLinks[] = "<a " .
|
|
@@ -321,7 +319,7 @@ class GenController {
|
|
|
"class='d-block btn btn-sm btn-default m-3'>$display</a>";
|
|
|
}
|
|
|
file_put_contents($actionLinksView, implode("\n", $actionLinks));
|
|
|
- echo "Generated " . $actionLinksView . "\n";
|
|
|
+// echo "Generated " . $actionLinksView . "\n";
|
|
|
//}
|
|
|
|
|
|
$text = file_get_contents(base_path('generatecv/tree-templates/sub.template.blade.php'));
|