Welcome Guest, Not a member yet? Register   Sign In
modules::run in view problem
#1

[eluser]Webjema[/eluser]
Hello.
About 2 hours looking for a solution, but without result (wiki and forum studied).

So, I have module [app/modules/mainpage/controllers/mainpage.php]

Code:
class Mainpage extends MX_Controller {

    function __construct()
    {
        parent::__construct();
    }

    function index()
    {
        $this->load->view('mainpage_page');
    }
}

please note:
class Mainpage extends MX_Controller

The view [app/modules/mainpage/views/mainpage_page.php]

Code:
<!DOCTYPE html>
&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;Welcome&lt;/title&gt;

&lt;/head&gt;
&lt;body&gt;

<h1>Mainpage</h1>

&lt;?php echo modules::run('welcome/welcome'); ?&gt;

&lt;/body&gt;
&lt;/html&gt;

And I have module [app/modules/welcome/controllers/welcome.php] with view [app/modules/welcome/views/welcome_page.php]

But my page has only "<h1>Mainpage</h1>" output. No welcome view inside. No errors.
What is wrong?
I tried:

Code:
&lt;?php echo modules::run('welcome/welcome'); ?&gt;
&lt;?php echo modules::run('welcome/welcome/index'); ?&gt;
&lt;?php echo modules::run('welcome/welcome/index', 1); ?&gt;
&lt;?php echo Modules::run('welcome/welcome'); ?&gt;

No results.

In browser http://domain.com/welcome/welcome works fine.

Please, help run it.


Messages In This Thread
modules::run in view problem - by El Forum - 06-17-2011, 03:59 PM
modules::run in view problem - by El Forum - 06-17-2011, 04:05 PM
modules::run in view problem - by El Forum - 06-17-2011, 04:06 PM
modules::run in view problem - by El Forum - 06-17-2011, 04:16 PM
modules::run in view problem - by El Forum - 06-17-2011, 04:21 PM
modules::run in view problem - by El Forum - 06-17-2011, 04:22 PM
modules::run in view problem - by El Forum - 06-17-2011, 04:26 PM
modules::run in view problem - by El Forum - 06-17-2011, 04:26 PM
modules::run in view problem - by El Forum - 06-17-2011, 04:39 PM
modules::run in view problem - by El Forum - 06-17-2011, 04:55 PM
modules::run in view problem - by El Forum - 06-17-2011, 05:04 PM
modules::run in view problem - by El Forum - 06-17-2011, 05:11 PM
modules::run in view problem - by El Forum - 06-17-2011, 05:15 PM
modules::run in view problem - by El Forum - 06-17-2011, 05:16 PM
modules::run in view problem - by El Forum - 06-17-2011, 05:26 PM
modules::run in view problem - by El Forum - 06-17-2011, 05:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB