Symfony project creation tips

for creating an project
on command line type and for SVN
1. crate a proejct
[root@local my_symfony]# php /var/www/html/demo/svn_symfony/data/bin/symfony init-project my_symfony
2. create an apllication
[root@local my_symfony]# php symfony init-app myapp
– if we have a sandox then we will directly write step2.
– run on wroser

http://localhost:100/demo/my_symfony/web/

–if you wnat to change the htaccess then do it here.

- create a SVN
svnadmin create my_svn

3. create a module ( for creating a page we must create module)
php symfony init-module [app_name] [module_name]
eg.php symfony init-module myapp mymodule
–run

http://localhost:100/demo/my_symfony/web/myapp_dev.php/mymodule/index

-now you can create mnodules/pages and multiple actions and templates

Leave a Reply