Dwoo and validation/repopulation of forms |
[eluser]Unknown[/eluser]
I am trying to use Dwoo as a template engine to allow my client's to dynamically adjust templates without running into security issues by allowing them to use PHP. But I got a major issue with validation. I actually do not know how to allow repopulation of these forms. Any advice? How can I enable and call the set_checkbox, etc. functions to work in a Dwoo template? I am using Phil's library to integrate Dwoo: http://philsturgeon.co.uk/news/2009/11/G...-with-Dwoo Thank you very much!
[eluser]Vheissu[/eluser]
I'm using Dwoo inside of my projects and find that I can call Codeigniter functions like so: Code: {set_value('field_name')} If that doesn't work for you, then try passing through a super variable of the Codeigniter instance itself inside of your controller. Code: $data['CI'] = &get;_instance(); Then inside of your template file you can do this: Code: {$CI->set_value('field_name')} Also make sure that you are loading the form validation library first, that could be one of your issues if none of those solutions work for you.
[eluser]Unknown[/eluser]
-- ignore my posting I almost figured it out As soon as I got the solution I will post it here. |
Welcome Guest, Not a member yet? Register Sign In |