symfony

Error 500 after deploying a symfony app

Hi, I have deploy my project using "project:deploy --go". Now i have my folders "apps", "lib", "web", etc, inside "public_html". When i try to login to a user session of my web app, i get an error 500. This is what i'm founding in the php error log: [Tue Mar 09 05:47:02 2010] [error] [client 174.37.227.194] client denied by ser...

sfDoctrineGuardPlugin: login with email

Hi, I'm building a webapp with symgony1.4 and doctrine1.2, and I wanna use the sfDoctrineGuardPlugin, but I have a little problem. sfDoctrineGuardPlugin is built to authenticate by username, but I need to change it to ask for an email. Any idea how to do it? ...

After deploying a symfony 1.2 app, should i unfreeze the project in the remote host?

Hi, just that. I suppose no. Javi ...

String length at the start of a MySQL text field when using HYDRATE_NONE?

Hi, I'm using Symfony 1.4 with Doctrine. I'm saving text as MySQL text type (Doctrine "array" type) into the database, and it goes in clean & correct. When querying the data back, if I use Doctrine_Core::HYDRATE_ARRAY the data is returned as it should be. However, if I use HYDRATE_NONE, the data is returned with the text length append...

In Symfony, sharing data actoss subdomains

Hi, I have a site which I am doing credit card transactions. The issue is this: if the user goes to: http://mysite.com and then the logic redirects the user to https://www.mysite.com, I lose my session data. As the title suggests, I am using Symfony, version 1.2 Now, looking in my apps/site/config/factories.yml file, I added the below...

Why does Doctrine create an index on only one column in the linking table?

Just like stackoverflow, there is a many-to-many relationship between Question and Tag. After running these symfony commands: ./symfony doctrine:drop-db ./symfony doctrine:build-db ./symfony doctrine:build-model ./symfony doctrine:build-sql ./symfony doctrine:insert-sql With the following schema: schema.yml Tag: columns: name: ...

how to remove html tags in php?

i posted some data using tinymce (in a symfony project).while retrieving back how can i remove html tags? strip_tags not working.. ...

how to get a formatted text output with no html tags (in symfony)?

I'm working on a first symfony project, i am using the sfWidgetFormTextareaTinyMCE widget for a form tinymce text area. It works fine, but while retrieving from database, instead of showing me the formated text, i have the <strong>,<p>,<br>tags in the text. help me please ...

Bash completion symfony

How can I make symfony completion in bash? Have ubuntu 9.10. It's hard to write own alias. Anyone know where can I find it? I find http://trac.symfony-project.org/wiki/BashCompletion - but it is for symfony 1.1. Is it compatible with 1.4 ? ...

How to implement Open Flash Chart 2 on Symfony

I'm trying to use Open Flash Chart 2 on my symfony project by including the ofc2 library on one of my controller's action. Unfortunately it doesn't work. When i call the action it prints nothing :'( There is a plugin for this, but it uses an outdated version of OFC. Anyone have had any success showing Open Flash Chart 2 on their s...

Returning records from 3 tables via a Join Table with Propel in Symfony

I have 3 database tables: article article_has_tag (2 FK's to the other tables) tag I currently show a list of articles with the article's tags shown underneath but the number of queries grows as the list gets longer. I want to loop over all the articles and get the tag objects from each one in turn. Can it be done in 1 propel query...

Question about an AJAX link and the dev and prod enviroments

Hi, i have this line below that shows a link to go the next page of a list. <a href="#" onclick="new Ajax.Updater('lista_miembros', '/frontend_dev.php/miembros/filtrar?page=2')">Next page</a> The problem: as expected, it only works in the development enviroment of the frontend (frontend_dev.php). My question: what should i to get it...

Symfony form's i18n and add_empty

I have this widget: $this->setWidget('slug', new sfWidgetFormDoctrineChoice(array('model' => 'MyTable', 'method' => 'myMethod', 'key_method' => 'myMethod', 'add_empty' => 'Select option'))); Ok, what should I do to translate the "Select option"? I can't use the __() helper inside the form, and adding that string into my XLIFF fi...

Symfony 1.4 : can't use flash method in prod environment

Hello, I'm using the setFlash and hasFlash methods of symfony 1.4 with WAMP 2.0 Locally with my frontend_dev app, all work fine. But in production environment, my test $this->forward404Unless($user->hasFlash('resultsArray')); fails. I thought that the flash methods where enabled by default. What can I do to make it works please ? Tha...

Symfony Migration - Remove mandatory from column

Hi there! I would like to cancel the mandatory of a field of my current schema. How can I accomplish that with a symfony migration? Thanks in advance, Best regards! ...

In Symfony how can you instantely cache the routing.yml?

I have a file located at [application]/config/routing.yml, when I change something in there, the changes aren't active. This probably has to do with the cache as when I go into that directory [cache]/[application]/prod/config the currently active file can be seen config_routing.yml.php. The lifetime of the cache is generally 86400 secon...

Accessing user session from a custom routing class

Is there some way to acces the user object from a custom routing class? I'd like to add a parameter when generating a url, and that parameter is inside the user session, so I need to access it. The only way I found to access is using the sfContext::getInstance()->getUser(), but it's known to be inefficient. Thanks! ...

php paging class

Can anyone recommend a good PHP paging class? I have searched google, but have not seen anything that matches my requirements. Rather than "rolling my own" (and almost surely reinventing the wheel), I decided to check in here first. First some background: I am developing a website using Symfony 1.3.2 with Propel ORM on Ubuntu 9.10. I ...

Passing values from action class to model class in symfony

I have a action class for saving some data to a database.In action class iam getting a id through url.I have to save the id in table. I am getting the id by $request->getParameter('id') I used this code for saving $this->form->bind($request->getParameter('question_answers')); if ($this->form->isValid()) { $this->form->save(); ...

php symfony and apache2 - inst't serving .phtml

Hi, I have a problem with apache2 settings (Ubuntu system). I would like to run symfony project on my localhost but instead of serving .phtml files, browser is trying to download files. this is my file .host: 127.0.0.3 test this is apache2/sites-available/default file < VirtualHost 127.0.0.3:80> ServerName test Document...