M
Mike Mickey
Hi I'm writing a class in /lib,
I would like the class accessing the "request" object
have you an idea ?
Thx
I would like the class accessing the "request" object
have you an idea ?
Thx
Mike said:Hi I'm writing a class in /lib,
I would like the class accessing the "request" object
have you an idea ?
And if the class is modular (even if it has no database hooks), should
it be a
model?
And do you have unit tests on it, so you can refactor it as you learn
the best
role for it?
Mike said:actually i need a lot of information from the request object
I thought a model could not access the request ?
not unit tests for it (for the moment)
user_agent
with the IP and the login history, to detect excessive login attempts...
Mike said:it's an API wrapper but a lot of calls are cached in the session, so i
need to access the session in all the function of the class.
Have you a better solution ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.