AbanteCart Development > API Development

about ajax URL?

(1/1)

huyhoang08:
i create ajax handler, by creating file .php in controller/responses/ path. then use:

--- Code: ---// controller/responses/myajax.php
$url=$this->html->getSecureURL('r/myajax/method1');   # for logged user

--- End code ---
However, when i browse URL on browser, it show blank page. why?

huyhoang08:
additional, i want to view URL on storefront

yonghan:
Have you pass the data to storefront template file by using

--- Code: ---$this->data['url']=$url ;
--- End code ---
or

--- Code: ---$this->view->assign('url',$url);
--- End code ---

The developer docs has the reference on how to pass the data. You can look at it.

huyhoang08:
thank, i sloved my problem.

Navigation

[0] Message Index

Go to full version
Powered by SMFPacks Social Login Mod