Welcome Guest, Not a member yet? Register   Sign In
How to use URI Segments and Query Strings at same time?
#1

[eluser]amrnt[/eluser]
How to use URI Segments and Query Strings at same time?
please provide me a worked solution..

for example:
www.barfee.com/ci/users/view/5?bar=foo&loom=zik

thanks in advance
#2

[eluser]Phil Sturgeon[/eluser]
I searched for "URI Segments and Query Strings" and this post came up - [SOLVED] How to use URI Segments and Query Strings in the same project.

Funny that.
#3

[eluser]Developer13[/eluser]
So Pyro - you're saying that you searched the forums and found the answer?

WHAT A CONCEPT!
#4

[eluser]Phil Sturgeon[/eluser]
I know, it is madness! Perhaps it will catch on :lol:
#5

[eluser]amrnt[/eluser]
Funny!
the funny that is not SOLVED!!!
its not working!!
#6

[eluser]amrnt[/eluser]
I dont want to use c=controller&m=method
#7

[eluser]amrnt[/eluser]
i see now that the proplem was with my .htaccess ...
so i tried {site}/index.php/controller/method/?foo=bar and it works fine ....
but please guys ,,, any one can give me an excellent .htaccess file to put it in my situation!!

thanks in advance
#8

[eluser]Phil Sturgeon[/eluser]
It is working, it works fine for what we (and you from the look of your post) are talking about.

URI Segments = /index.php/controller/method/

Query String = ?foo=bar

So dont use c=controller&m=method. Who was talking about that?!
#9

[eluser]amrnt[/eluser]
okkay... it works fine thanks..
but i nwwd a .htaccess file for my situation!
#10

[eluser]nikefido[/eluser]
.htaccess shouldn't be a problem. unless you're on windows hosting. If you're developing locally, you need to make sure mods are enabled that you use in .htaccess (most commonly mod_rewrite).

By you're post in the other thread linked above, I'm guessing your only issue is the error you receive when leaving "index.php" out.

The .htaccess takes care of that (code igniter docs has the mod_rewrite code for the .htaccess file to use so you can rid of the "index.php" in your URL)

For your knowledge, out of the box, code igniter URLS look like this:

http://www.yoursite.com/index.php/contro...thod/param




Theme © iAndrew 2016 - Forum software by © MyBB