-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHow to Setup.txt
27 lines (20 loc) · 1.19 KB
/
How to Setup.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
- Download the latest version of CI from https://codeigniter.com/
- Extract the Zip file in desired destination place.
- Rename the .env.example to .env
- Enter proper database connection parameters in .env file
- open application/config/config.php and set your base URL. If you intend to use encryption or sessions, set your encryption key.
- open application/config/database.php and set your database settings.
- Create database in MySQL petty_cash
- open application>config>autoload.php and load the database and session library so we can use it in our application.
- set encription key $config['encryption_key']
- add .htaccess to overcome from index.php in URI
- used https://github.com/bcit-ci/CodeIgniter/wiki/Permission-Class for permission management
- Run the project/database.sql file in phpMyAdmin to create the required database tables with sample data.
Codeignator Naming Convention:
- Controller
-- The file must be called with a capital letter.
-- Class names must start with an uppercase letter.
-- The “index” method is always loaded by default if the second segment of the URI is empty.
-- The second segment of the URI determines which method in the controller gets called.
- Model
--