Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - HMVC version 5.2
#41

[eluser]wiredesignz[/eluser]
@Sam. try using controller::instance() instead of get_instance(), see if you get a better result.
#42

[eluser]Sam Dark[/eluser]
Tried. Same result.
#43

[eluser]wiredesignz[/eluser]
I have tested ME using extended controllers similar to your example and it works fine even when cross loading a view from another module.
#44

[eluser]Sam Dark[/eluser]
Mailed you a minimal test case.
#45

[eluser]Sam Dark[/eluser]
About an issue with a view… it was my fault. View file was in a wrong place. Now the only one left on my side is the one I've mailed test case for.
#46

[eluser]Sam Dark[/eluser]
Just found another one Wink

Code:
app
-modules
   -util
     -controllers
       util.php
     -views
       -unused_tags
         list.php

Code:
class Util extends Controller {
  function index(){
    $this->load->view('util/unused_tags/list');
  }
}

Gives Unable to locate the requested file: ../app/views/util/list.php.
Without unused_tags subdirectory works fine.

If you need a test case I'll mail it.
#47

[eluser]wiredesignz[/eluser]
I have checked out the files you sent. I was able to get the library to load a view.

Code:
class Testlib
{
  function load_view($view)
  {
    $CI =& controller::instance();
    $CI->load->view($view);
  }
}
However, application libraries need to be loaded before any other controllers are loaded because CI will load the library to the last controller instantiated.

Also, while view sub-directories are supported in ME, cross loading from other module view sub-directories is probably not.

Try: $this->load->view('util/views/unused_tags/list');
#48

[eluser]MpaK69[/eluser]
where I can find 5.x version
at wiki only 4.1

and with 4.1 version I have problem when wun some module with modules::run they did not return any one
#49

[eluser]Milos Dakic[/eluser]
pm wiredesignz with your email address Smile
#50

[eluser]chuckleberry13[/eluser]
I would like to try the latest version. Do I need to post an email address or can you send it via my CI account?




Theme © iAndrew 2016 - Forum software by © MyBB