Codeigniter 4 CRUD Generator
About :
Codeigniter 4 CRUD Generator is a simple tool to automatically generate models, controllers and views from your tables. This tool is re-designed from the previous generator tool, Harviacode works for codeigniter 3. This tool will improve your writing code. This CRUD generator will perform complete CRUD operations, pagination, search, form *, form validation, export to excel, and export to word. This CRUD generator uses bootstrap 4 style. You will still need to change the result code for more customization.
#
On Controller app/Controller/BaseController.php
, load database library
, session library
and url helper
protected $helpers = ['html','text','form','session'];
On file .env
setting DATABASE, Find CTR+F
database.default.hostname = localhost
database.default.database = database
database.default.username = username
database.default.password = password
database.default.DBDriver = MySQLi
Simply put ‘Ligatcode’ folder,view folder, ‘asset’ folder and .htaccess file into your project root folder.
Open http://localhost/{yourprojectname}/ligatcode.
Select table and push generate button.
FAQ :
Select table show no data. Make sure you have correct database configuration on application/config/database.php and load database library on autoload.
Error chmod on mac and linux. Please change your application folder and harviacode folder chmod to 777
Error cannot Read, Update, Delete. Make sure your table have primary key.
las't named \*harviacode\* to \*ligatcode\*
@radenrap/aci-harviacode What do you think about these updates?
#
© 2020-2020 blog.simeedun.com