Re: [symfony-users] Re: sfDoctrineGuard translation

2009-12-28 Thread Daniel Lohse
For your example it's pretty clear that symfony can't find the translations. And sure enough, you forgot to add the catalogue to the __() method call. Plugin or not, it doesn't matter. In the signinSuccess.php change this: __('Forgot your password?') to this: __('Forgot your

[symfony-users] Re: How to delete uploaded images when deleting records

2009-12-28 Thread ilcaduceo
I try the code and it's correct! I understand that this method is in the Doctrine documentation, and also I found other useful methods... Thanks! On 24 Dic, 22:15, ilcaduceo ilcadu...@gmail.com wrote: Yes i'm storing file paths in the database and the photos in the filesystem... I'm using

[symfony-users] Next Top Symfony's Tutorials

2009-12-28 Thread roberto german puentes diaz
Results for now : http://spreadsheets.google.com/viewanalytics?formkey=dEg5anBBdnViR01iS2dIbW1ZYjI2RlE6MA -- Cr. Puentes Diaz MP 10.12726.9 Córdoba - Argentina www.puentesdiaz.com.ar/blog/ www.puentesdiaz.com.ar/blog/novedades www.twitter.com/puentesdiaz Linux User n° 441474

[symfony-users] Re: Error using sfFacebookConnectPlugin and sfGuardPlugin

2009-12-28 Thread Andrés Cristi
Yes, i'm testing on an internet-accessible server. I will see if there's something wrong on the configuration of the application on facebook. Thank's On 24 dic, 17:00, Fabrice Bernhard fabri...@theodo.fr wrote: Are you testing on an internet-accessible server ? To get the Facebook uid, you need

[symfony-users] Re: approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?

2009-12-28 Thread ScherlOMatic
Hi, maybe you could explain us a little bit more, cause I couldn't imagine what you want to do. So please describe the scenario. On 28 Dez., 09:42, dziobacz aaabbbcccda...@gmail.com wrote: I would like to approve comments clicking on checkboxes using AJAX (without refreshing page). Screen

[symfony-users] Passing Params to Routes

2009-12-28 Thread Rob Wilkerson
I have a defined route that displays a dynamic page: page_show: url: /:domain_slug/:slug class: sfPropelRoute options: model: Page type: object method: doSelectByDomain param: { module: page, action: show } requirements: sf_method: [get] This works great, but

[symfony-users] Re: approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?

2009-12-28 Thread alexmm
I need a form in which I will have so many checkboxes as rows in table. I know how I can do that in normal php (code in my first post), but I don't know how/should I do that using Symfony forms ? Do you understand ? xD On 28 Gru, 14:15, ScherlOMatic stefan.scherbich...@gmail.com wrote: Hi,

Re: [symfony-users] approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?

2009-12-28 Thread DEEPAK BHATIA
I generally use remote function for the same. ?php echo checkbox_tag('selectdate', $currentdate, array('rich' = true, 'onchange'= remote_function(array('update' = 'common_area','url' = 'home/homeselectdate','script' = true,'with'='id='+this.value; ? ?php echo checkbox_tag('option_a', 'yes',

[symfony-users] Re: Symfony 1.3 - Range year

2009-12-28 Thread mattsister
In my opinion, I don't think that is suitable use a calendar widget to choose a birth date. It should be used to choose a date in the near past or in the near future, and for forms where the date is not sure, so the user need a calendar to make a choice. I think that picking your birth date is

Re: [symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread Alexandru-Emil Lupu
A stupid ideea: launch your nb using sudo. So, you do not need to exec your task using sudo :) Anyway, the chown is your friend. sent via htc magic On Dec 28, 2009 3:52 PM, mattsister matt...@gmail.com wrote: My question is: Why you have to be super user to deal with your own code? I think you

[symfony-users] Re: How to delete uploaded images when deleting records

2009-12-28 Thread ilcaduceo
I have another problem, when i update the record, then the old photo isn't deleted itself, but it remain in the filesystem. How can i delete the old photo or replace it with the new photo? I try: public function postUpdate($event) {

[symfony-users] Is it possible to define a sfPropelRoute with multiple objects??

2009-12-28 Thread david
Hi, I am defining all routes for a directory web site. While browsing the directory I need to pass trough url multiple objects (category, article, location). Is it possible to define sfPropel Routes to work with multiple objects in the URL. If so, please, could give an example of routing.yml and

[symfony-users] about irc channel of symfony user

2009-12-28 Thread mbello
hi have the irc client irc and i want to join the irc channel of symfony user but i dont know how can do to do it tanks in advance mbello -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to

Re: [symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread Nathan Bijnens
This is a very bad idea...! Never run a program with more permissions than it needs to have. You could maybe create a bash wrapper that calls sudo symfony? And put this in the right path? Nathan On Mon, Dec 28, 2009 at 3:14 PM, Alexandru-Emil Lupu gang.al...@gmail.comwrote: A stupid ideea:

Re: [symfony-users] about irc channel of symfony user

2009-12-28 Thread Stéphane
Hello, Just open your favorite irc client, connect to irc.freenode.net (using /s irc.freenode.net) then join the symfony channel /join #symfony Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Dec 28,

Re: [symfony-users] Is it possible to define a sfPropelRoute with multiple objects??

2009-12-28 Thread Stéphane
Is there any sfPropelRouteCollection ? But collection routes are for same classes. One RouteCollection for model class Product will be usable only for Product. Anyway you can put parts in the url (using :my_field). Check docs about routing and advanced routing. Before Printing, Think about Your

[symfony-users] Re: approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?

2009-12-28 Thread dziobacz
I need a form in which I will have so many checkboxes as rows in table. I know how I can do that in normal php (code in my first post), but I don't know how/should I do that using Symfony forms ? Do you understand ? xD On 28 Gru, 14:56, DEEPAK BHATIA toreachdee...@gmail.com wrote: I generally

[symfony-users] Re: plugin:install not working for 1.3/1.4?

2009-12-28 Thread Stef
I have exactly the same error as mentionned by Kevin. Hope this is already repaired or to be done soon... -- 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

[symfony-users] Veeeeeeeeeerry Strange Error with a form

2009-12-28 Thread Dennis
I have a project where I copied the guts of a Doctrine based form, deleted all fields, added a simple file field, but kept the line with 'getModelName' with the old model. Didn't think it would work it all, but it does, sort of. When I use the dev environment, it works perfectly. I upload a file,

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2009-12-28 Thread tirengarfio
hi, maybe these links can be interesting for someone: http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-i/ http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-ii/ Are in spanish... Anyway, any reason for not implementing the Filter button functionality? Javi

[symfony-users] execute module through php command line

2009-12-28 Thread Joshua
I've set up a module in my frontend application and the actions.class.php has different functions intended to be run in a cron. I can run these functions in the browser by going to the path domain.com/cron_module/function How can I set this up command line so a cron can run these functions? --

Re: [symfony-users] execute module through php command line

2009-12-28 Thread Andrei Dziahel
Hi. You are doing it wrong. Extract these functions to dedicated tasks and run * them* with cron or whatever. Nevertheless, you still can shoot yourself in a foot by putting into cron something like ...time... curl url 2009/12/28 Joshua houseaddi...@gmail.com I've set up a module in my

Re: [symfony-users] execute module through php command line

2009-12-28 Thread Stéphane
You should create tasks (symfony speaking) and bridge them for execution using cron and using actions for web (if you want both so). Anyway you still can create a task for launching web requests (why not using lime2 to check browser response for error catching). If you really want cron and web

[symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread tirengarfio
Thanks! On Dec 28, 3:21 pm, Nathan Bijnens nbijn...@servs.eu wrote: You could maybe create a bash wrapper that calls sudo symfony? And put this in the right path? Could you more details ? Javi On Dec 28, 3:21 pm, Nathan Bijnens nbijn...@servs.eu wrote: This is a very bad idea...! Never

Re: [symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread Stéphane
Hi, You should really avoir loging in as root, and see why you need to. If this is real IS problem, ok. If it's just a permission right need, then just move your configuration statements from /var/www to /home/$user/www, a place where you can read/write/execute whatever. About wrapping calls:

Re: [symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread Nathan Bijnens
Hello Javi, Rename your symfony script in the project dir to symfony.real paste this to a new file called symfony #!/bin/bash sudo symfony.real $@ that's about it. Warning this is not tested! This will not work in windows! regards, Nathan On Mon, Dec 28, 2009 at 9:41 PM, tirengarfio

[symfony-users] The user profile class sfGuardUserProfile does not exist.

2009-12-28 Thread Sorom Uzomah
Hello, I am using symfony 1.2.10 with sfGuardPlugin 3.1.3 , I have created a profile class sfGuardUserProfile through my schema.yml. When I try to use $this-getUser()-getGuardUser()-getProfile()-getId() in my action class as described in the readme file for sfGuardPlugin I get the following

[symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread tirengarfio
Hi Nathan, this happens: i have done what you say and after that NB doesn't show the list of sf tasks when i go to Symfony Run command. No problem without the change you propose. I tested 2 or 3 times. Javi On Dec 28, 9:50 pm, Nathan Bijnens nbijn...@servs.eu wrote: Hello Javi, Rename

[symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread Zeek
On Dec 27, 2:36 pm, tirengarfio tirengar...@gmail.com wrote: The only way i know to avoid writing sudo is logging in the operative system as root. But i dont want to logging as root. Is there anyone more? Log in as root and change the permissions so that you no longer have to log in as

[symfony-users] Re: The user profile class sfGuardUserProfile does not exist.

2009-12-28 Thread Zeek
Sorom, what do you get if you do this: echo get_class($this-getUser()-getGuardUser()-getProfile()); Do you get an error when this is called? echo get_class($this-getUser()-getGuardUser()); If you look in lib/model do you see a sfGuardUserProfile class? It is case sensitive. Be sure you do not

[symfony-users] Re: Veeeeeeeeeerry Strange Error with a form

2009-12-28 Thread Zeek
When I run it in production mode, accessing the ...URL/new link produces NO output, sends a 500 Server Error return code. Using die statements, I found that it stops at the ONE line in 'executeNew' function of the action class. Why use die statements? Why not use Symfony's logger? If you

[symfony-users] Re: Veeeeeeeeeerry Strange Error with a form

2009-12-28 Thread Zeek
So I put an echo statement in the constructor of sfFormDoctrine, the first constructor that should be encountered by PHP generating the object, and folks, it never gets executed. Somewhere in building the object hierarchy, php crashes, or some Symfony/Doctrine code throws an exception. Now I

[symfony-users] Re: Veeeeeeeeeerry Strange Error with a form

2009-12-28 Thread Zeek
Have you installed the sfErrorHandler plugin? http://www.symfony-project.org/plugins/sfErrorHandlerPlugin Symfony will swallow certain kinds of errors. For instance, passing parameters of the wrong type, when type hinting is in use. It is good to have that plugin installed. On Dec 28, 1:32 

Re: [symfony-users] Re: The user profile class sfGuardUserProfile does not exist.

2009-12-28 Thread Mohammed Rhamnia
Did u add this to your app.yml file : *all: sf_guard_plugin: profile_class: sfGuardUserProfile profile_field_name: user_id* 2009/12/28 Zeek z...@thesecondroad.org Sorom, what do you get if you do this: echo get_class($this-getUser()-getGuardUser()-getProfile()); Do you get an

Re: [symfony-users] Veeeeeeeeeerry Strange Error with a form

2009-12-28 Thread Eno
On Mon, 28 Dec 2009, Dennis wrote: When I use the dev environment, it works perfectly. I upload a file, I can bind it, get the value, save the fiile to file system, VOILA, build the original model in a new object, and save the URL for the file's new location in the database. Love :-) When

Re: [symfony-users] Re: The user profile class sfGuardUserProfile does not exist.

2009-12-28 Thread Daniel Lohse
On Dec 28, 2009, at 11:36 PM, Mohammed Rhamnia wrote: Did u add this to your app.yml file : all: sf_guard_plugin: profile_class: sfGuardUserProfile profile_field_name: user_id AFAIK, he used the default class and field names and this is not necessary. 2009/12/28 Zeek

[symfony-users] Re: Passing Params to Routes

2009-12-28 Thread Zeek
Can you show us an example URL? And what does your doSelectByDomain methods look like? On Dec 28, 11:15 am, Rob Wilkerson r.d.wilker...@gmail.com wrote: On Mon, Dec 28, 2009 at 11:11 AM, Gábor Fási maerl...@gmail.com wrote: I guess you want this: param: { module: page, action: show,

[symfony-users] Re: sfDoctrineGuard translation

2009-12-28 Thread diogobaeder
Hi, Daniel, Thanks for the help, it really worked for the __() function calls! :-) Despite, I noticed that fields generated by widgets don't include this function call, so I would have to declare localized labels for them, too... wouldn't it be a better idea if these plugins were already

Re: [symfony-users] Re: sfDoctrineGuard translation

2009-12-28 Thread Daniel Lohse
I'm glad it worked! :) You can set a different catalogue to use for a form in the form formatter class. As far as the module code generation goes... hmm, you'd have to create your own module generation theme. Cheers, Daniel On Dec 29, 2009, at 3:46 AM, diogobaeder wrote: Hi, Daniel,

Re: [symfony-users] Veeeeeeeeeerry Strange Error with a form

2009-12-28 Thread Parijat Kalia
hmm..what is your dev environment Operating system, and find out which is for your production environment. I had a similar problem, where the forms would not execute in the production environment but would execute itself in the dev environment just fine. The issue was that my production was linux

[symfony-users] error in jobeet day9

2009-12-28 Thread vikram patel
hey i just finished the jobeet day 9 !! now i have an error which says: 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception SQLSTATE[42S22]: Column not found: 1054 Unknown column 'j.slug' in 'field list' can anyone tell what it is?? i am new to symfony and php as well!! -- You