Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Expenses - pet project for beginners
#1

Github: https://github.com/neznaika0/codeigniter-expenses
Readme: https://github.com/neznaika0/codeigniter.../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 english is bad, so you can help with translations.
Reply
#2

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.
Reply
#3

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...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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB