Welcome Guest, Not a member yet? Register   Sign In
How to buffer a HMVC module
#1

[eluser]Semaphore[/eluser]
Hi,
I'm french so excuse my bad english.

I'm using CI 2.0 with HMVC.

I want to load aHMVC module with a JS call like this :

Code:
<-script type="application/javascript">
   $('#addgraph').click(function() {
    &lt;? $view= Modules::run('graph_meteo', 2);?&gt;
    $('#container').append('&lt;?= $view ?&gt;') ;
    })

  <-/script>

But with this code, the module is called at the loading of the page be cause php read my modules::run. I want want to buffer the output of my module and just load it when we click on the #addgraph button.

Thanks for your help on this.




Theme © iAndrew 2016 - Forum software by © MyBB