symfony

Looking for another Framework.. Which one should I pick?

I have been using CodeIgniter for about a year now, but I feel that I have spent too much time building things that should be native. My own version of it is pretty cool and has almost everything I have ever used to build a web, in a way that it is reusable, but still lacks power and every time I learn something new (like TDD, or ORM), I...

Doctrine - getChildren() with conditions?

Hi, I'm trying to write a basic plugin for the Symfony based CMS Diem. I'm trying to list of the child pages for the current page, which I have managed to do: $page = $this->getPage(); $this->subpages = $page->getNode()->getChildren(); However, I'm unsure of the syntax to use in order to filter the child records with conditions. I ...

symfony 1.4x and sfjQueryPlugin

Hello, I want to install sfJQueryReloadedPlugin in my project. I have read on the official site that is the plugin will replace sfJQueryPlugin (which doesn't work with the most recent versions of symfony). But I have an error : it tells me this plugin isn't support by symfony 1.4 and it's a plugin to symfony 1.0. So I want to know if ...

Confused between Language & Culture! :(

I'm repeatedly getting confused between Language & Culture in Symfony. - I'm setting culture as (en_US) which I guess is correct - but translation files are created for a language (en) - also, when using translation in the database, the lang=en I have a model whose definition is as follows: Option: package: Options tableName: Com_O...

Test that each page doesn't exceed allowed SQL count in Symfony?

I wish I could have an isSQLCountLessThan() function or something. $browser = new sfTestFunctional(new sfBrowser()); $browser ->get('/some/page') ->with('response')->begin() ->isStatusCode(200) // ... ->isSQLCountLessThan(20) // imagine how cool :) ->end(); Is there a way to have such? ...

Symfony 1.4x and sfTCPDFPlugin

I have installed sfTCPDFPlugin in my project, but when I try to test if the installation is alright (with the source found on the official site) I get the error: Fatal error: Class 'TCPDF' not found in C:\wamp\www\mairie\plugins\sfTCPDFPlugin\lib\sfTCPDF.class.php on line 12 How can I fix it? ...

Strange file name as object id #5.

Hi All, I am using symfony1.1. In my app I am required to upload some image files through admin and store their content as blob in DB. Here's how I am doing it, 1. Getting the fopen handle on the uploaded file. 2. Pass this to stream_get_contents($handle); 3. Store the content in as blob. Everything works fine on WinXP, but on live se...

Retrieve related objects with Doctrine and Symfony

I searched for a long time, but I don't manage to retrieve two related object in one query. I am using Doctrine and Symfony (uses Doctrine by default). Here is a part of my schema.yml: Member: columns: ...some fields... Report: columns: member: { type: integer, notnull: true } ...some fields... relations: M...

In symfony forms how I can validate a field (i.e. password) querying the db for the right value ?

Newbie question. I've created a very simple LoginForm class in symfony. It checks if the user inserts the username and the password in the field and It work as expected. // UserLoginForm :: configure() $this->setWidgets(array( 'username' => new sfWidgetFormInputText(), 'password' => new sfWidgetFormInputPassword(), )); $this->setV...

Different version of the cache in Symfony

I'm new in Symfony and I have a problem with logical code organisation. The problem is connected with cache and different version of webpage for guests, logged in users and owner. For example. I have 'user' module, which has 'show' action, and the URL is /user/show/:id and URL is the same for every visitor. But the content of the page ...

What's the difference between Partial and Slot in Symfony?

I'm new to Symfony. The two concepts Partial and Slot seem the same for me. Both of these two features replace placeholders in template with actual markup. When should I use Partial and when should I use Slot? ...

Symfony and Doctrine: sluggable behaviour: field called "slug" is not created

I have this model: Usuario: actAs: Sluggable: unique: true fields: [nombre_apellidos] canUpdate: true inheritance: extends: sfGuardUser type: simple columns: username: type: string(128) notnull: false unique: true nombre_apellidos: string(60) sexo: boolean...

Symfony - name based virtual servers on localhost - is this possible?

I am rapidly coming to the conclusion that this is not feasible, although for some reason, people - most likely who have not implemented the 'advice' they give, seem to think this is possible. The scenario is quite straightforward. I am developing symfony websites on my local dev machine, running Ubuntu 10.0.4 LTS. I want to be able to ...

Symfony installation problems

I'm trying to set up Symfony on my 64-bit Vista laptop that's using Zend Server CE for an all-in-one PHP stack. I'm trying to configure it with Netbeans as the IDE but I keep getting an error when I try to create a Symfony project; I've pointed it to my PHP.exe file located in C:\Program Files (x86)\Zend\ZendServer\bin\php.exe and my sy...

Symfony doctrine data-load segmentation fault

Hi guys, I'm working through the Symfony Jobeet tutorial and am getting a segmentation fault when trying to load data from my fixtures files. PHP 5.2.6-1+lenny8 with Suhosin-Patch 0.9.6.2 (cli), S symfony version 1.4.5 I'm using the Doctrine plugin. My fixtures below: /data/fixtures/categories.yml JobeetCategory: design: name:...

Symfony admin generator - add link on title

I am currently using the Symfony admin generator to implement a management web application. I would like to know if there is a way to add a link on the title section of the generator.yml file. As example: edit: title: Configurations > Officials | "link to another module" ...

Security.yml is_secure false not working

Hi, i'm working in a webservice built on top off symfony framework. Lately i was trying to make curl requests to a module but it gave me 500 error code reply asking for login and password, i looked inside module and it had the config folder with the file security.yml with this contents : default: is_secure: false What's wrong? why...

Symfony change class name for widget used when generating forms

I have a little question re Symfony and the automatic creation of forms. Basically what I need to do is to change the class name of the widget which gets used when creating a representation of a database field of type data/time. Currently its creating a sfWidgetFormDateTime() widget however I would like it to generate a widget from a cl...

Symfony form get user id

In order to filter the available options on one section of my web application, I would like to get the user object at the form object. I found some information about possible ways to do that (using sfContext, for instance) but some users discouraged this approach. What is a possible manner to achieve my purpose? ...

Doctrine relation lost on record update

I'm using Symfony and Doctrine, and have several many-to-many relations that work fine. But there is a table called "document" that holds documents that can relate to several kind of contents, and has an admin section of it's own. Whenever I update a Document, every relation it had to the rest of the tables is lost. I Googled it for a...