LastMitch
Industrious Poster
4,165 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
@Weliaz
Could anyone possible come up with something like that? ^^
No
I have been working a little bit on a framework, and i've came to a little problem:(
How long have you work on a Framework? It's on OOP. If you are familiar with it then the code should be much easier to understand unless this is your first code you wrote or you just used someone else code and modify it.
Don't really get anything out of that:/
I thought you want to get this:
site.com/modulename/function/arg1/arg2/arg3
The link I provided does have that example in it.
LastMitch
Industrious Poster
4,165 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
LastMitch
Industrious Poster
4,165 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
OK so this is .htaccess?
site.com/modulename/functionname/arg1/arg2/arg3
relates to what?
site.com/index.php?module=modulename&function=functionname&a1=arg1&a2=arg2&a3=arg3
if so:
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)$ /index.php?module=$1&function=$2&a1=$3&a2=$4&a3=$5 [L]
diafol
Keep Smiling
10,655 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,511
Skill Endorsements: 57
@Weliaz
I need both .htaccess and PHP code.
And that script ain't exactly right.
I feel you are asking a lot.
Regarding about the mainframe. I thought you were using a mainframe. But you never mention about creating your own mainframe.
I think you need to hired someone to do this. I really doubt any DaniWeb member will take that much time provide such a code.
LastMitch
Industrious Poster
4,165 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
diafol
Keep Smiling
10,655 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,511
Skill Endorsements: 57
@Weliaz
"I have been working a little bit on a framework, and i've came to a little problem:(
I want my URL's to be like CodeIgniters where it'll be:"
I think that kinda tells that i'm working on my own framework.
I think your question is more vague than precise.
LastMitch
Industrious Poster
4,165 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45