Welcome Guest, Not a member yet? Register   Sign In
load controller output into another view
#11

[eluser]nmweb[/eluser]
To get it into a string use output buffering. php.net/ob_start, ob_flush etc.. Start the buffer before you load the controller, end it after you loaded the controller. Collect the string and hoppa, you're done.
#12

[eluser]MpaK69[/eluser]
some bug in HMVC

when you use HMVC's extends Controller it break _output function in controller it will not be never call
#13

[eluser]wiredesignz[/eluser]
Not a bug at all.

Using CI's _output() method is not possible when using HMVC because you do not know which controller might hold the method.

The functionality of CI's _output() method can be simulated in other ways quite easily.

There are also other logical changes you must accept when using HMVC. You need to think through your application design properly.
#14

[eluser]wilso417[/eluser]
How can you simulate CI's _output() with HMVC?

Some of my modules use a header/footer, some don't. So i'd like to make a _output() function in my controller which then displays header, output, footer.




Theme © iAndrew 2016 - Forum software by © MyBB