<element type="zak_cgi_form_element_submit">
<id>submit</id>
+ <to-load>FALSE</to-load>
+ <to-save>FALSE</to-save>
<zak-cgi-content>Submit</zak-cgi-content>
</element>
#include <libzakcgi/libzakcgi.h>
#include <libzakform/libzakform.h>
+#include <libzakformini/libzakformini.h>
int
main (int argc, char *argv[])
gchar *filename;
ZakCgiForm *form;
- ZakCgiFormElement *element;
+
+ ZakFormIniProvider *provider;
zakcgimain = zak_cgi_main_new ();
if (zak_form_form_is_valid (ZAK_FORM_FORM (form)))
{
g_string_append (str, "<div class=\"alert alert-success\" role=\"alert\">Form is valid!!!</div>");
+ provider = zak_form_ini_provider_new_from_file (filename);
+ if (provider != NULL)
+ {
+ zak_form_form_insert (ZAK_FORM_FORM (form), ZAK_FORM_IPROVIDER (provider));
+ g_object_unref (provider);
+ }
}
else
{