symfony2. pb during a bundle generation

Discuss Symfony 2 bundles here

Moderators: tiagojsag, dcobalt

symfony2. pb during a bundle generation

Postby 3kimberlites » Mon Nov 12, 2012 9:57 pm

hello, my name is Bertrand S., I'am an IT Specialist. A services company grant me a mandate to develop a web module for one of their customer account.
Technology used: PHP/MySql/Apache2/HTML/javascript
Beforehand, I have to document a benchmark with various PHP frameworks. I want to test Symfony in order to realize a php web application for an account.
Following the tutorial for a filmotheque creation, I have an error at the bundle creation. I'am on a development server (wampserver2.2). php is in 5.3.14 version so the function token_get_all() should be integrated :


Code: Select all
Generating the bundle code: OK
Checking that the bundle is autoloaded: OK
Confirm automatic update of your Kernel [yes]? yes
Enabling the bundle inside the Kernel:
Fatal error: Call to undefined function Sensio\Bundle\GeneratorBundle\Manipulator\token_get_all() in C:\wamp\www\symfony2\vendor\sensio\generator-bundle\Sensio\Bundle\GeneratorBundle\Manipulator\KernelManipulator.php on line 61


testing this code:
Code: Select all
<?php
print_r(token_get_all('/* comment */'));
?>


function return:
Code: Select all
Array ( [0] => Array ( [0] => 311 [1] => /* comment */ [2] => 1 ) )


I think Symfony is sureky one of the most stable and advanced php framework it exists. Have you got an idea with that error ?

Thanks for your reply and good continuation,

BS.
3kimberlites
Junior Member
 
Posts: 2
Joined: Mon Nov 12, 2012 6:06 pm

Re: symfony2. pb during a bundle generation

Postby 3kimberlites » Tue Nov 13, 2012 12:22 pm

Hello, do not mention it. I resolve the mistake but I think it's useful to explain it.
So, when you are in an environment with various frameworks (e.g. Zend + Symfony2), pay attention to manage conflicts between various PHP version. In other words, the PHP web executable can be different (version/.ini) than those used at the command line (depending of the path environment variable).
Thanks for your attention and hope having great advices related to this project for an european institution. I choosed Symfony2 frameworks and I will promote it.
Regards,
BS.
3kimberlites
Junior Member
 
Posts: 2
Joined: Mon Nov 12, 2012 6:06 pm

Re: symfony2. pb during a bundle generation

Postby nymo » Wed Nov 14, 2012 10:38 am

Hi 3kimberlites,
I'm glad you solved your problem and thanks for sharing the solution. Do you tried to check the Silex Framework(http://silex.sensiolabs.org/)? Maybe a micro-framework is a better solution for solving your customer project? It is based on Symfony2 components but is more lightweight.

Just my 2 cents :)

Cheers
nymo
Senior Member
 
Posts: 174
Joined: Fri Jan 07, 2011 11:37 pm
Location: Germany


Return to Bundles discussion

Who is online

Users browsing this forum: No registered users and 5 guests