10/04/2012 1:53am

PHP | Working Example - Ajax loaded controller example


class PopupPage_Controller extends Page_Controller {

public function init() {
if(Director::is_ajax()){
$this->isAjax = true;
}
}
public function index() {
if($this->isAjax) return $this->renderWith('ProductPage');
return $this;
}
}


1 Comments 1 Solutions

05/09/2014 2:55am

PHP | Solution - sss

ssss fdsfdsfs


Post Comment