symfony

Symfony 1.3: the .css and images are not loaded in production.

Hi, I have deployed my symfony app into a shared server. The problem: for example, the images and the .css of the default page that says ok Symfony Project Created Congratulations! You have successfully created your symfony project. Project setup successful ... are not loaded. I read this but it's not enough for me.. What should I...

Ruby-on-Rails equivalent to ORM Designer for Symfony?

In Symfony i just have to create models with ORM Designer and export it to symfony as a schema.yml and then use a symfony command to create tables, models and forms. I wonder if there is an equivalent to the RoR so that you dont have to create models manually by hand? It saves a lot of time using GUI for this kind of tasks and it is le...

How can I easily pass all the variables from a template to a partial in Symfony with output escaping on?

It there an easy way to pass all the variables a template file has access to onto a partial when I have output escaping on? I tend to create a template file, then refactor things into a partial at some point and it would seem that there would be an easy way to just pass all the same variables from the template to the partial and be done...

What is better for web development Python+Django or PHP+Symfony ?

What is better for web development Python+Django or PHP+Symfony ? And why? ...

Symfony dynamic subdomains

Hi all, I'm trying to match subdomains to a customer id in symfony. i.e. i have customer1.example.com and customer2.example.com Domains are stored in a table. When a user goes to customer1.example.com, I would like to get the subdomain, look up the domain name in the database, once matched, it will then deploy the app config for that...

Configure Symfony for use with Memcached

I have 2 Symfony applications (1 using 1.2.x, another using 1.4.x and both using Propel) that need to share some specific session information. Although I have no experience with memcached, my sense--after some reading--is that it may be able to serve as an external (FAST) repository that each app could read and write to. Unfortunately, I...

setting a default in sfwidgetformchoice

I have an embedded form with a choice widget. I'm trying to pass a default value from the main form to the widget. I'm trying to pass the value to the form as an option, then once I have it in the embedded form do I just do something like: new sfwidgetformchoice(array(...,'default' => $this->getOption('default')) doesn't seem to wor...

Symfony sfDoctrineGuard plugin sfGuardUser module

When using sfDoctrineGuard plugin, it automatically generates the backend administration functionality where I can edit users of the system and assign them permissions. So I visit http://.../backend_dev.php/sf_guard_user/:id/edit where I am presented with the user's information including the available permissions to select. By default ...

Symfony with only FTP access

Hello, I'm currently developing on my local pc, to which I have complete access of course. However to my production server I have only FTP access. Now, this step http://www.symfony-project.org/getting-started/1_4/en/05-Web-Server-Configuration On Symfony's installation guide, suggests that I need to edit the httpd.conf I was wonder...

Symfony and doctrine searchable sfDoctrinePager (symfony 1.4)

Can someone help me on paginating results with sfDoctrinePager? $articlesResults = Doctrine::getTable('Article') ->getTemplate('Doctrine_Template_I18n') ->getPlugin() ->getTable() ...

Symfony test that runs before any other tests?

Is there a way to create test that is running before any other tests in the 'test' folder. I'd like to create a test that checks the php.ini settings before any other tests are run. Thanks Ralph ...

How to remove specific dql part in a doctrine Doctrine_RawSql query ?

i have read this http://stackoverflow.com/questions/1567652/doctrine-how-to-remove-part-of-a-where-clause-from-select-query-inside-listener but, i still cant see how to remove specific part, this is not explicitly written, can some one explain me how ? a sample of my Doctrine_RawSql $a = new Doctrine_RawSql(); $a->select...

Symfony 1.4 and global variables

I've got a very old php application (1999) that has been worked on during the last ten years. At this point the app starts to show it's age so i'm in te progress of migrating to a "new" framework, symfony 1.4. But since the app is very large, i cannot do this at once. So i'm planning to wrap the old app into the new symfony app, and conv...

Check if hydrated doctrine result is NULL

Hi, I'm trying to check if a result in my DQL is NULL. I got the following DQL query: $q = self::createQuery("l") ->select('i.*, s.aantal, m.naam, c.cat_naam, a.app_id') ->from('InstalledBase i, i.Spare s, i.Apparaat a, a.Categorie c, a.Merk m') ->execute(); return $q; Now i want to check if the s.aa...

PHP Symfony + One-to-Many Relationship + Result Caching

I am getting unexpected behavior (to me!) when defining a one-to-many relationship with Symfony 1.4. Here is a simple example which demonstrates the behavior, having an Employer table and an Employee table: one Employer can have many Employees. The YML schema file is as follows: Employee: columns: id: { type: integer, primary: tru...

Removing the cache of a contextual partial in Symfony 1.4

I've stumbled recently upon a problem. I have several partial which are in several actions and have different way of displaying data, hence I used the contextual option in cache.yml as such : _list: enabled: true contextual: true Now I needed to remove the partial cache when the data was updated, which is normally pretty easy when...

Is there an easy way to get the ServerName in Symfony?

I have been searching for an easy way to get the ServerName of the machine where Symfony runs in Symfony (so that my app adapts when it is used on a host with a different ServerName), but I couldn't find one. I created a variable in app.yml and I fetch it, but I still wonder if there is no easier way to do this. How are you doing this? I...

Symfony plugin development

Can anyone point me towards a good tutorial/documentation on writing symfony plugins? I'm trying to write a plugin for paypal using doctrine and sf 1.4. Thanks ...

Why is my Symfony site so slow? Can someone decipher this pingdom?

my site is really really slow, 4603prospect.com? Sometimes its ok, sometimes its slow. I am caching thumbnails, I dont understand what to make of this pingdom report.... http://tools.pingdom.com/?url=4603prospect.com&treeview=0&column=objectID&order=1&type=0&save=false Thanks Todd ...

Can Symfony simply reload a page request?

I have an app that receives a request from another app. It detects a value on the query string, checks that value against a cached value and, if they don't match, it needs to clear its cache and reload the page (establishing a new cache). Unfortunately, I can't find a way to tell Symfony to redirect to the current page in exactly the sam...