Để có thể sử dụng gmail để gửi mail bằng code thì bạn phải bật chế độ cho phép ứng dụng kém an toàn trước cái đã.…
Xem thêm Send mail with SMTP Gmail Server in Codeginter (ci)Tag: Codeigniter
CodeIgniter: HMVC Multi Projects
Nếu bạn đang muốn xây dựng hệ thống website với 1 source duy nhất nhưng có thể chạy nhiều project? Thì đây! ngay bên dưới,…
Xem thêm CodeIgniter: HMVC Multi ProjectsSử dụng .htaccess loại bỏ “index.php” trong đường dẫn CodeIgniter – CI
Để loại bỏ “index.php” trong đường dẫn truy cập website ta tạo file .htaccess với nội dung sau:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L,QSA] </IfModule> <IfModule !mod_rewrite.c> # Without mod_rewrite, route 404's to the front controller ErrorDocument 404 /index.php </IfModule> |
nosomovo
Xem thêm Sử dụng .htaccess loại bỏ “index.php” trong đường dẫn CodeIgniter – CICài đặt nơi lưu trữ session trong CodeIgniter – CI
CodeIgniter – Ci hỗ trợ 2 cách lưu trữ session là lưu trữ dạng file và lưu trữ trong databse. 1. Lữu trữ session dạng…
Xem thêm Cài đặt nơi lưu trữ session trong CodeIgniter – CILấy kết quả của query insert trong CI
Bạn thực hiện một lệnh insert vào cơ sở dữ liệu và muốn kiểm tra trạng thái thêm có thành công hay không. Nhưng bạn…
Xem thêm Lấy kết quả của query insert trong CIKhắc phục lỗi “Only variable references should be returned by reference” trong CI
1. Mô tả lỗi: A PHP Error was encountered Severity: Notice Message: Only variable references should be returned by reference Filename: core/Common.php Line Number: 257…
Xem thêm Khắc phục lỗi “Only variable references should be returned by reference” trong CI