網頁

2010年6月19日 星期六

symfony deploy

1. setting db connection with xampp
database.yml
dsn:
'mysql:host=localhost;dbname=blog;unix_socket=
/Applications/xampp/xamppfiles/var/mysql/mysql.sock'
2. create database
3. generate yml
php symfony doctrine:build-schema
4. generate models
php symfony doctrine:build --model
5. generate sql
php symfony doctrine:build --sql
6. build form
to generate forms and validators for the model classes
php symfony doctrine:build --all --no-confirmation
7. create dashboard
php symfony doctrine:generate-module --with-show --non-verbose-templates frontend blog Bloggers
8. dahsboard url
http://localhost:8080/frontend_dev.php/blog

2010年6月18日 星期五

php framework 選擇

Zend, Symfony 中大型專案
CakePHP, CodeIgniter 中小型專案
http://soft6.com/html/tech/17/175961.shtml
Symfony Top 1
A good framework is easy to learn, simple to use, intuitive to work with, easy to extend or to modify, rapid to build (maintain) applications with and of course stable.
php frameworks
Code Igniter , hello world
Code Igniter, no model objects