- Learning Cmfive
- Creating A Config
- Install And Migrations
- The Models Folder
- Creating Index Action
- Creating Index Template
- Creating Item Action
- Add Item Table
- Edit Item Button
- Additional Configuration
This guide assumes a working knowledge on how to set up apache to serve a PHP application as well as having an empty MySQL database (with user and password) ready to go.
To install Cmfive, clone or download the Boilerplate repository and unpack (if necessary) into a directory of your choosing.
Copy the config.php.example file to config.php and update the database section to contain the credentials of your Cmfive database, e.g.:
Config::set("database", [ "hostname" => "localhost", "username" => "cmfive", "password" => "cmfive", "database" => "cmfive", "driver" => "mysql" ]);
Change any other configuration items as you see fit then open a terminal in the boilerplate folder and type:
Running through commands 1-4 will get you set up and ready to go. Here is an explanation of each command.
- Will install any third party libraries Cmfive requires via Composer (the composer executable is bundled with the Boilerplate repo)
- Will install all Cmfive migrations
- Will set up an administrator user, needed to log in to a new Cmfive install
- Will generate encryption keys used by Cmfive