• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
form validation lib issue

I'm working with CI since 2 years and decide to build my own table based form generator.
My Form Lib read all the nessesary information from mysql tables and create a Form html stream stored in one variable which is passed to the view and there I simple echo the form html straem out.
Also I create an js variable which hold all the necessary js scrips. Also  this is echo out in view.
Right now it works fine with an bootstrap theme.

The last feature what I'd like to implement is server side form validation by using CI3 Form validation lib.
Actually here I have an design / architecture issue, would be happy for any help.

When I echo out the form in the view all php statements within the form (like <validation_errors();set_value()) are not proceed.
The html server? or  ci form validation lib? replace

PHP Code:
<?php statement ?>
tags with
PHP Code:
<!---<?php statement ?>--> 

Therefore php statement are not proceed.

Any idea how can I do this at validation job in CI3?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.