• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Form generator for CodeIgniter 4

#1
I wrote a library for generating forms in CodeIgniter 4, which works something like the one in the Yii framework.

https://github.com/denis303/codeigniter4-form

Usage:

PHP Code:
$form = new Form($model$errors);

echo 
$form->open();
echo 
$form->inputGroup($data'name', ['id' => 'myinput'], ['label' => 'Custom Label']);
echo 
$form->renderErrors();
echo 
$form->beginButtons();
echo 
$form->submitButton('Submit');
echo 
$form->endButtons();
echo 
$form->close(); 

The library page on the github has a bit more detailed documentation and an example. I will be glad to answer your questions. Also, you can write to me if you need help with your projects on CodeIgniter 4.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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