Welcome Guest, Not a member yet? Register   Sign In
check out user_session class
#1

[eluser]Unknown[/eluser]
Now mind you, its in the works, but here's the link:

http://rapidshare.com/files/153161023/co...n.zip.html

could a code-igniter expert, help me with the code?
#2

[eluser]Pascal Kriete[/eluser]
Hey Gabe,

I see quite a few issues here, but let's start with the file layout. It might be an encoding problem, but when I download the zip, the library is fully left justified - no indenting at all. That alone makes it very difficult to read. When I indent it, I end up with 3 superfluous curly brackets which is rather confusing as well.

What is this Session class you're extending? (CI_Session maybe?). Then there's a bunch of scoping issues, which might be fixed with the first answer. The whole switch statement could be replaced by variable functions, and the database queries should be using the result object.

That's a start, and we'll see how we go from there.

Oh and welcome to CodeIgniter.

[Edit: You can also attach zip files on the forum, which might be easier than changing the url each time. Whatever floats your boat though.]




Theme © iAndrew 2016 - Forum software by © MyBB