Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
lawrenceadu edited this page Jul 19, 2018 · 10 revisions

Welcome to the alpha wiki!

Getting started

Database configuration

For database configuration, you can choose to do that app/lib/Database.php or you can do the settings in your app/config/config.ini

CSS and JS

Run npm install in public to install all development dependencies. By default this framework doesn't use any css framework but has semantic UI and MaterializeCss as options you can choose. Of course, you could change it to suit your need.

Controllers

Controller naming follow an pattern, controller name like events with Controller appended to it giving eventsController.php. Controllers must be plural but of course, it's all dependent on you.

Models

Models and Controllers cannot have the same class name. Models are usually singular. The Example model gives you a base example of how a model should look like, which is also totally dependent on you.

Views

The base controller has an example of how views are rendered. If you are passing data to a JS file in the views, I'd suggest you create a JS directory in the controller view directory and put your JS file there. This applies to Partials as well, just to keep your code organization as clean as possible.

Clone this wiki locally