[Fixed] Smarty + CodeIgniter = extra text |
(01-07-2015, 09:30 AM)mwhitney Wrote: Are you using a Smarty library which was designed to work with CodeIgniter, or just trying to get them to work together yourself? Generally, the output of a template library is going to have be passed to CI's Output class or the library will need to use a display_override hook to bypass CI's output. (01-07-2015, 04:07 PM)Jamie Wrote:(01-07-2015, 03:31 PM)WibbenZ Wrote: Getting really tierd of the "approve message thingi".. Is there some other codeigniter forum that has good members with knowledge? Thanks for the awnser, finally feels like someone has some knowledge about this haha.. Its the latest one from github - https://github.com/smarty-php/smarty. About the information, well I really don't know how to explain it any more then I have, when I use CI + Smarty = the code from the view page is shown twice, once above the head code in my template file and in the "content" part of the webiste, as the image shows. When I tried to remove Smarty I still got the content from my home.php file, that is what I ment by template (just realized it haha) - I want Smarty to handle pretty much everything - or atleast let Smarty assign a variable that I can use in my layout. So simply updated, I need to remove the ability for CI to show the content from my home.php view file and let the Smarty variable store it till I wanna load the "content" part of the layout. :p |
Welcome Guest, Not a member yet? Register Sign In |