I have a site that needs a user side and a admin side.
I can create two index files(dispatch) one for each. like site/index.php and site/admin/index.php. Both side will use same zend library and models. All other things like (controller,view,layout etc...) will be separate. This will be like application/controllers and application/admin/controllers
Or I can u开发者_开发技巧se the admin panel as a module .
Which will be the best. As I may need to change the path of the admin panel this may be site/xyz/something/admin and may be need to do some specific work only for admin side.
NOW What zend library class I should use for following concerns.
- Date Validatation and verification ( server side checks)
- SQl injection ( use of '?' in sql select/insert/update statement instead of putting variabledirectly)
- URL encryption
- URL rewrite ( Zend routes is the best one for this)
- File uploading
- Html forms (use zend forms that have in build in feature for validation but it is not usefull in all the cases. I prefer to use form tags directly)
Advise on this and suggest if you have more ...
- Zend_Validate_Date
- Zend_Db_Adapter_Abstract::quote
- Zend_View_Helper_Url
- Zend_Controller_Router_Abstract
- Zend_Form_Element_File
- Zend_Form has some problems, but it is very flexible. Do you know that you can handle complex layout by rendering each element separately : http://weierophinney.net/matthew/archives/215-Rendering-Zend_Form-decorators-individually.html
精彩评论