1

I am learning Symfony, so I have only gotten to

Symfony/web/app_dev.php/demo/

But I'm still not able to find how to use command line.

I have shell access, but where to execute this command?

php app/console generate:bundle --namespace=Blogger/BlogBundle --format=yml
j0k
  • 22,600
  • 28
  • 79
  • 90
Mirage
  • 30,868
  • 62
  • 166
  • 261

2 Answers2

4

That command is meant to be run from your root symfony folder. If you have everything installed correctly, you should see the app directory listed when you use the ls command. If you don't see the app directory, either you didn't install correctly or your in the wrong folder on your system.

MrGlass
  • 9,094
  • 17
  • 64
  • 89
  • 1
    Also if you are on windows, make sure you set php path like [here](http://stackoverflow.com/questions/2920903/php-is-not-recognized-as-an-intern-command-using-windows#answer-2920927) – Serjas Oct 25 '12 at 04:41
0

execute from root folder. The "console" (its a php file with no extension) file is in app/ folder. You can also go into that folder and run:

php console generate:bundle --namespace=Blogger/BlogBundle --format=yml
TroodoN-Mike
  • 15,687
  • 15
  • 55
  • 78