I’m using php with codeigniter and DHTMLX components.
I’m not able to create a form that contains multiple combobox.
See my controller.
public function carregaVendedor()
{
$classePessoas = new Pessoas();
$classePessoas->select(“id, nome”);
$classePessoas->where(“Nome like ‘A%’”);
$classePessoas->find();
foreach($classePessoas as $objeto){
$dados[] = array("id"=>$objeto->id, "nome"=>$objeto->nome);
}
$connector = new ComboConnector($this->db, "PHPCI");
$connector->render_array($dados, "id", "nome");
}
See my view
It happens that does not appear in the form with the combo.
I could use the ComboConnector with CodeIgniter, it worked correctly.
Just could not use the method render_array …
Tried with GridConnector, DataConnector, but none of this method has render_array ();
For example: I want to pass data from a php array, created by a method in my Controller, to the object that is in the Combo View.
With render_sql worked, but I can not for the render_array.
This error appear:
Call to undefined method ComboConnector::render_array()