Library Editor Datatables for CodeIgniter 4
This is library for Editor datatables to run in CodeIgniter 4 environment
- Install CI4 in correct directory and set database information in .env file
composer create-project codeigniter4/appstarter --no-dev public_html
- Copy Editor datatables to /app/ThirdParty/
- Create symlink eg: you have Editor datatables v1.9.6
ln -s Editor-PHP-1.9.6 editor
- Copy folder css and js from Datatables to /public_html/public/libraries/datatables/ (you can change it, but correct the css and js links in the Views file OR just use CDN version in your Views)
- Copy folder css and js from Editor Datatables to /public_html/public/libraries/editor/ (you can change it, but correct the css and js links in the Views file)
- Go to CI4 root directory (usualy public_html)
- Run command
git clone https://github.com/wiendy/trackdt
OR you can download manual and extract to CI4 folder structure respectively
cp trackdt/app/* ./app -r
cp trackdt/ThirdParty/editor/lib/config.php app/ThirdParty/editor/lib
rm trackdt -r - Create example database
php spark migrate
- Input example data
php spark db:seed TrackdtSeeder
- Don't forget chown folder writeable to web server user
chown www-data.www-data writable/ -R
- Go to browser, open URL http://yourdomain.com/data and http://yourdomain.com/dataeditor