Welcome Guest, Not a member yet? Register   Sign In
Dwoo and validation/repopulation of forms
#2

[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();
$this->parser->parse('template_name', $data);

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.


Messages In This Thread
Dwoo and validation/repopulation of forms - by El Forum - 08-08-2010, 05:25 PM
Dwoo and validation/repopulation of forms - by El Forum - 08-08-2010, 07:10 PM
Dwoo and validation/repopulation of forms - by El Forum - 08-09-2010, 03:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB