Monday, August 8, 2011

Symfony framework

 download:http://www.symfony-project.org/installation
install:http://www.symfony-project.org/getting-started/1_4/en/

Porting
C:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf
add

Listen 8082
uncomment
Include conf/extra/httpd-vhosts.conf


C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf
add
 # Be sure to only have this line once in your configuration
NameVirtualHost 127.0.0.1:8082

# This is the configuration for your project




DocumentRoot "C:\wamp\www\symfony_folder\web"
DirectoryIndex index.php

AllowOverride All
Allow from All




Edit
C:\wamp\www\symfony_folder\config\databases.yml



admin login is
host:8082/admin/login/login



main template is
C:\wamp\www\symfony_folder\apps\site_name\templates\layout.php
to checking  routing
check
C:\wamp\www\symfony_folder\apps\site_name\config\routing.yml

homepage:
  url:   /
  param: { module: top, action: index }

means check
C:\wamp\www\symfony_folder\apps\site_name\modules\top

there will be a indexSuccess.php file in templates folder



No comments:

Post a Comment