Welcome Guest, Not a member yet? Register   Sign In
Bunch of Beginner Qs
#2

[eluser]WanWizard[/eluser]
Have a look for base classes. Add all stuff you need in multiple classes in the base class, and have your classes (controllers, models) extend those.

You don't do global vars. Period.

You can only save variables to a session variable. If that's an array, you can't write (or read) the individual elements. I've posted a solution for reading earlier today, it should be easy to extend that to writing as well.

Session store is just a variable store, no reason to filter it. If your vars need sanitizing, you will have to do that (I would hate it when a session class would alter my variables).

Never used binding, so I can't comment on that.

And about your post: if it doesn't return false, what does it return? Do a var_dump() to find out. You can also dump $_POST to see exactly what was posted.


Messages In This Thread
Bunch of Beginner Qs - by El Forum - 06-11-2011, 04:28 PM
Bunch of Beginner Qs - by El Forum - 06-11-2011, 05:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB