Blog Archive

Wednesday, 9 July 2014

Basic steps to Symfony2 php framework (Beginers guide symfony2)

INSTALLATION :
Note:- $ is you should go to your WEB_ROOT/Symfony/ in terminal and run
CREATE BUNDLE:

        $ php app/console generate:bundle --namespace=July/TestBundle
                 Bundle name [JulyTestBundle]: JulyTestBundle
                 Target 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

1 comment:

  1. 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.
    Hire Wordpress Developers

    ReplyDelete