Welcome Guest, Not a member yet? Register   Sign In
[solved] Tricky Folder Layout
#3

[eluser]helmutbjorg[/eluser]
So what you're saying is this?

I want the following folders in the url
Code:
example.com/account
example.com/account/orders
example.com/account/images

Each of those relates to a controller
Code:
controllers/account_index.php
controllers/account_orders.php
controllers/account_images.php

By using the following routes?
Code:
$route['account'] = 'account_index';
$route['account/(:any)'] = 'account_index/$1';
$route['account/orders'] = 'account_orders';
$route['account/orders/(:any)'] = 'account_orders/$1';
// etc...

Is that correct?


Messages In This Thread
[solved] Tricky Folder Layout - by El Forum - 01-14-2009, 04:52 AM
[solved] Tricky Folder Layout - by El Forum - 01-14-2009, 05:03 AM
[solved] Tricky Folder Layout - by El Forum - 01-14-2009, 05:17 AM
[solved] Tricky Folder Layout - by El Forum - 01-14-2009, 05:33 AM
[solved] Tricky Folder Layout - by El Forum - 01-14-2009, 06:15 AM
[solved] Tricky Folder Layout - by El Forum - 01-14-2009, 06:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB