Jump to content

Impossible de trouver ma classe !


Recommended Posts

Bonjour,

 

Je tente actuellement de créer un module dans le backoffice.

 

J'essaye en vain de récupérer des éléments dans une base de données.

 

Dans le code suivant il part me chercher l'identifianrt "id_image" qui n'existe pas dans ma table ! Comment cela se fait-il ??? Comment faire pour pas que cela ai lieu ?

 

SELECT SQL_NO_CACHE SQL_CALC_FOUND_ROWS		a.`id_Slider`,`id_image`		, `pictures`,`info`,`actif`,`order`		FROM `ps_Slider` a								WHERE 1 						ORDER BY a.id_Slider ASC LIMIT 0,50
class AdminSliderTransactionController extends AdminController
{
/** @var integer Max image size for upload
* As of 1.5 it is recommended to not set a limit to max image size
*/


/**
* @var string name of the tab to display
*/
protected $tab_display;
protected $tab_display_module;


/**
* The order in the array decides the order in the list of tab. If an element's value is a number, it will be preloaded.
* The tabs are preloaded from the smallest to the highest number.
* @var array Product tabs.
*/






public function __construct()
{
$this->table = 'Slider';
$this->className = 'slider';
$this->explicitSelect = true;
                 
                if (!Tools::getValue('id_slider'))
$this->multishop_context_group = false;
        
        
parent::__construct();






$this->_select .= '`pictures`,`info`,`actif`,`order`';
$this->_order = 'GROUP BY "order"';


$this->fields_list = array();
$this->fields_list['id_Slider'] = array(
'title' => $this->l('id_Slider'),
'align' => 'center',
'type' => 'int',
'width' => 40
);
$this->fields_list['pictures'] = array(
'title' => $this->l('pictures'),
'align' => 'center',
'image' => 'p',
'width' => 70,
'orderby' => false,
'filter' => false,
'search' => false
);
$this->fields_list['info'] = array(
'title' => $this->l('info')
);
$this->fields_list['actif'] = array(
'title' => $this->l('actif'),
'align' => 'left',
'width' => 80
);
                
                $this->fields_list['order'] = array(
'title' => $this->l('order'),
'align' => 'left',
'width' => 80
);
                
                
                $this->fields_list['id_image'] = array(
'title' => $this->l('id_image'),
'align' => 'left',
'width' => 80
);
                
     


}


public function renderList()
{
$this->addRowAction('edit');
$this->addRowAction('duplicate');
$this->addRowAction('delete');
return parent::renderList();
}




        
         protected function ajaxProcess()
         {
            $helper->identifier = 'id_Slider';
            $helper = new HelperList();
            $helper->bulk_actions = array();
            $helper->toolbar_scroll = $this->toolbar_scroll;
            $helper->show_toolbar = false;
            $helper->no_link = true;
            $helper->shopLinkType = '';
            $helper->identifier = $this->identifier;
            
             $objslider = new slider();
             
             
             
             
         }






}
 

D'avance merci

++

Edited by cvbperso (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...