link suggestion - php - Web Programming Project ICT2 2012-2
-
Requirements
- php5.4 hay mới hơn, hỗ trợ sẵn web-server nên không cần cài thêm apache
more info http://net.tutsplus.com/tutorials/php/php-5-4-is-here-what-you-must-know/ - mysql (cho nó đơn giản)
- php5.4 hay mới hơn, hỗ trợ sẵn web-server nên không cần cài thêm apache
-
create database name "ictwp9"
-
make folders
app/tmp
app/tmp/cache
app/tmp/cache/models
app/tmp/cache/persistent
app/tmp/cache/views
app/tmp/logs
app/tmp/sessions
app/tmp/testsFor unix-line command
cd #{PROJECT}
mkdir -p app/tmp/{cache,logs,sessions,tests} && mkdir -p app/tmp/cache/{models,persistent,views}ensure app/tmp is writable
-
configure you app/Config/database.php (user,password) - (example from app/Config/database.php.default)
chỉ push lên branch sub
trong quá trình cài đặt mà gặp lỗi gì thì google sửa nhé, hoặc liên hệ với giang hồ.
-
Update new database
after pull new request, run instuction "./app/Console/cake schema create"
if no new table added, can skip above instruction and run: "./app/Console/cake schema update" -
Model
all model is already created, if anyone want to add new, do copycat or google :D
-
Controller
same as Model
-
View
create view by your own (using google :D, or using bake - google for it =)) )
-
Routes
add route by add new line in "./app/Config/routes.php".
There are also some examples in this file. -
DebugKit
DebugKit is debug tool of CakePHP. It is installed. Google how to use it.
very usefull