CI HTML_Helper (META) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: CI HTML_Helper (META) (/showthread.php?tid=57834) |
CI HTML_Helper (META) - El Forum - 04-15-2013 [eluser]Energetic Pixels[/eluser] Ok, I have a project where the proponent is using alot of html meta tags. I thought that this would be a good time to use the CI html helper. I tried to follow the example stated in the docs and the only way that I can get the meta elements to display correctly is to state the arrays in the view. Which is all well and good, but I would like to move the array out of the view and put it in a controller. But when I do this, codeigniter says that it can not find the variable name "$siteMeta". The html helper is automatically loaded through config->autoload method. This is what works (in my view->layouts/masterTemplate.php: Code: <head> Shouldn't I be able to move the array out of the masterTemplate and into either a controller or a config?? tony |