[eluser]tcgonline01[/eluser]
Hi Wiredesignz, I have a problem with: Modules::run('module_name/method').
there are 2 modules:
Code:
../modules
|- /mod_one
| - /controllers / mod_one.php
| - /views / mod_one_view.php
|
|- /mod_two
- /controllers / mod_two.php
- /views / mod_two_view.php
mod_one.php
Code:
class Mod_one extends MX_Controller {
public function __construct()
{
parent::__construct();
}
public function index()
{
$this->load->view('mod_one/mod_one_view.php')
}
}
mod_two.php
Code:
class Mod_two extends MX_Controller {
public function __construct()
{
parent::__construct();
}
public function index()
{
$this->load->view('mod_two/mod_two_view.php')
}
}
mod_one_view.php
Code:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>view one</title>
</head>
<body>
<?php
echo "This is view of mod_one module";
?>
</body>
</html>
on mod_two_view.php i use Modules::run('mod_one') or Modules::run('Mod_one') or Modules::run('mod_one/index')... but it not worked.
mod_two_view.php
Code:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>tess</title>
</head>
<body>
<?php
echo Modules::run('mod_one'); //but An Error Was Encountered
//Unable to locate the file: mod_one.php
?>
</body>
</html>
Plz help me!!!!