Commit ef56e98e authored by Ahmad Asjad's avatar Ahmad Asjad
Browse files

leftover render echo/return

parent 4c1be080
......@@ -11,11 +11,11 @@ class IndexAction extends \PixelHumain\PixelHumain\components\Action
//echo "Hello there"; exit;
CO2Stat::incNbLoad("co2-interop");
if(Yii::app()->request->isAjaxRequest)
echo $this->getController()->render("interop.views.co.index");
return $this->getController()->render("interop.views.co.index");
else {
$this->getController()->layout = "//layouts/empty";
//$controller->render( "interop.views.co.index");
echo $this->getController()->render("interop.views.co.index");
return $this->getController()->render("interop.views.co.index");
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment