• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2 templates are interfering

I have used ci_synchronicity for a few years on my web app and it works well. I am now using AmazingTemplate which is part of Koolreport and there seems to be a "collision" between the two templates. This is how I am trying to get them both to appear in the same html page:
public function report_generator_amazing()
    $this->output->set_template('amazing');   <<this is for amazing
    $this->output->set_template('default2');    <<this is synchronicity

  $report= new MyDashboard;

 This causes both the banner from synchronicity and the dashboard icons from amazing to not appear correctly.  I use xdebug pretty extensively. I'd like to create an extra template called default2_amazing that plays nicely with Amazing. 

I know nothing about templates.  Is there any document which describes how templates work?
proof that an old dog can learn new tricks

Did you try the output buffering?

PHP Code:

// Your Code

What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

same result.
proof that an old dog can learn new tricks

Thanks again Insite. I managed to get around the issue by creating a faux black banner. I will just display this on top of the page in the same place where the real menu/banner appears on the rest of the application.
proof that an old dog can learn new tricks

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.