Welcome Guest, Not a member yet? Register   Sign In
Multiple load of Library.
#1

[eluser]MikeVrind[/eluser]
Hello,

I'm just started with CI but I have a question that I couldn't find on the website.

I have put the TemplatePower class as a library into CI but I need to load 2 different template files.

With normal coding I always used 2 different vars to load TemplatePower in.
But how must I do this while using CI?

I use the next code to load the library:
Code:
<?php
    
    $this->load->library('TemplatePower', $_COOKIE['taalPath'].'/About.tpl');
    
    $this->templatepower->prepare();
    
    $this->templatepower->newBlock('About');
    
    $this->templatepower->printToScreen(); <br />

?&gt;

Sorry for the bad language, but I'm not English.


Messages In This Thread
Multiple load of Library. - by El Forum - 11-27-2007, 04:37 AM
Multiple load of Library. - by El Forum - 11-27-2007, 04:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB