dhtmlxGrid + Codeigniter dhtmlxConnector

Hi there I have applied to the Codeigniter dhtmlxGrid.
You would like to know What are you if you want to put a link to a cell is output, the MVC pattern.

Controller ->

[code]

<?php require_once("application/controllers/dhtmlx/dhtmlxConnector/codebase/grid_connector.php"); require_once("application/controllers/dhtmlx/dhtmlxConnector/codebase/db_phpci.php"); DataProcessor::$action_param="dhx_editor_status"; class Grid extends CI_controller { public function index() { $this->load->view('dhtmlx/grid_v'); } public function data() { $this->load->database(); $this->load->model("dhtmlx/event_model"); $connector = new GridConnector($this->db, "phpCI"); $connector->configure("inp_member", "MNumber", "MNumber,MId,MName"); $connector->useModel($this->event_model); $connector->render(); } } ?>[/code]

I have fixed :slight_smile:

[code]<?php

require_once("application/controllers/dhtmlx/dhtmlxConnector/codebase/grid_connector.php");
require_once("application/controllers/dhtmlx/dhtmlxConnector/codebase/db_phpci.php");

DataProcessor::$action_param="dhx_editor_status";

class Grid extends CI_controller {
	
	public function index()
	{
		$this->load->view('dhtmlx/grid_v');
	}
	

	
	public function data()
	{
		$this->load->database();
		$this->load->model("dhtmlx/event_model");			
		
		$connector = new GridConnector($this->db, "phpCI");			
		$connector->configure("inp_member", "MNumber", "MNumber,MId,MName");
		
		$connector->useModel($this->event_model);			
		$connector->event->attach(new Grid);
		$connector->render();
	}
	
	
	public function beforeRender($row)
	{	
		if($row->get_value('MId') == 'data1')
			$row->set_value("MId", "data1^http://www.dhtmlx.com/");		
	}
	
}

?>[/code]