extranet/application/controllers/IndexController.php
2011-11-17 11:29:26 +00:00

38 lines
812 B
PHP

<?php
class IndexController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
}
public function indexAction()
{
$this->_forward('entreprise', 'recherche');
}
public function portefeuillecsvAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
require_once 'Scores/WsScores.php';
require_once 'Scores/Utilisateur.php';
$user = new Utilisateur();
$login = $user->getLogin();
$idClient = $user->getIdClient();
$ws = new WsScores();
$reponse = $ws->getPortefeuilleCsv($login, $idClient);
if ($reponse === false){
echo "Erreur";
} elseif (!empty($reponse->result->Url)) {
echo $reponse->result->Url;
}
}
}