[eluser]my9006ci[/eluser]
help me please,
i have some library like this,
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Jadwalsholat {
var $CI = null;
public function __construct(){
$this->CI =& get_instance();
$this->CI->load->model("modul"); // require
}
function index()
{
$result = '';
$menu = $this->CI->modul->get_modul(1);
if ($menu->num_rows() > 0)
{
foreach ($menu->result() as $row)
{
$result .= 'mochammad';
}
}
return $result;
}
}
?>
and
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Jadwalsholat2 {
var $CI = null;
public function __construct(){
$this->CI =& get_instance();
$this->CI->load->model("modul"); // require
}
function index()
{
$result = '';
$menu = $this->CI->modul->get_modul(1);
if ($menu->num_rows() > 0)
{
foreach ($menu->result() as $row)
{
$result .= 'yalinulloh';
}
}
return $result;
}
}
?>
how do I combine two libraries into one controller