Welcome Guest, Not a member yet? Register   Sign In
How to make a class, in a class :/
#1

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

I avec an administration on www.example.com/Admin/.
I want to do a news administration with url like that : 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.
#2

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

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

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

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

[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" ?
#7

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




Theme © iAndrew 2016 - Forum software by © MyBB