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
Post a Comment