Three bugs found deploying a fresh clone to seedproject.com, each fatal to the documented "spin up a new site" flow: - .gitignore: the unanchored `public/` pattern (meant for the root build output) also ignored api/public/ (the framework's front controller, controllers, models, views) and app/public/ (theme static assets: fonts, avatar placeholder). Neither was ever committed, so every fresh clone 500'd on all /api routes and 404'd on theme assets. Anchor the pattern to /public/ and commit both directories. - api/install/dump.sql: stray `CREATE DATABASE ochenta80_db123` (SQLyog export artifact) aborted `php console app:install` for any non-privileged DB user. The schema must import into whatever database the installer connects to. - PluginManager::boot() queries sp_plugins on every request, but no shipped schema creates it — even a successful install 500'd on every endpoint. Add migration 002_create_sp_plugins.sql matching the columns PluginManager reads/writes. Also empty api/system/errors.json, which shipped with stale error logs from an unrelated project. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C3JqxTe7TKaR7xufcMr7Ds
28 lines
No EOL
708 B
PHP
28 lines
No EOL
708 B
PHP
<?php
|
|
|
|
class Index extends Controller {
|
|
|
|
function __construct() {
|
|
parent::__construct();
|
|
// echo $ this->view->PartialView('menu');
|
|
|
|
$this->Styles['commenta'] = '<!-- Css files -->';
|
|
$this->view->Styles = $this->Styles;
|
|
|
|
$this->JavaScript[] = ASSETS . "js/bootstrap.bundle.min.js";
|
|
$this->JavaScript[] = ASSETS . "js/jquery.min.js";
|
|
$this->JavaScript[] = ASSETS . "js/custom.js";
|
|
$this->view->JavaScript = $this->JavaScript;
|
|
}
|
|
|
|
|
|
function index() {
|
|
$this->Styles['commenta'] = '<!-- Bots Page -->';
|
|
$this->view->Styles = $this->Styles;
|
|
|
|
$this->view->render('index/index');
|
|
}
|
|
|
|
|
|
|
|
} |