AbanteCart Community
AbanteCart Development => API Development => Topic started by: huyhoang08 on March 21, 2016, 10:19:05 AM
-
i create ajax handler, by creating file .php in controller/responses/ path. then use:
// controller/responses/myajax.php
$url=$this->html->getSecureURL('r/myajax/method1'); # for logged user
However, when i browse URL on browser, it show blank page. why?
-
additional, i want to view URL on storefront
-
Have you pass the data to storefront template file by using
$this->data['url']=$url ;
or
$this->view->assign('url',$url);
The developer docs has the reference on how to pass the data. You can look at it.
-
thank, i sloved my problem.