INSTALLATION :
Target directory [/opt/lampp/htdocs/Symfony/src]
Configuration format (yml, xml, php, or annotation): yml
- Download and unzip the file to your WEB_ROOT folder [http://symfony.com/download] . Give the permision
- Create a database for the Symfony instance .
- Open Browser and go to http://localhost/Symfony/web/app_dev.php
- Navigate to 'CONFIGURE' or http://localhost/Symfony/web/app_dev.php/_configurator/step/0 for configuring the database with your symfony instance. Please copy the 'Secret *' Key and paste in the "/app/config/parameters.yml"
CREATE BUNDLE:
$ php app/console generate:bundle --namespace=July/TestBundle
Bundle name [JulyTestBundle]: JulyTestBundleTarget directory [/opt/lampp/htdocs/Symfony/src]
Configuration format (yml, xml, php, or annotation): yml
CREATE ENTITY :
$ php app/console generate:doctrine:entity --entity=JulyTestBundle:Task
The Entity shortcut name [JulyTestBundle:Task]: JulyTestBundle:Task Configuration format (yml, xml, php, or annotation) [annotation]: xml
GENERATE ENTITIES:
$ php app/console doctrine:generate:entities July/TestBundle/Entity/Task
CREATE SCHEMA:
$ php app/console doctrine:schema:create
UPDATE SCHEMA:
$ php app/console doctrine:schema:update --force
CLEAR CACHE:
$ app/console cache:clear
$ php app/console generate:doctrine:entity --entity=JulyTestBundle:Task
The Entity shortcut name [JulyTestBundle:Task]: JulyTestBundle:Task Configuration format (yml, xml, php, or annotation) [annotation]: xml
GENERATE ENTITIES:
$ php app/console doctrine:generate:entities July/TestBundle/Entity/Task
CREATE SCHEMA:
$ php app/console doctrine:schema:create
UPDATE SCHEMA:
$ php app/console doctrine:schema:update --force
CLEAR CACHE:
$ app/console cache:clear
Awesome post.. its so much informative for the followers and so much helpful also.I appreciate you for this great post.Thanks for sharing.Keep it up.
ReplyDeleteHire Wordpress Developers