![]() |
[php] Clone tin tức Vnexpress
Demo : Vnexpress.net chỉ thay đổi mỗi tên truy cập của bạn
Cấu hình như sau: - Tạo DB với collation là uttf-8 nhé - Import file sql trong thư mục install/tomato_vnexpress.sql - Mở file app/config/app.ini ra và edit các đoạn sau VD: link bạn chạy trên local là: http://localhost/vnexpress thì sẽ config như sau * Dòng 4: resources.frontController.baseUrl = "/zing/index.php" ===> "resources.frontController.baseUrl = "/vnexpress/index.php"" * Dòng 9: prefix = "zing_" ==> prefix = "vnex_" * Từ dòng thứ 8 đến dòng 21 là acc connect db và db name * Dòng 25: url = "http://localhost/zing/index.php" ===> url = "http://localhost/vnepress/index.php" * Dòng 28: static_server = "http://localhost/zing" ===> static_server = "http://localhost/vnexpress" Vậy là config xong rồi đó. PS: Lưu ý PHP phải có extension pdo_mysql, xml, mb_string, json. Ai cài vào sub folder thì nhớ thêm index.php (http://localhost/vnexpress/index.php) vào để chạy nhé. Không có mấy cái này không chạy thì không phải lỗi tôi đâu nhé. Các bạn down thêm file Zend.rar về giải nén ra có thư mục Zend, copy thư mục này vào thư mục lib nhé. Sorry vì sư thiếu sót. down tại link http://www.mediafire.com/?aqcjylnzqww Link đăng nhập quản trị: http://localhost/[path_to_vnexpress]/index.php/admin User: admin Pass: 123456 Download: http://www.mediafire.com/?111kyyt3wmt pass: tuthienbao.com |
Múi giờ GMT. Hiện tại là 03:24 PM. |
Powered by: vBulletin v3.8.2
Copyright ©2000-2025, Jelsoft Enterprises Ltd.