php - How does a Zend controller action have access to Form subclass for instantiation? -
considering subclass of zend_form
class form_mine extends zend_form { public function init() { //form } then in
class minecontroller extends zend_controller_action { public function formaction() { $form = new form_mine(); } } how controller know of 'form_mine's existence in order instantiated?
i understand through zend_form's constructor function init() called setting form through chain or routing controller access 'form_mine'?
the class name significant. default, given class named my_form_mine, zend class in file: /library/my/form/mine.php. understanding handled autoloader: http://framework.zend.com/manual/1.12/en/zend.loader.autoloader.html
Comments
Post a Comment