Skip to content
xolf edited this page Jan 2, 2016 · 14 revisions

Welcome to the Dreamcoil wiki!

Dreamcoil — A simple PhP Framework for all the smooth people on the blue planet.

Installation

Your web directory should point to public/index.php (absolute). However Dreamcoil can also be called relative, so you can install dreamcoil in a sub directory of your web directory. Something like: http://sub-directory/dreamcoil/public/. The absolute method is recommend for production and live enviroments.

Read the full documentation

Simple routing

$route = new \Dreamcoil\View();

if($route->is('/dashboard')) App\Dashbaord::load();

if($route->group('user'))
{

	if($route->is('show/{id}')) App\User::show($route->data['id']);

	if($route->is('edit')) App\User::edit();

}

Example class

namespace App;

use \Dreamcoil\Layout;
use \Dreamcoil\Phase;
use \Dreamcoil\View;

class Dashboard extends Phase
{

	public class load()
	{

		$view = new View();

		$layout = new('dashobard');

		$view->inc('dashboard.load');

	}

}

Updating

Dreamcoil is based on git submodules. If you want to get more information about this method go here.

So you can update the framework with pulling the newest commits. Use git submodule foreach git pull origin master for getting the newest version of Dreamcoil. If you want to have a look at the framework go ahead.