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 p

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

2009-12-28 Thread dziobacz
I would like to approve comments clicking on checkboxes using AJAX (without refreshing page). Screen is here: http://forum.symfony-project.org/index.php/t/24537/ So as you can see above now I have checkboxes - each checkbox is a one row from table - so I must write in view: getId ()."'";

[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 wrote: > Yes i'm storing file paths in the database and the photos in the > filesystem... I'm using Doctrine but i don't fi

[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 Ubuntu/Symfony/Eclip

[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 wrote: > Are you testing on an internet-accessible server ? To get the Facebook > uid, you need Facebook servers

[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 wrote: > I would like to approve comments clicking on checkboxes using AJAX > (without refreshing page). > Screen is here:http://forum.s

[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 no

[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 wrote: > Hi, > > maybe you could explain us a

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

2009-12-28 Thread mattsister
My question is: Why you have to be super user to deal with your own code? I think you should change the ownership of the project folder and make it yours!!! :) On 27 Dic, 19:51, tirengarfio wrote: > Hi, > > i have installed Netbeans with symfony support. > > As maybe you know with this support yo

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. true, 'onchange'=> remote_function(array('update' => 'common_area','url' => 'home/homeselectdate','script' => true,'with'=>"'id='+this.value"; ?> true, 'onchange'=> remote_function(array('update' => 'common_area','url' => 'home/homeselectdate'

[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 alwa

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" wrote: My question is: Why you have to be super user to deal with your own code? I think you should change th

[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) { @unlink(sfConfig::get('sf_upload_dir').'/immobi

[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 ho

[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 symfony-us...@google

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 wrote: > A stupid ideea: launch your nb using s

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, 20

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

[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 wrote: > I generally use remote function for

Re: [symfony-users] Passing Params to Routes

2009-12-28 Thread Gábor Fási
I guess you want this: param: { module: page, action: show, domain_slug: whatever, slug: whatever2 } On Mon, Dec 28, 2009 at 14:17, Rob Wilkerson wrote: > I have a defined route that displays a dynamic page: > > page_show: >  url:     /:domain_slug/:slug >  class:   sfPropelRoute >  options: >  

Re: [symfony-users] Passing Params to Routes

2009-12-28 Thread Rob Wilkerson
On Mon, Dec 28, 2009 at 11:11 AM, Gábor Fási wrote: > I guess you want this: > > param: { module: page, action: show, domain_slug: whatever, slug: whatever2 } I've tried that, but I get an error. It seems that no parameters are being passed to my custom request method (doSelectByDomain). The para

[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 t

[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? -- Y

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 > 2009/12/28 Joshua > I've set up a module in my frontend application and

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 at

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

2009-12-28 Thread tirengarfio
Thanks! On Dec 28, 3:21 pm, Nathan Bijnens 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 wrote: > This is a very bad idea...! Never run a program with more permission

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: you'

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 wrot

[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 wrote: > Hello Javi, > > Rename your symfony scr

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

2009-12-28 Thread Zeek
On Dec 27, 2:36 pm, tirengarfio 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 root to call the

[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

[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 yo

[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. N

[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 pm

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 > Sorom, what do you get if you do this: > > echo get_class($this->getUser()->getGuardUser()->getProfile()); > > Do you get an error when thi

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 :-) > >

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 Zee

[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 wrote: > On Mon, Dec 28, 2009 at 11:11 AM, Gábor Fási wrote: > > I guess you want this: > > > param: { module: page, action: show, domain_slug: whatever, slug: whatever2

[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 prepared

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, > > T

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 rece

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

2009-12-28 Thread James Cauwelier
Well, I wouldn 't use the remote function since it 's deprecated. And yes, you could use the form framework for this. The 'normal way' of constructing a symfony form is to build your widget schema using the configure () method and nothing prevents you to put a loop in that method. If this behavi