Hi all,
This may sound like a simple question, but I'm curious what the best practice method for handling GET Request data with ZF is?
Is it generally a good idea to pass all request variables to Zend_Filter_Input before accessing them? What approach does everyone here usually adopt? I'm imagining a situation where you get a sort paramater, or a database lookup ID from the GET request. Evidently it needs validating somewhere, is controller level with Zend_Filter_Input a good starting point?
Cheers,
Steve
This may sound like a simple question, but I'm curious what the best practice method for handling GET Request data with ZF is?
Is it generally a good idea to pass all request variables to Zend_Filter_Input before accessing them? What approach does everyone here usually adopt? I'm imagining a situation where you get a sort paramater, or a database lookup ID from the GET request. Evidently it needs validating somewhere, is controller level with Zend_Filter_Input a good starting point?
Cheers,
Steve
没有评论:
发表评论