symfony

Issues with adding FK relations via Doctrine Build Task

I've double-checked my schema, and its correct... infact doctrine also built it once.. and now its troubling me with some FK relations... I have checked for the data-types as well. All are int(4) or int(2) 2 Qs here: 1. is there an upper limit to the no of relations (dependencies/FKs) a table can have? I have upto 7 FKs in a tables 2. i...

Rendering same form repeated in Symfony for bulk insert

Hello, I been trying all day to do multiple insert for the same form based on a number and i couldn't go any where with it. I hope someone here would be help me out... am using admin generator on 1.4 doctrine. I have a form which i generated with only two fields. what am trying to do is, based on a number inserted the form will be repea...

Symfony 1.4 Response Object & Page Title

Is there a way to get page title in a layout? I would expect sfResponse::getTitle() to work, but it doesn't. ...

Symfony user framework design problem

Hello all, I'm looking for advice on how to tackle a design problem I've came up with. I'm currently using Symfony framework so I'll be using the names of Symfony classes. When a user becomes "authenticated" or their "credentials" change in the Symfony user class, a regenerate() gets called on the currently used storage class. The stor...

How to get url in symfony using url_for() helper , for the route with a path parameter like ...../:param

hi, I couldn't get it to work on symfony 1.4.5 I have a route : edit_page: url: /editpages/:page param: { module: pages, action: edit } and I want to get to url with a url_for() helper. <a class="float-right rounded-btn" href="<?php echo url_for('@edit_page'); ?>">Configure</a> this one just is giving me and : The "/edit...

Symfony Admin Generator - Raw HTML in Form Filter

Hi there! At my company, we had developed a athletes management solution, were each athlete is inserted in the application by administrators users. For the referred solution, it was used the symfony admin generator. On the second project iteration, one of the clients request was to turn the printed athletes list more legible. To accomp...

inline rendering of template + layout in symfony

I'm trying to process html email by rendering a template and layout inline, and sending the result. I can get a template to render inline, but wrapping it in a layout isn't working. This is what I have so far: $template = new sfPartialView(sfContext::getInstance(), 'email', 'send', 'my_template'); $template->setTemplate('my_template'); ...

images not showing up after changing the web folder to public_html

When moving my project onto a new server, I was required to change the public folder from web to public_html. In addition, I wanted the symfony public files to be in a public folder, public_html/symfony. So they would be accessed by going to the website www.mysite.com/symfony This was achieved by: class ProjectConfiguration extends s...

symfony fixtures: set ondelete: CASCADE on refclass table

Hi! I'm using symfony 1.4.5, Doctrine 1.2 and Mysql 5. In my schema.yml I have a few Many-to-Many relations which work great. But I need the joining table to have onDelete: CASCADE. Now for doctrine it is needed to add onDelete: CASCADE on the side where the foreignkey exists but since the refclass does not have any relations in the ...

[doctrine 1.x] Many to many relation on the same table

Hi! I'm trying to setup a m2m relation between 'Gabarits'. One gabarit can have many Gabarits ( called Options ) One gabarit can come from many Gabarits ( called OptionsFrom ) Here is my schema.yml: Gabarit: actAs: [Attachable] columns: libelle: { type: string, size: 255 } description: { type: clob } relations: O...

Symfony Admin Generator - New / Update

Hi there! I had used the symfony admin generator to create an web application for athletes management. One of the last client's requirement was to add a feature to notice the user and send an e-mail to the administrators when an athlete with the same number is inserted on the database. Until now, the column number of the Athlete table h...

Symfony - Swift Headers (HTML body messages)

Hi there! I would like to send an auto-generated email with HTML body from my application using Swift. Here is my current code: $message = Swift_Message::newInstance() ->setFrom(array('[email protected]' => 'John Doe')) ->setTo('[email protected]') ->setSubject('some subject'); ...

Why does Symfony not work well on shared hosting?

I read that Symfony does not work well on a shared hosting environment, why is that? In the tutorial I read you had to edit Apache configuration but it seemed that only enabled the uses of the Symfony debugger. ...

Order By, Group By - Problems

Ok, so here's the issue. Currently I'm using the symfony framework to develop a web app. I'm using MySQL in the backend but want to keep my queries in their doctrine format to avoid any problems if I ever need to change databases. In one section of the web application I'm looking for the last comment associated by any distinct user, s...

Setting Doctrine attributes in a task

I'm trying to set a Doctrine attribute in a task, but it doesn't seem to work. What I'm trying to set, is an attribute to disable Doctrine validation: $databaseManager = new sfDatabaseManager($this->configuration); $connection = $databaseManager->getDatabase('doctrine')->getConnection(); $connection->setAttribute(Doctrine_Core::ATTR_VA...

Sql: Unique field contraint (slug) across multiple tables (doctrine/symfony)

I have a number of tables that will be looked up using the url 'slug'. For example 'news' and 'blog' both have the 'slug' field, which is defined as a unique field in the doctrine database schema. Is there any way I can extend this uniqueness across both tables: for example if there is a news article with slug= "good-story" then it will...

php related error in linux terminal while setting up symfony framework

Hi i am trying to setup a new symfony framework project on ubuntu by following the documentation. But all the commands mentioned in the docs starting with 'php' give out the following error. The program 'php' is currently not installed. You can install it by typing: sudo apt-get install php5-cli bash: php: command not found. But php...

Order / Priority of development in Symfony

So I've decided after much debate and research to use symfony on my next project. To sum the project up, it is an LMS (Yes, I know there are pre-built ones such as moodle but they do not have what my particular company requires). There are many modules and issues to take into consideration. My question is in what order should one start w...

Couldn't locate driver named sqlite

symfony 1.2, doctrine, dsn: sqlite:%sf_data_dir%/db.sq3 When i am trying "php symfony dctrine:build-sql" i get this error, but on frontend all fine. Also i have tried to change ini file this way php -c "path to file" symfony doctrine:build-sql but get the same error Couldn't locate driver named sqlite ...

sfFacebookConnectPlugin: Authentication problem

Hi overflowers, I try to get the sfFacebookConnectPlugin to run by following the tutorial on the symfony homepage. Everything seems well configured. But when I try to login with sfFacebookConnectAuth/signin. I get the form error "The username and/or password is invalid.". I even don't know where to start with the debugging. First Ste...