Ask TinyButStrong, how to call a variable |
[eluser]Unknown[/eluser]
hello, Hi, i’m trying to implement the template engine TBS into CI reading this wiki article : http://codeigniter.com/wiki/TinyButStron...te_Engine/ i want to ask how to call a variable like in the tbs manual. while i'm try view : Code: $list = array('X','Y','Z') ; in a template.html : Code: <table> it's work,but while i'm try Code: $message = "hello"; in template.html Code: <html> Quote:TinyButStrong Error in field [var.message...] : the PHP global variable named 'message' does not exist or is not set yet. This message can be cancelled using parameter 'noerr'. anybody can help me..? note: sorry if my english is bad
[eluser]Unknown[/eluser]
Make sure the variable is a global variable not a local variable (function, class).
[eluser]Federico Baña[/eluser]
Make sure that tbswrapper uses $this->load->view(); so the vars are global |
Welcome Guest, Not a member yet? Register Sign In |