I'm a noob to PEAR and Doctrine and got into trouble while trying to install doctrine . From Doctrine's website:
You can install the release through Github, download, PEAR or Composer
Since the 'download' doesn't actually link to anything I tried using PEAR.
In c:\xampp\php\ I ran this line as explained in the website
pear install doctrine/DoctrineCommon-2.3.0
And it seemed to go well. However - where is the package downloaded to ? I need the files themselves since I need to drag them to my CodeIgniter folder.
From Google, this is Doctrine's download page http://www.doctrine-project.org/projects/orm/download which isn't working ...
Have you looked on Google?
Setting up CodeIgniter 2 with Doctrine 2 the right way
Integrating Doctrine 2 with CodeIgniter 2
Also, you can find the last Doctrine 2 ORM version here.
Related
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 :)
I know it is not good question to ask, but I don't find any satisfactory answer from Google that we able to install plugin in symfony 1.4 with or without PEAR.
If yes then why? and if no then how do we install it manually.
After a quick search on Google, one result shows you how to install a plugin manually, without PEAR (which I recommend):
Download the plugin from the symfony site.
unzip the file and if the folder has version number, remove that.
Copy the plugin to the projectpath/plugins
Edit config/ProjectConfiguration.class.php to add
$this->enablePlugins('pluginName');
Run symfony plugin:publish-assets in the command line.
I'm on the latest 32 bit WampServer 2 server with php 5.4
I follow the step to download Doctrine 2.2 from Git without problem.
Now I'm at configuration step.
I'm stuck to the first step .
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/configuration.html
Where is the file autoload.php. I have basicaly this folder architecture.
doctrine
..bin
..lib
....Doctrine
......ORM
......vendor
........doctrine-build-common
........doctrine-common
........doctrine-dbal
........Symfony
..tests
..tools
there is no autoload.php file in the vendor folder ?.
where is that file ?.
Do anybody have a tutorial on how to install Doctrine 2.2 . I already installed Doctrine 1.2 before without problem, but the Doctrine 2.2 is completely different then the old one.
Thanks very much.
It uses namespacing for loading classes.
I am trying to make Doctrine 2 work. But on the documentation page about the CLI tool, it's including something in Symfony...
$helperSet = new \Symfony\Component\Console\Helper\HelperSet(array(
'db' => new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($em->getConnection()),
'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($em)
));
What * * is that ? Why do you need Symfony to make Doctrine work ?
It seems completely odd to me, but I can't make my mind to download Symfony just for the missing class... Can you help me ?
The doctrine console stuff uses some Symfony Components (which are standalone libraries, packaged separately from the full framework).
So it's nothing strange -- the doctrine team just avoided reinventing a perfectly good wheel.
Installing the DoctrineSymfonyConsole will probably fix it:
pear install doctrine/DoctrineSymfonyConsole
If you installed Doctrine from pear, you probably had errors that were handled gracefully. try installing all dependencies:
pear install -af doctrine/DoctrineORM
Make sure there are no problems. If there are missing packages, it should warn you and you'll want to install those. I've had issues in the past where -a (all dependencies) didn't error if there was a problem installing a dependency, and the install halted even though it reported success.
http://pear.doctrine-project.org/
If you download the latest Doctrine tar.gz file, the Symfony Console comes prepackaged with it. No need to do a separate download. You'll find a folder named Symfony in the Doctrine folder. It has the Console and Yaml components.
I have several web projects built with Symfony v1.0, but I am excited by the new features in Symfony version 1.4 (Improved security, native email support and improved performance).
How can I continue to develop my 1.0 projects but also create a testing environment for version 1.4?
Guide to Installing Multiple versions of Symfony
Thankyou to Guillaume Flandre for pointing it out, there is a fantastic article written by eHabib on SymfonyNerds.com - http://symfonynerds.com/blog/?p=123
Here is the basic outline, read the whole article here.
Step 1 - Un-install Symfony via PEAR
Step 2 - Setup a structure for Symfony: Install symfony in /usr/share/php/symfony
Step 3 - Checkout each Symfony version you need
Use SVN checkout to grab each Symfony version. Put these in a different folder under the base Symfony directory.
Step 4 - Create symbolic links for each version
Create and test symlinks for each version of Symfony. Lets place these in the standard bin directory
Step 5 - Creating a new project
Use the relevant Symfony command. For example, to create a Symfony 1.0 project:
sudo symfony10 init-project test1
sudo symfony11 generate:project test11
sudo symfony12 generate:project test12
Step 6 - Check in the project Config to ensure its picked up the right version.
This link should be useful: http://symfonynerds.com/blog/?p=123
It points to an article named: Your complete guide to running multiple Symfony versions on the same environment
It's fairly easy to do.
As also said in the article, I define it in lib/vendor as svn:externals: symfony http://svn.symfony-project.com/branches/1.2
So there's no symfony to be installed on the server at all and you can use as many versions without influence on other apps.