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.
Summary: | Update/improve PHP samples | ||
---|---|---|---|
Product: | php | Reporter: | Tomas Mysik <tmysik> |
Component: | Code | Assignee: | Tomas Mysik <tmysik> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | mmirilovic, obrejla, pjiricka, vriha |
Priority: | P2 | ||
Version: | 7.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Tomas Mysik
2011-06-09 13:52:23 UTC
*** Bug 196761 has been marked as a duplicate of this bug. *** - Symfony sample is basically not working at all with the latest version of symfony framework -AirAlliance is showing errors (for example go to AirAlliances/web/processitinerary.php and try to book with some values, it shows "Notice: Undefined variable: flightsArray in AirAlliances\web\itinerarymanager.php on line 256" -RentAFlat - shows error for example if you go to "Offers", then warning about undeclared variable $res in sell-estate/index.phtml is displayed. So none of sample project is working, raising priority to P2 not for 7.0.1, but we need to fix it definitely for 7.1 (In reply to comment #2) > - Symfony sample is basically not working at all with the latest version of > symfony framework Will look at it (I guess you are using Symfony 1.x version, right?). It would be great if you could find what is wrong and what needs to be done (this sample was done by your predecessor ;). > -AirAlliance is showing errors (for example go to > AirAlliances/web/processitinerary.php and try to book with some values, it > shows "Notice: Undefined variable: flightsArray in > AirAlliances\web\itinerarymanager.php on line 256" > -RentAFlat - shows error for example if you go to "Offers", then warning about > undeclared variable $res in sell-estate/index.phtml is displayed. These errors are likely caused by your php.ini setup since by default, notices are ignored. Or am I wrong? (Again, this sample was done by your predecessor too ;) > So none of sample project is working, raising priority to P2 Anyway, PHP samples must be updated, that's why I filed this issue. (In reply to comment #4) > It would > be great if you could find what is wrong and what needs to be done. See issue #196761. Yes, symfony 1.4.9, I briefly described what's wrong but I can look at it more thoroughly. As for the notices, my default settings is "error_reporting = E_ALL | E_STRICT", it is default setting of XAMPP package, I didn't realize it. One more note: the biggest problem I can see here is that - perhaps except Jobeet - the samples are quite "bad" (I mean quality). I would prefer to have just one sample with nice source code to show modern ways how to develop a PHP web site. cc Work in progress... ZF sample fixed. http://hg.netbeans.org/web-main/rev/07af7fce483f AirAlliance sample replaced by TodoList sample. http://hg.netbeans.org/web-main/rev/38fd57fd9bb1 http://hg.netbeans.org/web-main/rev/284beb341e34 Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/07af7fce483f User: Tomas Mysik <tmysik@netbeans.org> Log: Part of #199310 - Update/improve PHP samples ZF sample fixed. Fixed. Láďo, please verify all the samples. Thanks. Zend sample improved & fixed. http://hg.netbeans.org/web-main/rev/3f4640f1473b Old Symfony sample removed. http://hg.netbeans.org/web-main/rev/2a58f3ec3569 New Symfony sample added. http://hg.netbeans.org/web-main/rev/ada583c286da TodoList and Zend sample looks fine. About the Symfony, if I right click the project and select Symfony|Run Command, no commands are found. I tried to repeat it with simple new project (New Project|PHP|PHP Application) with Symfony fw and it works so maybe there's something missing in the sample? Also if you open New Project dialog and select Samples|PHP both samples for Symfony and Zend have same icon "ZF" which should be probably only for Zend (In reply to comment #12) > About the Symfony, if I right click the project and select Symfony|Run Command, > no commands are found. I tried to repeat it with simple new project (New > Project|PHP|PHP Application) with Symfony fw and it works so maybe there's > something missing in the sample? I cannot reproduce, it works for me. Can you try it from command line in the project directory, e.g. "php symfony help"? > Also if you open New Project dialog and select Samples|PHP both samples for > Symfony and Zend have same icon "ZF" which should be probably only for Zend I have changed the icon, now it is a house (the same icon for both samples since they in fact should be the same). Thanks. |