PHP call zend call controller method in view file -


my controller:

class croncontroller extends zend_controller_action {     public function init(){     }      public function indexaction(){         die();     }      public function reportaboutexpiringpaymentaction(){     } } 

how can call reportaboutexpiringpaymentaction() file.phtml

the way need, doesn't work @ all. way call function on phtml this:
url like: http://www.yoursite.com/cron/report-about-expiring-payment
, code is:

class croncontroller extends zend_controller_action {     public function init(){     }      public function indexaction(){         die();     }      public function reportaboutexpiringpaymentaction(){         /* code here */         $this->render('file.phtml');     } } 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -