i think the better will be to dump my setting database table in
bootstrap.php doesnt it ?
On Jan 2, 5:49 pm, foxmask [EMAIL PROTECTED] wrote:
Hello
In the routes.php i cant know what is the default route to the default
plugins at this moment.
At the startup of my app i read the database to find which is the
default plugin to point to but when i write this in my main
app_controller.php :
public function beforeFilter() {
#defining const
$this-appInit-startup($this);
#use the const to point to the default plugins
#here echo pt_default_module display 'news' !
Router::connect('/',array('plugin'=pt_default_module ,'controller'
= pt_default_module, 'action' = 'index'));
}
i got the error :
Missing controller
You are seeing this error because controller Controller could not be
found.
Notice: If you want to customize this error message, create app\views
\errors\missing_controller.ctp
Fatal: Create the class below in file: app\controllers\controller.php
?php
class Controller extends AppController {
var $name = '';}
?
which means that cakePHP does not know the default plugin i'm trying
to route to.
instead, i waited :
?php
class NewsController extends AppController {
var $name = 'News';}
?
any tips to be able to define the default route at this moment ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---