CodeIgniter Forums
CodeIgniter Expenses - pet project for beginners - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12)
+--- Thread: CodeIgniter Expenses - pet project for beginners (/showthread.php?tid=88593)



CodeIgniter Expenses - pet project for beginners - ozornick - 10-02-2023

Github: https://github.com/neznaika0/codeigniter-expenses
Readme: https://github.com/neznaika0/codeigniter-expenses/blob/main/README.md

I added an example developed on a framework. This is a small CRUD for the history of finance. Who is interested - ask questions.

I tried to use more built-in functionality, but it's hard to cover everything on a tiny project.

P.S. My englisch is bad, so you can help with translations.


RE: CodeIgniter Expenses - pet project for beginners - petrogromovo - 10-03-2023

Hi,
Thank you for your project !
1) Please explain how did you create/generate file public/assets/main.js ? I suppose under /public/ are file generated(not mannually putted) ?
2) Please explain toast chain whem passing message.


RE: CodeIgniter Expenses - pet project for beginners - ozornick - 10-03-2023

1. The main.js and main.css files are always accessible from browser, unlike bootstrap (copied from /vendor/).
I did not complicate it - it is possible to move the frontend to a separate folder (for React, SCSS). Then it was possible to create a Publisher.
How did you plan to generate these files?

2.
See https://github.com/neznaika0/codeigniter-expenses/blob/main/app/Views/_sections/toasts.php

PHP Code:
// key "validation" for flashes
return redirect()->back()->withInput()->with('validation'$this->validator->getErrors());

// or Bootstrap keys 'success', 'danger', 'warning', 'info'
return redirect()->back()->with('success'lang('Expense.created')); 

Validation is shown first, then the others messages.


RE: CodeIgniter Expenses - pet project for beginners - ozornick - 06-11-2024

Release v.1.1.0 with CodeIgniter v4.5.2  Cool
https://github.com/neznaika0/codeigniter-expenses/releases/tag/v1.1.0


RE: CodeIgniter Expenses - pet project for beginners - ozornick - 06-24-2024

Does anyone have any questions or suggestions?

What would you like to consider as an example of basic practices? Not creating heavy functions


RE: CodeIgniter Expenses - pet project for beginners - Bosborne - 06-24-2024

Having a website running the sample code could be useful. That was part of how I learned when developing my own CRUD variant, Since i developed it for my employer, I cannot yet share it though.