News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

about ajax URL?

Started by huyhoang08, March 21, 2016, 10:19:05 AM

Previous topic - Next topic

huyhoang08

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?

huyhoang08

additional, i want to view URL on storefront

yonghan

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.

huyhoang08

thank, i sloved my problem.

Forum Rules Code of conduct
AbanteCart.com 2010 -