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:
Post a Comment