Installing Symfony CMF in existing project - php

I would like to install Symfony CMF into an existing Symfony2 project. I just want editing a few pages with CMF.
I am using this documentation : http://symfony.com/doc/master/cmf/book/installation.html ; just for new installation ...

did you run into a specific issue?
anyway you might also find this link useful http://symfony.com/doc/master/cmf/cookbook/editions/cmf_core.html

Related

Migrate to symfony 4 from symfony 3.4

My project is currently setup with 3.4 version of symfony. I want to move to symfony4. So I moved to symfony4 as per suggestions in http://symfony.com/doc/current/setup/upgrade_major.html.
In my current project there are many custom bundles are created in src directory. But now in Symfony 4 there is no bundle structure.
So please guide me how can I proceed with my existing bundles in Symfony4?
Thanks in advance...
You can follow the tuto made by Symfony, right here: https://symfony.com/doc/current/setup/upgrade_major.html (you already done that)
And then to update you project structure: https://symfony.com/doc/current/setup/flex.html#upgrade-to-flex

Yii2 Framework - Custom Installation Template

When I access to Yiisoft account on Github:
https://github.com/yiisoft
I see 3 pinned repos: Yii2, Yii2-app-basic and Yii2-app-advanced.
I know When I run the command:
composer create-project [template] [project-name]
I can create a project using one of installation templates. Also I know on the composer.json on this templates is set yii2 framework and yii2 bootstrap as dependencies, so they get downloaded.
What about if I want to create my own installation template, is there a guide how to do it?. I know it would not be that productive but just wondering out of curiosity.
UPDATE
I have noticed that just a couple hours ago this page was published:http://www.yiiframework.com/doc-2.0/guide-tutorial-start-from-scratch.html
but still it is based on the basic installation template, not a totally custom one.

Symfony2 CMF TreeBundle has disappeared

Our custom CMS utilizes TreeBundle from Symfony2 CMF. When deploying to a production server, bin/vendors install failed because apparently the whole bundle does no longer exist - at least in GitHub. The Symfony2 CMF homepage still mentions the bundle, the link just leads to a 404 page.
Is the bundle gone for good? What happened to it? Is there a Symfony 2.0 compatible replacement for it or should we just include the bundle in our own repository?
This bundle was refactored into the TreeBrowserBundle and the old bundle removed after a while. See here for the discussion about that: https://groups.google.com/forum/?fromgroups=#!searchin/symfony-cmf-devs/treebundle/symfony-cmf-devs/k7nm-XtXW8Q/kgZpaOJN1x8J
If you can update your project, then just do that and drop the reference to TreeBundle. Otherwise the easiest would indeed be to include it in your own repository.
We assumed that the early adopters of the CMF frequently update, and thus we removed this repository after a few months. Sorry about that. We will be more careful with backwards compatibility the more stable we get.

Installing Doctrine 2 With PEAR

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.

How to run multiple versions of Symfony PHP Framework

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.

Categories