CodeIgniter Forums

Full Version: How to make a class, in a class :/
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
Hi,
i explain my situation :

I avec an administration on http://www.example.com/Admin/.
I want to do a news administration with url like that : http://www.example.com/Admin/News/
But, in News, there's 3 action : add, edit and remove. So News have to be a class..

How can i do something like that ?

Thanks.

El Forum

[eluser]ReGeDa[/eluser]
.htaccess:
RewriteRule ^Admin/News/(add|edit|remove)$ /index.php?/News/$1 [L]

El Forum

[eluser]Pascal Kriete[/eluser]
Alternatively, you could make a subfolder called Admin and put it in there.

El Forum

[eluser]Unknown[/eluser]
oh, i havent thought at this.
Thank you very much ReGeDa.

El Forum

[eluser]ReGeDa[/eluser]
nice to post you

El Forum

[eluser]ReGeDa[/eluser]
[quote author="inparo" date="1215483462"]Alternatively, you could make a subfolder called Admin and put it in there.[/quote]

subfolder in "system/application/controller" ?

El Forum

[eluser]Chicken's Egg[/eluser]
Yes, that's the correct place.