Zend Framework(0.7.0) could not recognize index.php
January 31, 2007 on 1:12 pm | In Zend Framework | 2 CommentsThanks for Tony for your comment!
My patch for version 0.7.0
In library\Zend\Controller\Request\Http.php
After line 531, add
-
// Remove the .php from REQUEST_URI
-
}
-
or you can go to framework.zend.com/issues/browse/ZF-835 to see how Zend Framework team solves this problem
Zend Framework 0.7.0 has been released.
January 19, 2007 on 12:09 am | In Zend Framework | No CommentsI have done the test, my demo works with the new version without any problem.
By the way, I’d like introduce my thought about controller. A couple of weeks ago, I separated form operations from the action controller. a couple of reasons as below:
- A lot of actions do the similar thing, like add, register, something behind the scene is inserting one record into the table of database. Using one form action to do the similar job, formInsert() for example, will make this part of code re-usable.
- Making action controller programming as easy as possibe. As we can predict, Zend_form, Zend_Validate etc will come soon, I will put all of them into form action controller. In action controller there will only two statements like these:
-
function addAction()
-
{
-
$this->_forward(‘form’,‘formactionname’,$params);
-
}
-
then in the future, in action controllers, I only need to construct one big arrary which will carry parameters for creating the form, then call the related form action. That’s it!
Form Input Validation
January 7, 2007 on 9:48 pm | In Zend Framework | 2 CommentsIt is a big job to write the effective validation rule for form input, isn’t?
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^