Welcome Guest, Not a member yet? Register   Sign In
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS

[eluser]hugle[/eluser]
Hello again Smile

I have a problem with routes.
I want some paths, to call the default page.

I have found in routes.php that:
Code:
$route['default_controller'] = "pages";

as i enter website.com i get the page loaded,
so I wanted website.com/London - also load the same page as website.com.

The page which loads is created in 'Pages' with ID# 1.

I have tried:
Code:
$route['London'] = "pages/index";
$route['London'] = "pages/index/1";
$route['London'] = "pages/view/1";
$route['London'] = "pages/1";
$route['London'] = "pages"; // as a default controller

I also tried creating >
application/core_modules/pages/config/routes.php file with:
Code:
$route['London'] = "pages/index";
$route['London'] = "pages/index/1";
$route['London'] = "pages/view/1";
$route['London'] = "pages/1";
$route['London'] = "pages"; // as a default controller
same again Sad

still I have no luck, I get redirected to error_404 controller.
Anyone can help me? where should I put this code, or use different appraoch? Smile

I tried creating the controller: Cities,
and route to it - it works. but How do I call the default page or page by ID from it ?

Thank you !Smile


Messages In This Thread
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS - by El Forum - 01-03-2010, 04:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB