Fusca using CakePHP
Aus Mein Wiki
Sebra (Diskussion | Beiträge) |
Sebra (Diskussion | Beiträge) (→change the HOME(page)) |
||
Zeile 23: | Zeile 23: | ||
== change the HOME(page) == | == change the HOME(page) == | ||
The default loading page is static. To change this you can create an own 'PagesController' in Apps so the default PagesController from core will not be used anymore. Or you can change the default Router-Configuration in ''app/config/routes.php''. | The default loading page is static. To change this you can create an own 'PagesController' in Apps so the default PagesController from core will not be used anymore. Or you can change the default Router-Configuration in ''app/config/routes.php''. | ||
+ | * This should be the default: | ||
+ | Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home')); | ||
+ | |||
+ | * You can change in something like this: | ||
+ | Router::connect('/', array('controller' => 'news', 'action' => 'index')); |