Welcome Guest, Not a member yet? Register   Sign In
What exactly does the Codeignitor get_cookie() helper return?
#8

[eluser]danmontgomery[/eluser]
I'm not sure how "Did you try it?" comes across as arrogant, but that wasn't the intention. Sarcastic? Definitely. Had I written a longer post, it undoubtedly would have been more offensive.

The point stands especially for someone new to PHP or coding in general. You can't run here and have someone else solve your problems 100% of the time. Your first step should always be to try it first. Then, when it doesn't work, your second step should be to try to figure out why it didn't work. When you can't figure that out is when you should come here with what you tried, what you were expecting, and what happened. What I (and others here, I'd like to think) won't nurture is an attitude of "I'll just find someone else to do it for me", especially when you're asking a question that can be answered by writing one line of code:

Code:
var_dump(get_cookie('some_cookie'));

There is value in a question like this for future users searching for an answer (like yourself), but this could have been much more constructive had it been "The documentation doesn't mention it, but I tested it and get_cookie() returns ____", and not "I can't be bothered to write one line of code, someone do it for me". I'll leave it at that.


Messages In This Thread
What exactly does the Codeignitor get_cookie() helper return? - by El Forum - 08-31-2010, 12:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB