This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 196674 - Unable to create new symfony framework project
Summary: Unable to create new symfony framework project
Status: VERIFIED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 13:18 UTC by maghiel
Modified: 2011-03-15 13:20 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maghiel 2011-03-14 13:18:01 UTC
[ BUILD # : 201103120000 ]
[ JDK VERSION : 1.6.23 ]

    Create Symfony project
        In the Projects window, choose File > New Project.
        In the Categories list, select PHP, in the Projects area, choose PHP
Application to create an empty project and click Next.
        Accept default values for the rest fields, press Next button.
        In last step check Symfony PHP Web Framework
        Press Finish button 
        EXPECTED RESULT: Created Php project appears on Project tab with
framework specific folder structure. 

        *FAIL* 
        Messagebox: "Symfony project not created! 

(verify Symfony script in Tools > Options > PHP > Symfony or review IDE log)

        Project is created without any source files.

        *NEEDS VERIFICATION* I normally do not use Symfony, might have
installed it wrong! (used recommended pear installation)
Comment 1 OndrejBrejla 2011-03-14 13:34:14 UTC
I think that you didn't set a valid Symfony file. 

Go to Tools -> Options -> PHP -> Symfony and write a valid path to your symfony script into the "Symfony script:" input.

You have to have Symfony framework downloaded and in it's ./data/bin/ directory is a "symfony" and "symfony.bat" file. Use "symfony.bat" if you are on Windows.

It has to work. It works for me properly.
Comment 2 Petr Pisl 2011-03-14 15:31:51 UTC
It works for me as well. Please let us know, if you set up the Symfony script, whether it works. I'm marking this issue as works for me, please reopen, if you have still problem with it after using correct Symfony script.
Comment 3 Vladimir Riha 2011-03-15 09:13:08 UTC
Make sure that path to symfony script in netbeans settings doesn't end with ".bat". You must use i.g.
...\symfony\data\bin\symfony
instead of
...\symfony\data\bin\symfony.bat

Anyway, works for me too
Comment 4 maghiel 2011-03-15 13:13:15 UTC
Verified working. I had to point to symfony instead of symfony.bat. 

Tools > PHP > Symfony reads "Used only for new projects and as a fallback if a project's Symfony script is not valid (typically *symfony.bat*)" though.
I'll file a report about the invalid description.

Thanks all!