I am currently coding in Zend Framework and facing an issue with the code provided below. Any suggestions for a solution would be appreciated. The following is my controller function that is being triggered via AJAX:
public function fnshowinfoAction()
{
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender();
$categoryid= $this->_getParam('categoryid');
$bestsellerscategory=$this->view->bestsellerscategory=$this->lobjindexmodel->fngetbestsellerscategoryimages($categoryid);
$tabledata="";
$tabledata.='<ul id="flexiselDemo"> ';
foreach($bestsellerscategory as $bestsellerscategory)
{
$tabledata.='<li>
<div class="ipad text-center">
<img src="'.$this->view->baseUrl().$bestsellerscategory['Modifiedname'].$bestsellerscategory['Mainimage'].'" alt="" />
<h4>'.$bestsellerscategory['Productname'].'</h4>
<h3>'.$bestsellerscategory['ProductMRP'].'</h3>
<ul>
<li><i class="cart-1"></i></li>
<li><a class="cart" href="#">Add To Cart</a></li>
</ul>
<div class="clearfix"></div>
<ul>
<li><i class="heart"></i></li>
<li><a class="cart" href="#">Add To Wishlist</a></li>
</ul>
</div>
</li>';
}
$tabledata.='</ul>';
echo $tabledata;
}
After retrieving this data in the view file, none of the classes are dynamically appearing which should be present to update these HTML elements when the layout is loading.
Any assistance would be greatly appreciated.