[eluser]Davcon[/eluser]
Hi,
I've recently got into HMVC and I've ran into a problem.
I'm trying to create an HMVC application that uses two modules - "messages" and "users".
If I go to *THE_BASE_URL*/users/chooseorg (to test the users module), everything works fine. So, it reads the view file and functions perfectly. (no module vibes in use so far)
The trouble is, if I call that same users module from within the "messages" module the I get a "Unable to locate the file: sayhello.php" error.
This problem is killing me.
Here's my code for calling the users module. The code below would be in a VIEW file, within the messages module:
Code:
<h1>Create a New Lead</h1>
<p>Please select a lead source and then press 'Submit'</p>
<?php
modules::run('users/chooseorg');
?>
...and here is the choose org method that's on the users module:
Code:
function chooseorg() {
$this->load->view('sayhello');
}
(note: the view file just says print 'hello world' (for testing)