Corrections
This commit is contained in:
commit
557235c760
@ -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();
|
||||
|
@ -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';
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user