0

I am using windows system. I have just installed the symfony to my localhost as it is install with no error inside. bellow url run fine with browser.

http://localhost/symfony/web/app_dev.php

now i have tried to create bundle from command prompt with following syntax.

php app/console generate:bundle --namespace=Acme/HelloBundle --format=yml

it shows an error like. "could not open input file." however the environment variable is already set for command prompt. so can any one please help me create bundle or give another way to create bundle in symfony. Thanks.

0

3 Answers 3

1

What environment variable is set? Best thing is to run this command while you are in main project folder (in your case symfony folder).

Sign up to request clarification or add additional context in comments.

Comments

1

Could not open input file.

implifies that app/console, does not exist. Make sure to run

cd path/to/your/symfony/folder

before trying to generate the bundle. :)

Comments

0

Run your command from your symfony root folder. Also try to do:

php app/console generate:bundle

it will ask you to specify a folder and format. Also that it needs to generate the structure. Also check that your php-cli.ini has all the necessary configurations to execute the code.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.