- Clone the main repo
git clone https://github.com/dreamcoil/dreamcoil.git
- Init the framework
git submodule init
- Install the framework
git submodule update
- Run
composer update
to install all required packages - 🎉 Start using Dreamcoil for your projects
if($route->group('profile'))
{
if($route->is('view')) App\UserController::view();
if($route->is('{id}')) App\UserController::view($route->data['id']);
if($route->is('edit')) App\UserController::edit();
}
if($route->is('/post/{hash}')) App\PostController::view($route->data['hash']);
$layout = new \Dreamcoil\Layout('Bruce',['user' => \Model\User::get()]);
Do you have some problems with Dreamcoil? Then I suggest you to have a look at our wiki
If a new framework version has been release,d run git submodule foreach git pull origin master
for getting all updates.