Welcome Guest, Not a member yet? Register   Sign In
Query Strings are a total turn off to CodeIgniter
#6

[eluser]MCrittenden[/eluser]
[quote author="gtech" date="1211919526"]you don't have to use url segment if you don't want to either

Code:
function index($product_id)
{
...

will achieve the same thing.[/quote]
I like that! What if no param is passed, could you change $product_id into $product_id=null in the function declaration to handle either case?

I'm still a CI newbie too!


Messages In This Thread
Query Strings are a total turn off to CodeIgniter - by El Forum - 05-27-2008, 08:44 AM
Query Strings are a total turn off to CodeIgniter - by El Forum - 05-27-2008, 09:09 AM
Query Strings are a total turn off to CodeIgniter - by El Forum - 05-27-2008, 09:14 AM
Query Strings are a total turn off to CodeIgniter - by El Forum - 05-27-2008, 09:16 AM
Query Strings are a total turn off to CodeIgniter - by El Forum - 05-27-2008, 09:18 AM
Query Strings are a total turn off to CodeIgniter - by El Forum - 05-27-2008, 09:25 AM
Query Strings are a total turn off to CodeIgniter - by El Forum - 05-27-2008, 09:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB