voduytuan / litpi-framework Goto Github PK
View Code? Open in Web Editor NEWSmall, Lightweight PHP Framework with PSR-2 Compliance
Small, Lightweight PHP Framework with PSR-2 Compliance
Tôi đang dùng ubuntu (php 5.3.2), đã làm theo tất cả những hướng dẫn cài framework vẫn k thể nào truy cập dc vào /install, báo lỗi 404. Chuyển qua / thì báo lỗi Fatal error: Class '\controller\site\index' not found in /home/ichuot/www/test1/litpi-2/Vendor/Litpi/Router.php on line 51 (tôi đã chính RewriteBase phù hợp với cấu trúc thư mục hiện tại).
Tôi có thử debug file autoload.php bằng cách echo $filepath ở dòng 26 của autoload.php và phát hiện nó không include đúng cấu trúc thư mục của framework (phân biệt hoa-thường trên linux, có thể trên win sẽ k bị báo lỗi). Tôi có thử ucfirst($namepart[$i]) dòng 15 và có thể truy cập dc vào /install và cài thành công nhưng không vào / và /admin được vì như thế sẽ lỗi autoload những libs khác.
hình minh họa: https://www.dropbox.com/s/z9lefegftd0cle7/Selection_001.png
Mong sớm khác phục lỗi.
Hi, Mr. Tuan!
I faced this error in installing operation. I have configured config.php and db.php files same as instruction, but I couldn't run install URL.
This was shown on screen:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]:
Base table or view not found: 1146 Table 'litpi.lit_ac_user' doesn't exist' in ..\www\litpi\src\Vendor\Litpi\MyPdo.php:32 Stack trace:
#0 ..\www\litpi\src\Vendor\Litpi\MyPdo.php(32): PDOStatement->execute(Array)
#1 ..\www\litpi\src\Vendor\Litpi\MyPdoProxy.php(208): Vendor\Litpi\MyPdo->query('SELECT * FROM l...', Array)
#2 ..\www\litpi\src\Model\User.php(732): Vendor\Litpi\MyPdoProxy->query('SELECT * FROM l...', Array)
#3 ..\www\litpi\src\Model\User.php(136): Model\User->getData('1')
#4 ..\www\litpi\src\includes\startup.php(89): Model\User->updateFromSession()
#5 ..\www\litpi\src\index.php(13): require('...')
#6 {main} thrown in ..\www\litpi\src\Vendor\Litpi\MyPdo.php on line 32
Hi Tuan,
I got error 404 when access http://localhost/xxx/site/install & http://localhost/xxx/install
Any ideas for that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.