Work with Symfony In Eclipse using Composer - php

It's been days trying to create A Symfony project using Eclipse PDT with composer feature installed, but an error from composer keeps me from achieving this.
here are the steps i followed to do so:
I Installed Eclipse Standard Kepler version
I Installed PDT plugin, Symfony, Composer ... and all the stuff using this update site (http://p2-dev.pdt-extensions.org/)
I configured PHP executable
I create a new Symfony project, but when I click the finish button, I have the following error
I tracked on the web this error, and found the reason is that the php function : file_get_contents()
I have no idea what to do to solve this issue.
Please help.
PS : by the way i enabled that PHP extension php_openssl and still not workin

Related

Unable To Install Symfony Windows 7

I am trying to install Symfony, but unable to find how can we start with symfony with Xampp. I have already tried on google but there is no proper solution for installation and configuration of Symfony.
As I want to edit a project which is already developed using symfony CMS.
Symfony is not a CMS.
If you need to run a symfony app locally, all you have to do is to copy all files into a project subdirectory inside your Xampp (for example htdocs/symfony).
I assume existing project will have a database, so be sure to import your database locally or use external database. You need to tweak your symfony config file: http://symfony.com/doc/current/configuration.html
I am trying to install Symfony, but unable to find how can we start with >symfony with Xampp. I have already tried on google but there is no proper >solution for installation and configuration of Symfony.
As I want to edit a project which is already developed using symfony CMS.
Hi, for begin Symfony is not a CMS but a framework ^^, it's a little bit (alot) different.
For install Symfony WHY use google O_o ----> http://symfony.com/doc/current/setup.html
After, why Xampp ? for windows use Wamp who do the local server it's more performing :/
And if you want you don't have necessary to install symfony if it's an existing project -> just clone it (if he is on github) ... and just open the complete folder with your IDE or text editor.
You can modify the file without problems, (just you can have a prob for use command php bin/console.
Good luck i hope it's answering all you questions :)

Symfony deployment

I am trying to deploy my symfony 2.2 web site but i got problem:
InvalidArgumentException: [ERROR 3070] complex type 'service': The content model is not determinist. (in file:////home/dir/fold/katalog/vendor/symfony/symfony/src/Symfony.....
I try all the method but all time i got error.
I check my server configuration with domain/config.php and it is fine.
Next, i transfer all my folder without 'vendor' directory and with empty cache.
I execute php composer.phar install
......
But when i try domain/app.php/ => error(debug=true)
Finally , i transfered all my project including vendor, cache ... But the same thing =>Error
There same one can help me by short tutorial without the symfony documentation .
Thanks guys
This most likely relates to this question / solution and is caused by an error in libxml when validating xsd of xml configuration files.
The original source of the solution is this GitHub issue.
Solution
up- or downgrade your server's libxml2 to resolve the issue.
This is a bug in libxml2 - are you using RHEL or CentOS? Check out https://rhn.redhat.com/errata/RHBA-2013-0591.html and if you can't wait for the update to be released through yum update, then you can downgrade to an earlier version:
yum downgrade libxml2-2.6.26-2.1.21.el5_9.1

Netbeans and Zend Framework 2 configuration - zh.sh file

I am new to PHP and Zend Framework 2.
I am currently going through the ZF2 tutorial. I've run the commands:
php composer.phar self-update
php composer.phar install
Then opened up the latest Netbeans version. However, when asked for the zh.sh file, I couldn't find it anywhere in the zf2-tutorial folder. Is this file something that we need to create or is it expected to exist by default in the ZF2?
It'd be great if someone could point me to the right direction.
As other have hinted, NetBeans has not caught up to ZF2 yet (ZF has only been out for a handful of weeks).
As of right now, ZF2 has no command-line tooling (ie: zf.sh). Instead, you're encouraged to use the Skeleton Application to get things started.
While NetBeans doesn't have any specific ZF2 support, it's still a great IDE to use while developing ZF2 projects.
Just skip the ZF-specific stuff. Grab the Skeleton App, and create a new NetBeans project ("from existing sources"), and start hacking.
In all honesty, I can't remember ever using any of the ZF-specific stuff in netbeans. The framework is just a bunch of PHP files, and NetBeans works well without any framework-specific knowledge.
I don't know the content of zf.sh, but I was using this zf.bat in windows as it should be zf.sh in linux so's. This way I got from netbeans my zend core in the creation project phase ( with no errors):
git clone git://github.com/zendframework/ZendSkeletonApplication.git
cd ZendSkeletonApplication
php composer.phar self-update
php composer.phar install
With Zend included in php.ini, and COMPOSER_PROCESS_TIMEOUT=5000 set in the same file (also set max_execution_time=5000). This is because it didn't work for me to put it in command line orders.

Symfony2.0.15 Doctrine-Fixtures Windows Command Line Fatal Error

Recently started playing around with S2, amazing stuff! A while ago started an online Symfony2 Blog tutorial, however I got stuck on the page with Doctrine Data Fixtures generation,
Here is the message I'm getting when executing php app/console doctrine:fixtures:load in the console:
Fatal error: Class 'Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand' not found in C:\xampp\htdocs\blog-sf2\vendor\bundles\Doctrine\Bundle\FixturesBundle\Command\LoadDataFixturesDoctrineCommand.php on line 40
I am really stuck on it and I am running Windows 7, so can't really use deps file to pull dependencies from older versions (OR CAN I somehow??),
I've downloaded the newest versions of FixtureBundles and DoctrineFixtures.
Really appreciate any help on this one!
I think you need to read the installation documentation of this bundle for the 2.0 branch
You don't really "use the deps" file. The bin/vendors script uses it, and uses git. So what you need to do to "use the deps" is install git (and btw, install git-bash, you'll get a far better terminal).

Enabling propel plugin in Netbeans for Symfony Php framework

I am new to Symfony framework. I got Symfony (v1.4.8) on my Netbeans 6.8 and also got the initial success page.
Now, I want to Configure a database using Propel ORM Tool. But in Netbeans I am getting Doctrine as the default tool enabled. I am not even getting the PROPEL commands in my Run Commands window. I configured Netbeans for Symfony as per the instructions at:
http://netbeans.org/kb/docs/php/symfony-screencast.html
I tried editing "ProjectConfiguration.class" but of no success. Can anyone help me on this?
Guys... I seemed to have solved it the stupid way. I fixed the Properties.ini and ProjectConfiguration.class.php in the Config folder of my project (which I was doing for a long time) and then restarted my NetBeans.
I had all the Propel Modules loaded up...
In the /config/ProjectConfiguration.class.php edit the line
$this->enablePlugins('sfDoctrinePlugin');
to load the Propel plugin instead:
$this->enablePlugins('sfPropelPlugin');
Also in the /config/properties.ini set
orm=Propel

Categories