Thursday, December 1, 2011

[ASK: Installer script cakephp] Preventing index (plugin) to checking database.php

Hello, it's been a while since my last time here.

Well, I'm currently adopting croogo for cakephp's installer 'style'.
FYI, Croogo is using plugin 'install' to setup the database etc.

Here are what I did :
1. Copying the install plugin
2. Edited route.php

##app/config/route.php
#start

if (!file_exists(CONFIGS.'settings.yml')) {
        Router::connect('/', array('plugin' => 'install' ,'controller'
=> 'install'));
    }else{
Router::connect('/', array('controller' => 'users', 'action' => 'login'));
}

No comments: