[symfony-users] Doctrine to select record dates; Difficulty with where()

2010-01-14 Thread bretth
Hi there, I'm new to Doctrine and am trying to figure out why my Where statement isn't working. I have an object video, and in my videoTable I have this function public function getMostRecentVideos($num, $offset = 0) { return $this-createQuery()-where( 'Video.datetime_visible_start = ?',

[symfony-users] How to disable sfWebDebug in dev environment?

2010-01-14 Thread Sid Bachtiar
Hi, Can I run the website in 'dev' without sfWebDebug? I've set debug to false in the index.php but it's still there. -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this

[symfony-users] Re: Doctrine to select record dates; Difficulty with where()

2010-01-14 Thread bretth
sorry, soon after I posted this some helpful soul on IRC suggested capitalization on the alias as the issue. I should have had where ( 'video.datetime_visible_start thanks! On Jan 14, 6:52 pm, bretth brett...@gmail.com wrote: Hi there, I'm new to Doctrine and am trying to figure out why my

Re: [symfony-users] How to disable sfWebDebug in dev environment?

2010-01-14 Thread Nathan
In your apps/APPLICATION/config/settings.yml change your dev: .settings: web_debug: true to false. that's all. Best regards, Nathan -- nat...@nathan.gs : http://nathan.gs : http://twitter.com/nathan_gs On Thu, Jan 14, 2010 at 9:17 AM, Sid Bachtiar sid.bacht...@gmail.comwrote: Hi,

Re: [symfony-users] How to enable plugin standalone

2010-01-14 Thread Javier Garcia
On 01/13/2010 10:36 PM, DoRiaN wrote: Hello (i'm french, excuse me for my english), I work with sfForm standalone. I would like to enable sfDoctrinePlugin ? Is it possible ? How to do ? Thank you, Dorian To enable Doctrine

Re: [symfony-users] Modify sfGuardUserForm fields

2010-01-14 Thread Javier Garcia
On 01/14/2010 06:30 AM, ozgur ince wrote: you should do your changes in plugins\sfDoctrineGuardPlugin\lib\form\doctrine\sfGuardUserAdminForm.class or change the form class in plugins\sfDoctrineGuardPlugin\modules\sfGuardUser\config\generator.yml Hi, you should never modify the code or

Re: [symfony-users] Post comments

2010-01-14 Thread Parijat Kalia
Can you please explain this in detail, sorry but the statement is a little ambiguous to me! On Wed, Jan 13, 2010 at 7:05 PM, blissdrop andrei@gmail.com wrote: How can I add post_id invisible field to comment form? -- You received this message because you are subscribed to the Google

[symfony-users] Re: LDAP Plugin

2010-01-14 Thread DEEPAK BHATIA
I guess nobody has used this..;-) On Wed, Jan 13, 2010 at 1:09 PM, DEEPAK BHATIA toreachdee...@gmail.comwrote: Hi, Anybody implemented the LDAP Plugin for their project http://www.symfony-project.org/plugins/bhLDAPAuthPlugin Regards Deepak Bhatia -- You received this message because

[symfony-users] Re: Post comments

2010-01-14 Thread blissdrop
Thank you for reply. Here is the explanation: The task is rather trivial, I have posts and I want to add comments to posts. I've learned, how to add comment form to the single post page, but I cannot find out how to pass post_id to the comment create action and how to asociate comment with

Re: [symfony-users] Re: Post comments

2010-01-14 Thread Stéphane
I've managed something similar but still having a problem: I've modifyed the the form to add to it a widget to let user select the post related to this comment $this-setWidget('post', new sfWidgetFormDoctrineChoice(...) $this-setValidator then create a new action addComment to the post

[symfony-users] Re: Copying my project: errors with symbolic links

2010-01-14 Thread Tom Ptacnik
Which type of the partition in on the external disk? On 12 led, 13:59, Javier Garcia tirengar...@gmail.com wrote: Hi, to save my copy in an external disk i have use this: sudo cp /opt/lampp/htdocs/rs/* -R /media/disk-1/rs After that i get this error messages: cp: cannot create symbolic

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-14 Thread Tom Ptacnik
And what about to make a plugin with sfWidgetFormMassmilianoDate ? ;) or add this widget to sfFormExtraPlugin... On 14 led, 08:42, Massimiliano Arione garak...@gmail.com wrote: On 12 Gen, 14:40, dziobacz aaabbbcccda...@gmail.com wrote: Massimiliano maybe you could create a plugin from your

[symfony-users] Re: Call to a member function getTable() with an embeded sfForm

2010-01-14 Thread Tom Ptacnik
Maybe the profile row isn't in database when saving the form ... and symfony don't know how to create the row... look if foreign keys are set.. On 12 led, 16:07, Ahmed ghaliano2...@gmail.com wrote: any help please ? On 12 jan, 12:14, Ahmed ghaliano2...@gmail.com wrote: I have a UserForm

[symfony-users] Re: MySQL error with a little filter

2010-01-14 Thread Tom Ptacnik
I don't know why this error is showing, but I can try some little hack I would try to overide the buildQuery method in your formFilter and in this method I would compose some better values - some values which symfony can generate better sql query from then call the parent::buildQuery() method I

[symfony-users] Doctrine 1.2 and Oracle

2010-01-14 Thread Zuchuat Bertrand
Hi Jon, I have some problems with Oracle 10 and Doctrine 1.2 with symfony. my connection on databases.yml all: web: class:sfDoctrineDatabase param: dsn:'oracle:dbname=//url:1521/sid' username: web password: The user web has all privileges

Re: [symfony-users] Have it so if a user doesnt fill in a field it stays as it was?

2010-01-14 Thread Alexandru-Emil Lupu
what do you mean? if a user does not complete a field, and validation stop the process to have the password field filled in with previous entry? i yes, then i am not sure you can. also ... is not a good practice AFAIK. Alecs On Thu, Jan 14, 2010 at 1:44 AM, Darren884 darren...@gmail.com wrote:

[symfony-users] It would be useful incorporate a forum in jobeet tutorial

2010-01-14 Thread porquero
I'm reading jobeet tutorial and I have had some doubt in specific days, So I try to find the response in this group but there are a lot to see. Well I think that would be useful incorporate a forum in every day (like php's manual). It helps -- You received this message because you are subscribed

[symfony-users] Re: It would be useful incorporate a forum in jobeet tutorial

2010-01-14 Thread porquero
It Helps to organize information for jobeet tutorial. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to

[symfony-users] redirection in sfGuardPlugin or sfDoctrineGuardPlugin

2010-01-14 Thread l3ia-etu
hello, i would like the enduser, after logged on, go to the edit page of his profile: i've modified the file: plugins\sfDoctrineGuardPlugin\modules\sfGuardAuth\lib \BasesfGuardAuthActions.class.php public function executeSignin($request) .. //return $this-redirect('' !=

Re: [symfony-users] How to disable sfWebDebug in dev environment?

2010-01-14 Thread Eno
On Thu, 14 Jan 2010, Sid Bachtiar wrote: Can I run the website in 'dev' without sfWebDebug? I've set debug to false in the index.php but it's still there. http://tinyurl.com/ycvj9mo -- -- You received this message because you are subscribed to the Google Groups symfony users group. To

[symfony-users] Re: redirection in sfGuardPlugin or sfDoctrineGuardPlugin

2010-01-14 Thread l3ia-etu
ok, i've found the solution: app.yml: all: sf_guard_plugin: success_signin_url: /user/edit and public function executeEdit(sfWebRequest $request) { $sf_guard_user = $this-getUser()-getGuardUser(); instead of: //$this-forward404Unless($sf_guard_user = Doctrine::getTable

[symfony-users] Re: Have it so if a user doesnt fill in a field it stays as it was?

2010-01-14 Thread Darren884
HI basically I want to make it so as if a user is filling out their account options if they don't change their password it stays as it is. This is very common with profile sites and such. On Jan 14, 6:17 am, Alexandru-Emil Lupu gang.al...@gmail.com wrote: what do you mean? if a user does not

[symfony-users] Re: Advanced Forms Example

2010-01-14 Thread Fabrizio
This problem affects me too. Nobody can give some help / info? How to add delete link with embedRelation() ? On 13 Gen, 17:29, axel at axel.zu...@gmail.com wrote: hi list, I'm using embedForm() and embedRelation() (described

[symfony-users] Re: Advanced Forms Example

2010-01-14 Thread axel at
I found a (very dirty) solution but for now it works: I wrote a renderTextWidget: class renderTextWidget extends sfWidgetForm { public function configure($options = array(), $attributes = array ()) { parent::configure($options, $attributes); $this-addOption('template', ); }

Re: [symfony-users] Re: Post comments

2010-01-14 Thread Stéphane
My problem was a pecbak one :-) I was speaking about executeCreate instead of executeNew ! After changing this, it all works fine :-) Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! 2010/1/14 Stéphane

[symfony-users] how can I check the name of module and action in layout ?

2010-01-14 Thread dziobacz
I would like to do menu like on this site: http://www.benchmark.pl/ Clicked menu has got orange color. So I think I have to do something like that for example (where id is CSS id): if (module/action = 'firm/index') echo id='menu_index_clicked' else echo id='menu_index' if (module/action =

Re: [symfony-users] how can I check the name of module and action in layout ?

2010-01-14 Thread Javier Garcia
On 01/14/2010 08:51 PM, dziobacz wrote: How can I check on the layout current module and action which use this layout ? Hi dziobac: sf_context-getModuleName() and sf_context- getActionName() Javi -- You received this message because you are subscribed to the Google Groups symfony users

[symfony-users] Re: how can I check the name of module and action in layout ?

2010-01-14 Thread tirengarfio
Well put $ before both.. On Jan 14, 8:55 pm, Javier Garcia tirengar...@gmail.com wrote: On 01/14/2010 08:51 PM, dziobacz wrote: How can I check on the layout current module and action which use this layout ? Hi  dziobac: sf_context-getModuleName() and sf_context- getActionName() Javi

[symfony-users] Re: Having trouble modifying filters.

2010-01-14 Thread Darren884
Hi guys, I had to actually add an argument to the original ConfigurationModelGenerator file and mimick the getForm() function to pass options. I have no idea why this wasn't implemented in the first place but who knows. On Jan 13, 3:04 pm, Darren884 darren...@gmail.com wrote: In my form I use

[symfony-users] Re: how can I check the name of module and action in layout ?

2010-01-14 Thread dziobacz
thx people !! :) On 14 Sty, 20:57, tirengarfio tirengar...@gmail.com wrote: Well put $ before both.. On Jan 14, 8:55 pm, Javier Garcia tirengar...@gmail.com wrote: On 01/14/2010 08:51 PM, dziobacz wrote: How can I check on the layout current module and action which use this layout ?

[symfony-users] Re: Having trouble modifying filters.

2010-01-14 Thread Darren884
Actually that did not work. This is a flaw in Symfony itself, there is no way to pass values to the configre() method in the filters class. This needs to be fixed. On Jan 14, 12:11 pm, Darren884 darren...@gmail.com wrote: Hi guys, I had to actually add an argument to the original

[symfony-users] widget multiple option

2010-01-14 Thread Gabo
Help!! I have this in schema: documents_users: columns: document_id: { type: integer } user_id: { type: integer } created_at: { type: timestamp } y en the form, i change the widget user_id for this: 'user_id' = new sfWidgetFormDoctrineChoice(array('model' =

Re: [symfony-users] Re: Having trouble modifying filters.

2010-01-14 Thread Daniel Lohse
sfFormFilter does have setOptions as it's only a subclass of BaseForm. Daniel On Jan 14, 2010, at 11:08 PM, Darren884 wrote: Actually that did not work. This is a flaw in Symfony itself, there is no way to pass values to the configre() method in the filters class. This needs to be fixed.

[symfony-users] Re: Having trouble modifying filters.

2010-01-14 Thread Darren884
Yes but how do I call the sfFormFilter object? I had tried $this- configuration-getFilterForm but it runs the class again. On Jan 14, 2:56 pm, Daniel Lohse annismcken...@googlemail.com wrote: sfFormFilter does have setOptions as it's only a subclass of BaseForm. Daniel On Jan 14, 2010, at

[symfony-users] Re: Modify sfGuardUserForm fields

2010-01-14 Thread Jose San Gil
thanks to both of you. I have been trying to keep the plugin without changes and your solution worked. Actually was very easy. I just override the sfGuardUserAdminForm.class.php and modified the validation of the 'permissions_list' field. It doesn't work before because I was trying to change

[symfony-users] Admin generator - filtering the display columns

2010-01-14 Thread shiddot
Hi, I am making use of the admin generator in Symfony 1.4, which is 99% working as I want it to simply using the options in the generator.yml config file. The problem I have is that I wish to specify which columns are displayed in the list view using a filter (as opposed to configuring them in

[symfony-users] Open an Excel file

2010-01-14 Thread bibijosh
Hi, I'm quite new to Symfony, and not really good at php in the first place. So if someone could give me a hand here. Here is what my website does for now : - Open an explorer window so the user can upload an excel file - Modify that file - Save it on my server. Here is what I would like to

[symfony-users] sfWidgetFormPropelChoice appears as ul class=checkbox_list

2010-01-14 Thread Doraemon
In the documentation: http://www.symfony-project.org/cookbook/1_2/en/make-a-choice It shows the checkbox in a line, however, when I try it, it appears in an unordered list. My code: $this-widgetSchema['category'] = new sfWidgetFormPropelChoice(array( 'model' =

Re: [symfony-users] sfWidgetFormPropelChoice appears as ul class=checkbox_list

2010-01-14 Thread Alexandru-Emil Lupu
Maybe by adding some css? Alecs sent via htc magic On Jan 15, 2010 6:40 AM, Doraemon theoneandonlydorae...@gmail.com wrote: In the documentation: http://www.symfony-project.org/cookbook/1_2/en/make-a-choice It shows the checkbox in a line, however, when I try it, it appears in an unordered

[symfony-users] Deployed project does not load any javascript file

2010-01-14 Thread domnuprofesor
Hi there! I just finished a project and I deployed on a server using symfony built in deploy tool. Everything is ok with the exception that NO JAVASCRIPT FILE IS LOADED. The js files are on the server in /web/js. I don't get a failed request to the files, it just does not request the files. On

Re: [symfony-users] Admin generator - filtering the display columns

2010-01-14 Thread Daniel Lohse
Have a look into your cache/frontend/.../autoYourModuleName/lib/ folder. You can not only configure the admin gen via the generator.yml but also via PHP. There should be a method in one of those files inside the folder named getListDisplay which you'd have to override in your own code.

Re: [symfony-users] Deployed project does not load any javascript file

2010-01-14 Thread Alvaro Videla
have you tried checking the HTML code of your page and see if there are some script tags including the Javascript? On Jan 15, 2010, at 3:24 PM, domnuprofesor wrote: Hi there! I just finished a project and I deployed on a server using symfony built in deploy tool. Everything is ok with

[symfony-users] Re: Deployed project does not load any javascript file

2010-01-14 Thread domnuprofesor
yes, of course I cheked the html code... No script tag is generated. Firebug reports no JS files loaded nor any js request that could have failed. So, no requests for js files are performed whatsoever. Any ideas? On Jan 15, 9:29 am, Alvaro Videla harryjek...@gmail.com wrote: have you tried