Corrections

This commit is contained in:
Michael RICOIS 2012-05-10 15:07:20 +00:00
commit 557235c760
3 changed files with 4 additions and 5 deletions

View File

@ -25,8 +25,7 @@ class JuridiqueController extends Zend_Controller_Action
public function completedAction()
{
require_once APPLICATION_PATH . '/models/FormeJuridique.php';
$table = new Application_Model_FormJuridique();
$table = new Application_Model_FormeJuridique();
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender();
$request = $this->getRequest();

View File

@ -1,5 +1,5 @@
<?php
class Application_Model_FormJuridique extends Zend_Db_Table_Abstract
class Application_Model_FormeJuridique extends Zend_Db_Table_Abstract
{
protected $_name = 'formejuridique';
protected $_primary = 'fjCode';

View File

@ -31,7 +31,7 @@ class Object_Formejuridique
public function _getParents()
{
$formes = new Application_Model_FormJuridique();
$formes = new Application_Model_FormeJuridique();
$formes = $formes->fetchAll($formes->select()->where('LENGTH(fjCode) = 1'))->toArray();
$structure = array();
@ -50,7 +50,7 @@ class Object_Formejuridique
public function _getFils($fjcode)
{
$lenth = ((strlen($fjcode) == 2)?4:2);
$formes = new Application_Model_FormJuridique();
$formes = new Application_Model_FormeJuridique();
$sql = $formes->select()->from('formejuridique', array(
'size' => new Zend_Db_Expr('LENGTH(fjCode)'),
'fjCode',