Subversion-Projekte lars-tiefland.cakephp

Revision

Revision 1 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1 Revision 17
Zeile 29... Zeile 29...
29
/**
29
/**
30
 * Here, we are connecting '/' (base path) to controller called 'Pages',
30
 * Here, we are connecting '/' (base path) to controller called 'Pages',
31
 * its action called 'display', and we pass a param to select the view file
31
 * its action called 'display', and we pass a param to select the view file
32
 * to use (in this case, /app/views/pages/home.ctp)...
32
 * to use (in this case, /app/views/pages/home.ctp)...
33
 */
33
 */
34
	Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
34
	Router::connect('/', array('controller' => 'posts', 'action' => 'index'));
35
/**
35
/**
36
 * ...and connect the rest of 'Pages' controller's urls.
36
 * ...and connect the rest of 'Pages' controller's urls.
37
 */
37
 */
38
	Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
38
	Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
39
?>
39
?>
40
40