2012-02-02 17:29:14 +00:00
|
|
|
<?php
|
|
|
|
Class IndexController extends Libs_Controller
|
|
|
|
{
|
|
|
|
|
|
|
|
public function init()
|
|
|
|
{
|
2012-02-22 19:17:11 +00:00
|
|
|
$this->view->headScript()
|
|
|
|
->appendFile('/themes/default/scripts/jquery.jstree.js', 'text/javascript')
|
2012-02-24 17:23:20 +00:00
|
|
|
->appendFile('/themes/default/scripts/fields.js', 'text/javascript')
|
|
|
|
->appendFile('/themes/default/scripts/autocompleted.js', 'text/javascript');
|
2012-02-22 19:17:11 +00:00
|
|
|
/* Initialize action controller here */
|
2012-02-02 17:29:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function indexAction()
|
|
|
|
{
|
|
|
|
$auth = Zend_Auth::getInstance();
|
|
|
|
$user = $auth->getIdentity();
|
|
|
|
if ($user->customisation) {
|
|
|
|
$this->view->assign('preferences', $user->customisation);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-02-15 09:25:21 +00:00
|
|
|
public function criteresAction()
|
|
|
|
{
|
|
|
|
$this->_helper->layout()->disableLayout();
|
|
|
|
require_once 'Scores/SessionCiblage.php';
|
2012-03-06 13:15:01 +00:00
|
|
|
require_once 'Scores/Field.php';
|
2012-02-15 09:25:21 +00:00
|
|
|
$session = new SessionCiblage();
|
|
|
|
|
2012-03-06 13:15:01 +00:00
|
|
|
$this->view->field = new Fields();
|
2012-02-15 09:25:21 +00:00
|
|
|
$this->view->criteres = $session->getCriteres();
|
|
|
|
}
|
2012-02-02 17:29:14 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|