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

[eluser]helmutbjorg[/eluser]
Hi Guys,

Really starting to get into codeigniter now. One more thing before i'm fully sold.

Say i want to have the following folders on my website
Code:
example.com/account
example.com/account/orders
example.com/account/images

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

Each controller has several functions for example
Code:
example.com/account/delete
example.com/account/orders/view
example.com/account/orders/delete
example.com/account/images/upload

But I cannot do this. The name conflict with the account controller interferes with having the orders and images controllers accessed from what is essentially a subfolder.

Even if i try the following code in routes.php config
Code:
$route['account/orders'] = 'account_orders';
$route['account/orders/(:any)'] = 'account_orders/$1';

I haven't explained it very well but do you guys get what i mean?


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