symfony

Symfony form binding problem

Hi, i have some difficulties in understanding why my symfony form doesn't bind properly with the data from request... The action: public function executeSendEmail(sfWebRequest $request) { $history_id = $request->getParameter('id'); if($request->isMethod(sfRequest::POST)) { print_r("POST"); ...

What's the symfony way to set a javascript variable?

<script type="text/javascript">var name="value";</script> I need it to be executed before another file included by use_javascript('name.js'); How to do it in symfony? ...

Symfony sfDoctrinePager with multiple tables

I was wondering how to get this to run. In my application I have a Category table and Product table. I need to have a pager which combines both Categories and Products for display in one list (first categories then products). Is there a way to get this going ? I tried left joining in the pager's query, but doesn't seem to do the trick. ...

Can you recommend some online resource that have deep insight for the form framework of symfony?

I'm now reading this tutorial: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/10 But I want to know more of it under the hood,like the design pattern/principles. ...

disable layout for sfDoctrineGuardPlugin in Symfony

How could I prevent mentioned plugin's login form from using default layout? I am aware of this question, but that answer doesnt work for me. For starters, there's no signin module in modules dir, probably plugins handle it in different way, I dont know. Just learning symfony. Thanks in advance :) ...

How to increase the session timeout in Symfony

Hi there! I would like to know how to increase the session timeout in symfony. Is it enough to only adjust the symfony configuration settings or must I also configure anything in my php.ini file? Thanks in advance for the help, Best regards! ...

How can I refer to different environment's inside Symfony's ProjectConfiguration.class.php

I have a staging and development environment on the same machine. I would like to configure a different memcached port in ProjectConfiguration.class.php depending on my environment. I imagine its not safe to use $SERVER['HTTP_HOST'] inside of the ProjectConfiguration file because that won't account for tasks run from the command line. W...

Symfony + doctrine + one-to-many relationships

Hi everybody. I need a one-to-many relationships for my sf 1.4 + doctrine 1.2 project. I copied the relation just like this: User: columns: id: type: integer(4) primary: true autoincrement: true contact_id: type: integer(4) username: type: string(255) password: type: string(255) Ph...

Issues with doctrine build in Symfony

I am getting stuck with this Symfony command after following the Jobeet tutorial on their site. After running the build model command, here's what I get: $ php symfony doctrine:build --model doctrine generating model classes file+ /private/var/folders/yX/yXtbVXwPHcCUpfC-n06OAU+++TI/-Tmp-/doctrine_schema_56533.yml ...

Symfony Max Allowable Size Error

I just scaffolded a new module and when I save using the generated form I get: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 19456 bytes) in /Applications/MAMP/htdocs/ats/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Hydrator/Graph.php on line 404 Any ideas why? ...

What framework would allow for the largest coverage of freelance developers in the media/digital marketing sector

This question is not about which is the best, it is about which makes the most business sense to use as a company's platform of choice for ongoing freelance development. I'm currently trying to decide what framework to move my company in regarding frameworks for web application work. Options are ASP.NET MVC Django CakePHP/Symfony etc...

Symfony app not sending mails (mails not being delivered)

I am running Symfony 1.3.2 on Ubuntu 9.10 I have set up a test action to send an email to my self. The action is executed allright, and there are no errors, however the mail never arrives. I have tried the same action for this website, on an XP machine, and the mail gets delivered correctly. I have set up my php.ini correctly (i.e. as ...

How to deal with m2m relationship(posts and tags) by doctrine(in symfony)?

posts and tags have a many-to-many relationship(pretty much like stackoverflow),so the code to do it without an ORM should be: $dml = "insert into posts(title,body,created) value($title,'{$_POST['post-text']}',now())"; mysql_query($dml,$con); $pid = mysql_insert_id($con); //deal with tags if(isset($_POST['tagnames'])) { $tags = preg_s...

Nestedset in Admin Generator

Hello, in a table "list" i save the id of another table, list also act as a nestedset. In a form i can add a child to a root. I set the value of the root as hidden field in the form. So in doSave when he detected a value in the hidden field, he do this, $parent = Doctrine::getTable('list')->findOneById($this->getValue('parent_id')); $...

symfony - log custom propel query

hi, we using symfony 1.0. We have an module work with Propel objects. The sql-querys are visible in the symfony-debugbar under the "DB" menu. My problem is that we also use custom sql-querys via propel::getRS("select ...") This querys are not visible in the debug bar. Does anyone have an idea how to do that? ...

Disable a plugin for a module on Symfony

Hi everyone, I am developing an application using Symfony 1.4. Is it posible to disable a plugin just for one module? Thanks in advance. ...

Symfony debug toolbar working intermittently

I am using SF 1.3.2 with Propel ORM on Ubuntu 9.10 Recently, my debug toolbar has been working intermittently, sometimes, for no apparent reason, clicking it does not display/hide the debugging windows, forcing me to resort to looking directly at the log files. AFAIK, nothing has changed on my machine. Is this a know bug, are there wor...

Symfony forms question (restoring selected value of a dynamically populated sfWidgetFormSelect widget)

I am using Symfony 1.3.2 with Propel ORM on Ubuntu 9.10. I have developed a form that dynamically populates a select widget with cities in a selected country, using AJAX. Before the data entered on the form is saved, I validate the form. If validation fails, the form is presented back to the user for correction. However, because the c...

Validation/binding in Symfony Ajax form submission?

Hi, I'm using Symfony 1.4. I'm posting a form via Jquery ajax to an action which seems to work fine except that it's unable to bind the form and access the variables in the normal symfony way: if ($request->isXmlHttpRequest()) { $this->form = new MessageForm(); if($request->isMethod('post')) { $this->form->bind($r...

symfony routing problem

I have mp3 catalog portal and I want to customize my urls. I used url for downloading songs - /download/song/:song_id But now I want url to look like /download/song:song_id - symfony doesn't recognize this pattern, :song_id parameter substitutes in url as is, so I get /download/song:song_id instead of f.e. /download/song14 ...