I have taken over a medium sized project that was written originally using RoR. The powers that be have decided that they want the web app, 'ported' to Symfony.
After looking at some of the RoR code, I suspect that RoR strongly "influenced" Symfony, as a lot of the idioms are shared - so I think that a 'port' of an app from one to the o...
I followed this tutorial (official documentation for symfony 1.4).
The project is created but the /web/main.css is empty. Is this normal?
I'm using Ubuntu 10.04
...
Hi there,
as you are aware, application strings change quite often. What I have done to solve this is I'm using a 'unique key' in my view, and then providing translations via a XLIFF file.
Default culture is en_US, other supported cultures include hi_IN
I have 'en' & 'hi' folders with messages.xml in my 'app/I18n'
A string in the view ...
I'm getting a weird error in symfony 1.4 with doctrine 1.2. My schemas seem to be normal. But whenever I execute the doctrine:build --all --no-confirmation --and-load task, it would output the error SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'default_edition_id' cannot be null. If I set notnull to false for the default_...
I want to make a deep copy/clone of a doctrine record in a symfony project.
The existing copy($deep)-method doesn't work properly with $deep=true.
For an example let's have a look at a classroom lesson. This lesson has a start and end date and between them there are several breaks. This classroom is in a buildung.
lesson-break is a one...
I've been playing around with this tutorial. It teaches you how to build a web app where people can find and post jobs using Symfony.
Symfony has two tutorials to make completely functional apps from scratch (and their online demos): Jobeet and Askeet.
I wonder if there are the same kind of tutorials for CakePHP and CodeIgniter?
By th...
How do you insert a link_to into the 'invalid' message of a regular Symfony form? My form extends the sfGuardUserForm:
class SignupForm extends sfGuardUserForm
{
public function configure()
{
...
new sfValidatorPropelUnique(array('model' => 'sfGuardUserProfile', 'column' => array('email')), array('invalid' => 'This email a...
Hello,
I have two classes with a relation one-to-many. And I want to make a nested form to enter an object and some of others which are linked to it.
But when I save the form, the key wich references my main class isn't update with the key of main class. However the other keys are created.
My schema :
Enfant:
connection: doctrine
...
I've been playing with Symfony's testing methods. They give you the results in the command line (for instance, green text is for OK and red text is for NOT OK). It also tells you the cause of the error.
Is there something similar to this in CodeIgniter and CakePHP?
...
I'm in the day 10 of Symfony's Jobeet Tutorial. Everything worked good, but when I tried to go to the index page: http://localhost:9090/frontend_dev.php
I got the following message:
sfPatternRouting Match route "job" (/job.:sf_format) for /job with parameters array ( 'module' => 'job', 'action' => 'index', 'sf_format' => 'html',)
2 In...
Hello,
I have made a nested form using the method 'embedRelation'. In a main form I have twelve child forms.
EDIT :
$subForm = new sfForm();
for ($i = 0; $i < 12; $i++){
$enfant = new Enfant();
$enfant->Locataire = $this->getObject();
$form = new EnfantForm($enfant);
$subForm->embedForm($i, $form);
}
$this->embedForm('n...
Hello,
I have a form where the primary-key must be filled by the user. But if he enters a value existing, I have the page with doctrine error 'Integrity constraint violation: 1062 Duplicate entry'.
I want to make an error message as the other key with
$form['myKey']->renderError()
I have tried to use sfValidatorDoctrineChoice :
$t...
Let's say I want to download a Symfony's complete app, for instance, Jobbet
I'll have everything necessary to run the app in my desktop but it wouldn't really work with an empty database. Is there a terminal command to create and fill the database with everything that the app requires?
...
I created a fixture file and the information is effectively updated in the database (I can see it in phpmyadmin), but when I open the page in the web browser there is some information lost:
JobeetJob:
job_sensio_labs:
JobeetCategory: programming
type: full-time
company: Sensio Labs
logo: sensio-lab...
I'm following the Jobeet Tutorial Day 7 for Symfony.
After finishing The Category Link step of day 7, the Sensio lab Web developer Item goes to the back (as you can see in the picture from the tutorial is at the top of the Programming category).
The item has id 1 so I don't really understand why it goes to the back (it becomes approxim...
Is there any bridge/native method to use the Bigtable / Cassandra DB arhitecture?
...
The prototype of embedRelation makes reference to an 'options' array (passed as $formArguments/$formargs).
Is it possible to pass an options array:
embedRelation("Model","ModelForm",$options_arr);
Where the options_arr contains form validator/widgets/etc to set for the relation?
$formargs['something']['publish_date'] = new sfWidget...
Hi !
I have a Product table with a field to store the price.
Each time, this price was changing, i need te keep the ancient value. So I have created a table called History to store the product id, the price and the date of changing.
I've also created this method in my product class to generate a new entry :
public function updateHisto...
When configuring my admin generator I created a table_method for my list view in order to join the correct tables and so on.
However, in my edit post / create post sections I have a rather extensive dropdown that is not joined at the moment. Is there an equivalent to table_method that I can use for these situations to specify the method...
I'm confused about how DQL works, and really need some help here.
I have three tables, called "Band", "Agent", and "BandAgent".
BandAgent is the middle table for a Many-to-many relationship, containing agent_id and band_id.
How can I retrieve all Agents related to a specific band_id using a DQL statement?
EDIT
This code works, but...