[eluser]iniweb[/eluser]
Example:
News.php
Code:
<?php
class News extends Controller {
function News()
{
parent::Controller();
}
function Index()
{
$content = '';
$content .= $this->uri->segment('1');
$data = array(
'content' => $content,
);
$this->parser->parse('Empty.tpl', $data);
}
}
?>
Code:
<?php
class Main extends Controller {
function Main()
{
parent::Controller();
}
function Func()
{
$content = "";
$data = array(
'content' => $this->News_block(),
'cat_block' => $this->Cat_block(),
);
$this->load->library('parser');
$this->parser->parse('Main.tpl', $data);
}
}
?>
How on News class call Func() function !?