symfony

Simulate signin/login using Symfony/sfDoctrineGuardPlugin

In a situation, where the user is authenticated on another application (like oAuth or a custom security implementation), how can we simulate login? What we intend to achieve is: - use the user identifier key to check if the user exists - if the user exists, set-up the session for the user - basically, setup the attribute holder - assign...

Symfony setup without a web folder

I need to setup Symfony on a shared host that runs on windows IIS. The domain directs to the root folder of the host. Which means no /public_html or /htdocs. Is there any way to configure Symfony in a way that if I move the contents in "/web" to the root folder of my shared hosting account with the rest of the folders (app, config, tes...

Is it possible to use two different plugin folders in symfony?

In symfony the default plugin folder is /plugin, I'm wondering if there is a way to use more than one folder to categorize different types of plugins? There is a sf_plugin_dir but I'm not sure that can be configured to be an array, something like array( '/plugin-folder1/..', '/plugin-folder2/..', ) and still keeps everything wor...

displaying multiple GoogleMap markers on map

Hi I'm trying to display an array of postcodes onto a google map using PHP and using the Symfony Framework (1.0) The main problem I am having, is that there is some text associated with each marker, i.e when you click the marker a popup appears. The main problem is that the text should point to the correct postcode/marker on the map, ...

require_once of certain file works on local windows, not on dev linux machine

Hi, I'm trying to integrate Goutte http://github.com/fabpot/Goutte into my existing symfony 1.4 project and am running into a problem. I have everything working on my local wamp server, here are the two lines in question: require_once('path_to_goutte.phar'); $client = new Goutte\Client(); Now to debug I've put a print statement befor...

YML files in Symfony - can you get associative arrays more than 1 level down?

Hi, I have a load of data I want to store here: /apps/frontend/modules/builder/config/module.yml I have it looking something like: all: series_options: compact: name: Compact description: Something small. enabled: 1 large: name: Large description: Bit bigger. enabled: 0 In the actions.c...

Cannot access Symfony Framework from Remote Machine

I just installed Symfony framework on my laptop (running Ubuntu 10.04) but I want to be able to develop it from windows machine. Here is my apache config file for the site: # Be sure to only have this line once in your configuration NameVirtualHost 127.0.0.1:8080 # This is the configuration for your project Listen 8080 <VirtualHost 1...

Altering a database in symfony (doctrine)

I'm a beginner with symfony (1.4 + Doctrine), but there is a point which scares me. It seems that whenever one wants to change a model, the only way is to change the schema for the database (config/doctrine/schema.yml) and then call symphony doctrine:build, which flushes all the current data in the database. This does not seem to me lik...

How do I enable languages for the sfDoctrineGuardPlugin

My application uses the sfDoctrineGuardPlugin to secure the application and force uses to login to access. How do I enable the i18n features in Symfony so that users can get different language when they login? As per the Symfony Internationalization document I added the following to my settings.yml: all: .settings: charset: utf-...

symfony default context doesn't exist after new deployment

Hi, I have an sf1.2 based project that works in the local deployment. I deployed it into another environment yesterday and when I tried to do ./symfony cc, I got this error : "default" Context doesn't exist What can possibly cause this error? my sf version is 1.2.8 ...

Symfony 1.4 using Propel 1.5 with multiple databases

I am creating a Symfony 1.4 project using Propel 1.5. I would like to know if this can support multiple databases ...

Symfony: Images still save in web/uploads after I changed web root to public_html

In my symfony project, I changed my webroot directory to public_html to fit with a specific host. However, in the admin generator, when saving a file, the system creates a web folder, then stores the image in web/uploads How can I tell the system to now save in public_html instead? ...

Forms in symfony

I am a beginner with symfony, and I can not get my head around forms generation. In theory there even is a form framework, to have complete flexibility. But, as far as I understand, forms are rendered as tables in symfony. I am used to CakePHP where I can output input elements one at a time, and then wrap them as I wish: in tables, divs,...

symfony captcha error redirect

I'm building a simple form mailer in symfony using sfExtraForm plugin captcha. Everything works except sfValidator is not redirecting the user and showing an error when any field is invalid. The only thing I can think of is I did not generate the module. I built it from scratch. I have to do the redirect manually. Is this because this i...

php remote development workflow: git, symfony & hudson

Edited: (after seeing Luke's answer) I'm looking to develop a website and all the work will be done remotely (no local dev server). The reason for this is that my shared hosting company a2hosting has a specific configuration (symfony,mysql,git) that I don't want to spend time duplicating when I can just ssh and develop remotely or throu...

Multiple symfony projects on same domain but different folders

Hi am building a several symfony pages on the same domain. Note that they must be on the same domain as different folders: www.domain.com/[project1]/ www.domain.com/[project2]/ www.domain.com/[project3]/ www.domain.com/[project4]/ i would like the same symfony installation for these sites . Is this done easily? do i need symlinks to sym...

Zend with Symfony

There seems to have been previous attempts to integrate Zend with Symfony in the same project. I hear it can be done and has been done, but aside from a slide show linked below, the actual video accompanying the slide show is not freely available. So does anyone know of good resources that explain such integration well? blogs, videos, ...

PEAR Channel why do I need one?

So I guess a PEAR channel is like a server that lets you distribute your own PEAR packages? I was under the impression PEAR was sort of dead, until I started looking at Symfony (is it dead? I haven't used it in the past so maybe someone with more experience in PHP can comment on its state and whether it makes sense to invest any time in ...

How to choose an ORM

The framework I'm starting to learn supports 2 ORMs out of the box. I don't think it matters for the purposes of this question to say which 2 ORMs. My question is more general than this. How do you in general decide which ORM to go with? I haven't used an ORM before, but I'm guessing there's a list of must-haves that any decent ORM must ...

Is there a way of using PHP-ActiveRecord as symfony's ORM/abstraction layer?

I just discovered PHP-ActiveRecord not too long ago after struggling for nearly a month to write my own ORM (I'm hard headed like that) and I fell in love with it. I had looked at Doctrine and Propel before but decided to run away due to the sheer complexity and learning curve. With AR, I don't have the anxiety and learning difficulty I ...