[symfony-users] frontend_dev.php dissapears

2010-02-26 Thread Parijat Kalia
Hey guys, while traversing to one of the pages on my website, the frontend_dev.php seems to disappear. It does exist when I traverse other pages, but the moment I traverse to this specific page, it disappears, and from thereon, if I traverse to any other page, it will not come back. Off course,

[symfony-users] Re: How to use framset with symfony?

2010-02-26 Thread Sameer Bhavsar
Hi All, To display the template in one frame I have following line of code: frame src=?php echo $sf_content ?/ But while accessing the page following error occurs: Action StackWorkorder/h1NewStackworkorder does not exist. My layout.php code is given below:

Re: [symfony-users] Re: How to use framset with symfony?

2010-02-26 Thread Tarjei Huse
Hi, On 02/26/2010 10:23 AM, Sameer Bhavsar wrote: Hi All, To display the template in one frame I have following line of code: frame src=?php echo $sf_content ?/ See: http://www.w3.org/TR/REC-html40/present/frames.html#h-16.2.2 The src attribute of a frame element should be a

Re: [symfony-users] Re: Custom logger via factory.yml?

2010-02-26 Thread Christian Hammers
Hello So instead of $logger-info() I should write something like this? $this-getEventDispatcher()-notify(new sfEvent($this, 'blah.log', array('loglevel'='info', 'msg'='hello world')); Well, that would not exactly be more elegant than: $logger = BlahLogger::getInstance()-info(hello world);

Re: [symfony-users] Re: Custom logger via factory.yml?

2010-02-26 Thread Daniel Lohse
It's longer perhaps but more elegant? You betcha! It doesn't create a new dependency in your code because your logger could also *not* be there and the code would still work. Cheers, Daniel On 26.02.2010, at 12:57, Christian Hammers wrote: Hello So instead of $logger-info() I should write

[symfony-users] Re: Does 1.4 or any plugin allow to configure Javascript (view.yml) by environment ?

2010-02-26 Thread Massimiliano Arione
view.yml is deprecated in favors of helpers used directly in the templates or methods called from actions. You can use a conditional helper that checks for sf_debug config variable (that's even better than rely on environments) cheers Massimiliano On 26 Feb, 00:43, Bruno Reis

Re: [symfony-users] Re: Custom logger via factory.yml?

2010-02-26 Thread Christian Hammers
Oh, if the logging does not work because classes go lost, I'd rather want the programm to terminate :) But thanks anyway, the event handling does not sound uninteresting, maybe I can use it for something else somewhen. bye, -christian- On Fri, 26 Feb 2010 13:42:08 +0100 Daniel Lohse

[symfony-users] Re: handle processForm()

2010-02-26 Thread verox
Anybody? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To

[symfony-users] database logging

2010-02-26 Thread Ámon Tamás
Hello, I like to log every user activity to log database table. Is there any solution for it? Or how can I make it? Thanks -- Ámon Tamás -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are

Re: [symfony-users] Re: sfAction Different In 1.4?

2010-02-26 Thread Земсков Юрий
He is extending sfAction, no sfActionS - so this is (was?) correct. Âû ïèñàëè 25 ??? 2010 ?., 23:08:36: Function name should be like executeIndex, but not just execute. On Feb 25, 7:07 pm, Darren884 darren...@gmail.com wrote: I get this error: Fatal error: Declaration of

Re: [symfony-users] Re: Filtering a list from the action

2010-02-26 Thread Javier Garcia
I finally get it works with this: $this-filter = new BirthdayFormFilter(array('name'=array('text'='Peter'))); Javi On 02/16/2010 05:35 PM, Javier Garcia wrote: I give you more code: I have this code below in the index template. The filter form (without Peter as default value, of course..)

[symfony-users] Re: sfAction Different In 1.4?

2010-02-26 Thread Tom Ptacnik
You probably want to extends sfActions (not sfAction) On 25 ún, 19:07, Darren884 darren...@gmail.com wrote: I get this error: Fatal error: Declaration of homeAction::execute() must be compatible with that of sfComponent::execute() in /var/www/vhosts/blackhawk.biz/

[symfony-users] Re: handle processForm()

2010-02-26 Thread Tom Ptacnik
Are you trying to do this while creating a new object, or editing an object? or both? In which method do you have this code? On 25 ún, 11:22, verox pawel.rz...@gmail.com wrote: Hello, Got some problem, Have name and letter in table, both string. I've generate admin page, now I'm trying to

[symfony-users] Re: symfony1.4 autoload : how does it work

2010-02-26 Thread Tom Ptacnik
Try to read this: - http://php.net/manual/en/language.oop5.autoload.php - http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files (Extending the Autoloading Feature) and after that it should be more clear, hope this help (hope I'm right :) On 25 ún, 15:16, samuel

[symfony-users] Re: need help on sfGuardPlugin

2010-02-26 Thread Tom Ptacnik
Do you want to use this plugin in one application for backend and frontend?, with different tables, or the same tables for both? On 26 ún, 06:27, Javier Garcia tirengar...@gmail.com wrote: On 02/25/2010 11:45 AM, ram wrote: Hi Fabien, I'm Ram from India. I'm using sfGuardPlugin in one of

[symfony-users] Re: frontend_dev.php dissapears

2010-02-26 Thread Tom Ptacnik
disappearing and appearing of the frontend_dev.php? must be magic ;) No, serriously where it dissapears? is it not on the disk? On 26 ún, 09:34, Parijat Kalia kaliapari...@gmail.com wrote: Hey guys, while traversing to one of the pages on my website, the frontend_dev.php seems to disappear.

[symfony-users] Re: Custom logger via factory.yml?

2010-02-26 Thread Richtermeister
What Daniel said.. Plus, for convenience you can always create a local log method on whatever object you're logging from that wraps the calls to the event- dispatcher. Then you have elegant and short. Daniel On Feb 26, 5:34 am, Christian Hammers c...@lathspell.de wrote: Oh, if the logging

Re: [symfony-users] Re: Does 1.4 or any plugin allow to configure Javascript (view.yml) by environment ?

2010-02-26 Thread Bruno Reis
Thanks a Lot Massimiliano, Can you send me a link to where I can read more informations about it? 2010/2/26 Massimiliano Arione garak...@gmail.com view.yml is deprecated in favors of helpers used directly in the templates or methods called from actions. You can use a conditional helper that

[symfony-users] Re: Doctrine Inheritance and Forms

2010-02-26 Thread Tom Ptacnik
I'm not sure, but I think you'll have to make a list of inherited/ child classes by yourself. On 24 ún, 11:11, m.s. marco.schierh...@googlemail.com wrote: I just started to use symfony 1.4 and Doctrine. (Used 1.0 - 1.2 + Propel a lot before). I thought to give Doctrine a try, because of the

[symfony-users] Re: Error on Exception Handling using Event Notifications

2010-02-26 Thread Tom Ptacnik
Try to show us the exception.. On 24 ún, 17:59, Bruno Reis bruno.p.r...@gmail.com wrote: I figured out it has nothing to do with the event handler. I´s happening on every page. On my error_404_action, I redirect to the homepage and it shows the uncaught exception message. Anybody knows

Re: [symfony-users] Re: Error on Exception Handling using Event Notifications

2010-02-26 Thread Bruno Reis
I found some threads saying it´s related to a bug on a windows component. Since we only use windows on dev environments, I´ve tested on other envs and it worked. So it´s ok now. Thanks. 2010/2/26 Tom Ptacnik to...@tomor.cz Try to show us the exception.. On 24 ún, 17:59, Bruno Reis

[symfony-users] Re: How does the local field for relation work ?

2010-02-26 Thread Tom Ptacnik
I don't know how do you understand, but this schema isn't correct at all. If you have some relation with local .( local: dinner_id ), you have to have a dinner_id in this table where the relation is specified Dinner: columns: dinner_id date: { type: timestamp, notnull:

Re: [symfony-users] sfAction Different In 1.4?

2010-02-26 Thread Gábor Fási
This is the header of sfComponent's execute(): abstract function execute($request); So drop the sfWebRequest, and it'll be fine. And by the way: it did not change, it is the exact same in 1.2. On Thu, Feb 25, 2010 at 19:07, Darren884 darren...@gmail.com wrote: I get this error: Fatal

Re: [symfony-users] frontend_dev.php dissapears

2010-02-26 Thread Gábor Fási
Check the referer, you probably have an incorrect url echoed there. On Fri, Feb 26, 2010 at 09:34, Parijat Kalia kaliapari...@gmail.com wrote: Hey guys, while traversing to one of the pages on my website, the frontend_dev.php seems to disappear. It does exist when I traverse other pages, but

Re: [symfony-users] frontend_dev.php dissapears

2010-02-26 Thread Alexandru-Emil Lupu
maybe in the url ... check the no_script_name and see if is set true / on / 1 On Fri, Feb 26, 2010 at 8:42 PM, Gábor Fási maerl...@gmail.com wrote: Check the referer, you probably have an incorrect url echoed there. On Fri, Feb 26, 2010 at 09:34, Parijat Kalia kaliapari...@gmail.com wrote:

Re: [symfony-users] Lime 2 Suggestion

2010-02-26 Thread Gareth McCumskey
I'm not sure if Lime 2 develop[ment will continue. Fabien just announced on Twitter that Symfony 2 will no longer use Lime but PHP Unit instead. On Fri, Feb 26, 2010 at 4:35 AM, Brandon Turner btur...@bltweb.net wrote: Bernhard (or anyone else), I have been playing around with Lime 2 Alpha and

Re: [symfony-users] Re: How does the local field for relation work ?

2010-02-26 Thread Mr Shore
It's quoted from here(an accepted answer): http://stackoverflow.com/questions/1603252/many-to-many-relation-with-attributes-in-refclass/1610399#1610399 2010/2/27 Tom Ptacnik to...@tomor.cz I don't know how do you understand, but this schema isn't correct at all. If you have some relation

RE: [symfony-users] How to use framset with symfony?

2010-02-26 Thread Sameer Bhavsar
Hi, To display the template in one frame I have following line of code: frame src=?php echo $sf_content ?/ But while accessing the page following error occurs: Action StackWorkorder/h1NewStackworkorder does not exist. My layout.php

Re: [symfony-users] Re: Possible SQL injection

2010-02-26 Thread Peter Peltonen
On Thu, Feb 25, 2010 at 12:50 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote: Hi Fabien, I am using Symfony 1.1 in which we are to create a session timeout of 4 hours but it is not working by changing in factories.yml. Regards Deepak Bhatia On Thu, Feb 25, 2010 at 3:58 PM, Fabien

[symfony-users] Symfony developer role available at SANParks, South Africa

2010-02-26 Thread Midiane
SANParks needs experienced Symfony PHP developer, based in Johannesburg or Pretoria, available to start immediately on mobile project. Email mi...@sanparks.org if you qualify. Thanks Midiane. -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Difficulty with setDefault() for sfWidgetFormDoctrineChoice()

2010-02-26 Thread Susan
Hello, I have an sfWidgetDoctrineChoice() form that I am trying to set the default value for. The value I have is the id (primary key) of the row I want to set to the default. It's being passed in as an option to the form. Here is my code: public function configure() {

Re: [symfony-users] Re: Possible SQL injection

2010-02-26 Thread Daniel Lohse
Just update to the latest symfony version, which is 1.2.12 in your case, and clear your cache. That's all. :) Daniel On 26.02.2010, at 15:37, Peter Peltonen wrote: On Thu, Feb 25, 2010 at 12:50 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote: Hi Fabien, I am using Symfony 1.1 in which

[symfony-users] Only one model per module for doctrine-generate-crud?

2010-02-26 Thread Roland Cruse
Hi symfony doctrine-generate-crud seems to build a module for each model (database table) with actions edit, delete, create etc.Using this task you can not add another model to the same module. The task will over write the edit, delete etc. actions. I see no options in the task for prefixing