[symfony-users] Re: i get a blank white screen, even in dev mode, even with sfErrorHandler installed
On Apr 20, 1:49 am, Kevin Barsotti kevin.barso...@tribaldawn.com wrote: This happened to me once due to a permissions problem, Symfony (or whatever user Symfony/PHP/Apache is running as) could not write to the cache directories, producing a system error that, in production, was an empty screen. When you run cc do you see any permission errors fly by along with all the output? Thanks for responding. To answer your question, no. There was at one point an error about Could not write to cache file /etc/etc/etc. Something like that. I deleted the file and then ran cc again, and everything was fine. This is the output I now get: lawre...@paris:~/public_html/esociety$ php symfony cc cache Clearing cache type all for test app and test env file+ /home/lawrence/public_html/esociety/data/test_test-cli.lck chmod 777 /home/lawrence/public_html/esociety/data/test_test-cli.lck file- /home/lawrence/public_html/esoc.../config_config_handlers.yml.php file- /home/lawrence/public_html/esoc.../test/config/config_app.yml.php file- /home/lawrence/public_html/esoc.../config/config_settings.yml.php file- /home/lawrence/public_html/esociety/data/test_test-cli.lck cache Clearing cache type all for test app and dev env file+ /home/lawrence/public_html/esociety/data/test_dev-cli.lck chmod 777 /home/lawrence/public_html/esociety/data/test_dev-cli.lck file- /home/lawrence/public_html/esoc.../config_config_handlers.yml.php file- /home/lawrence/public_html/esoc...t/dev/config/config_app.yml.php file- /home/lawrence/public_html/esoc.../config/config_settings.yml.php file- /home/lawrence/public_html/esociety/data/test_dev-cli.lck Lawrence Krubner wrote: Wow, this just keeps getting weirder. I went into Subversion and rolled the site back to a version that I know used to work. Then I ran this command: php symfony cc And yet I'm still getting a blank white screen. And yet, the whole site is in Subversion and this version used to work. On Apr 20, 1:11 am, Lawrence Krubner lkrub...@geocities.com wrote: and, I should add, when I look in my PHP error logs, the last entry is from 2 weeks ago. There are no errors from tonight. How can that be? How can I get a blank white screen, yet nothing gets recorded to the error logs? and yes, I've cleared the cache. many times. On Apr 20, 1:01 am, Lawrence Krubner lkrub...@geocities.com wrote: Just setting up a new site. Was working and now it isn't. I forget what I did to break it. I now get a blank white screen when I go here: http://lawrence.sds5.com/esociety/web/test_dev.php/weblog/index I tried installing sfErrorHandler so I could get more intelligent error messages. I installed the files of sfErrorHandler (copied them over from another project, and I modified settings.yml so it now has this: all: .settings: enabled_modules: [default, sfMediaLibrary, sfFormExtra, sfErrorHandler] I still get a plain white screen. Can anyone suggest what I do next? This error reminds of what I face when I have a syntax error in a yml file. Does anyone know where I can test my yml files for parse errors? -- Kevin Barsotti Operations Director Tribal Dawn, LLC www.tribaldawn.com 412.736.1357 --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: i get a blank white screen, even in dev mode, even with sfErrorHandler installed
On Apr 20, 1:49 am, Kevin Barsotti kevin.barso...@tribaldawn.com wrote: This happened to me once due to a permissions problem, Symfony (or whatever user Symfony/PHP/Apache is running as) could not write to the cache directories, producing a system error that, in production, was an empty screen. When you run cc do you see any permission errors fly by along with all the output? And also, I should add, I did find a parse error in settings.yml, but I fixed it and then re-ran cc. And I still get this blank white page: http://lawrence.sds5.com/esociety/web/test_dev.php/weblog/index Lawrence Krubner wrote: Wow, this just keeps getting weirder. I went into Subversion and rolled the site back to a version that I know used to work. Then I ran this command: php symfony cc And yet I'm still getting a blank white screen. And yet, the whole site is in Subversion and this version used to work. On Apr 20, 1:11 am, Lawrence Krubner lkrub...@geocities.com wrote: and, I should add, when I look in my PHP error logs, the last entry is from 2 weeks ago. There are no errors from tonight. How can that be? How can I get a blank white screen, yet nothing gets recorded to the error logs? and yes, I've cleared the cache. many times. On Apr 20, 1:01 am, Lawrence Krubner lkrub...@geocities.com wrote: Just setting up a new site. Was working and now it isn't. I forget what I did to break it. I now get a blank white screen when I go here: http://lawrence.sds5.com/esociety/web/test_dev.php/weblog/index I tried installing sfErrorHandler so I could get more intelligent error messages. I installed the files of sfErrorHandler (copied them over from another project, and I modified settings.yml so it now has this: all: .settings: enabled_modules: [default, sfMediaLibrary, sfFormExtra, sfErrorHandler] I still get a plain white screen. Can anyone suggest what I do next? This error reminds of what I face when I have a syntax error in a yml file. Does anyone know where I can test my yml files for parse errors? -- Kevin Barsotti Operations Director Tribal Dawn, LLC www.tribaldawn.com 412.736.1357 --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: i get a blank white screen, even in dev mode, even with sfErrorHandler installed
On Apr 20, 1:49 am, Kevin Barsotti kevin.barso...@tribaldawn.com wrote: This happened to me once due to a permissions problem, Symfony (or whatever user Symfony/PHP/Apache is running as) could not write to the cache directories, producing a system error that, in production, was an empty screen. When you run cc do you see any permission errors fly by along with all the output? The sysadmin might have chrooted the directory I'm working, so that the project now points to a local copy of the core symfony framework, rather than pointing to the standard location: /usr/share/php/symfony Not sure if that could be causing a problem. At least one site on this server continued to work after he did the chroot bit. --- lawrence Lawrence Krubner wrote: Wow, this just keeps getting weirder. I went into Subversion and rolled the site back to a version that I know used to work. Then I ran this command: php symfony cc And yet I'm still getting a blank white screen. And yet, the whole site is in Subversion and this version used to work. On Apr 20, 1:11 am, Lawrence Krubner lkrub...@geocities.com wrote: and, I should add, when I look in my PHP error logs, the last entry is from 2 weeks ago. There are no errors from tonight. How can that be? How can I get a blank white screen, yet nothing gets recorded to the error logs? and yes, I've cleared the cache. many times. On Apr 20, 1:01 am, Lawrence Krubner lkrub...@geocities.com wrote: Just setting up a new site. Was working and now it isn't. I forget what I did to break it. I now get a blank white screen when I go here: http://lawrence.sds5.com/esociety/web/test_dev.php/weblog/index I tried installing sfErrorHandler so I could get more intelligent error messages. I installed the files of sfErrorHandler (copied them over from another project, and I modified settings.yml so it now has this: all: .settings: enabled_modules: [default, sfMediaLibrary, sfFormExtra, sfErrorHandler] I still get a plain white screen. Can anyone suggest what I do next? This error reminds of what I face when I have a syntax error in a yml file. Does anyone know where I can test my yml files for parse errors? -- Kevin Barsotti Operations Director Tribal Dawn, LLC www.tribaldawn.com 412.736.1357 --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: i get a blank white screen, even in dev mode, even with sfErrorHandler installed
I guess the real question is, how do I get Symfony to talk to me? A blank white screen does not give me any clue about what to fix. I can't get sfErrorHander to work - nothing works. And whatever the error is, it seems like Symfony is suppressing it, since no errors appear in the PHP logs. On Apr 20, 1:01 am, Lawrence Krubner lkrub...@geocities.com wrote: Just setting up a new site. Was working and now it isn't. I forget what I did to break it. I now get a blank white screen when I go here: http://lawrence.sds5.com/esociety/web/test_dev.php/weblog/index I tried installing sfErrorHandler so I could get more intelligent error messages. I installed the files of sfErrorHandler (copied them over from another project, and I modified settings.yml so it now has this: all: .settings: enabled_modules: [default, sfMediaLibrary, sfFormExtra, sfErrorHandler] I still get a plain white screen. Can anyone suggest what I do next? This error reminds of what I face when I have a syntax error in a yml file. Does anyone know where I can test my yml files for parse errors? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: i get a blank white screen, even in dev mode, even with sfErrorHandler installed
On Apr 20, 1:01 am, Lawrence Krubner lkrub...@geocities.com wrote: Just setting up a new site. Was working and now it isn't. I forget what I did to break it. I now get a blank white screen when I go here: http://lawrence.sds5.com/esociety/web/test_dev.php/weblog/index I tried installing sfErrorHandler so I could get more intelligent error messages. I installed the files of sfErrorHandler (copied them over from another project, and I modified settings.yml so it now has this: all: .settings: enabled_modules: [default, sfMediaLibrary, sfFormExtra, sfErrorHandler] I still get a plain white screen. Can anyone suggest what I do next? This error reminds of what I face when I have a syntax error in a yml file. Does anyone know where I can test my yml files for parse errors? Here are some of the things I'm assuming. Someone please tell me where I might be wrong. Given a blank white screen, there are 3 main things I should check: 1.) clear the cache 2.) look for parse errors in yml files 3.) look for permission errors but I have done all these things. So what is next? What 4th area typically causes problems? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: i get a blank white screen, even in dev mode, even with sfErrorHandler installed
On Apr 20, 1:01 am, Lawrence Krubner lkrub...@geocities.com wrote: Just setting up a new site. Was working and now it isn't. I forget what I did to break it. I now get a blank white screen when I go here: http://lawrence.sds5.com/esociety/web/test_dev.php/weblog/index I tried installing sfErrorHandler so I could get more intelligent error messages. I installed the files of sfErrorHandler (copied them over from another project, and I modified settings.yml so it now has this: all: .settings: enabled_modules: [default, sfMediaLibrary, sfFormExtra, sfErrorHandler] I still get a plain white screen. Can anyone suggest what I do next? This error reminds of what I face when I have a syntax error in a yml file. Does anyone know where I can test my yml files for parse errors? Here are some of the things I'm assuming. Someone please tell me where I might be wrong. Given a blank white screen, there are 3 main things I should check: 1.) clear the cache 2.) look for parse errors in yml files 3.) look for permission errors but I have done all these things. So what is next? What 4th area typically causes problems? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Is Symfony website down?
Nope On Mon, Apr 20, 2009 at 6:23 AM, Sid Bachtiar sid.bacht...@gmail.comwrote: Is it? -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Doctrine UNION function or similar solution
Hi Valkerian, thanks for this solution. I will try to get it working this week . 2009/4/17 Valkerian valker...@gmail.com Hi there, it takes a bit of doing and there's a bunch of gotchas but here's how I did it: In the appropriate doctrine class I did this: public function getByLastname($lastname) { $cnn = Doctrine_Manager::connection(); $quoted_lastname = $cnn-quote($lastname, 'string'); $people = $cnn-fetchAssoc( ( select first_name, last_name, name_slug from director where last_name like $quoted_lastname ) union all ( select first_name, last_name, name_slug from actor where last_name like $quoted_lastname ) ); return $people; } This will return an associative array of what you're looking for. Valk On Mar 25, 3:30 am, pixelmeister jumh...@googlemail.com wrote: Hi @all, i have to solve a problem with doctrine which I normally would do with the mysql union function. Perhaps someone has an Idea for me, how I can do this: I have a few tables whitch have the following setup: -- table name: director first_name: string last_name: string name_slug: string -- table name: actor first_name: string last_name: string name_slug: string -- ... and so on. The tables contain different persons related to movies. For example: directors, screenwriters, actors, cutters and so on. Now, for a new function, i need to select all persons from all tables where last name ist starting with (for Example) A%, sortetd by last_name. How would you do the doctrine query? Perhaps I have to select the perons table per table and merge them later in arrays... and then write a sort function for the arrays? But somehow I dont like this way ;-) Any suggestions would be grat. Thanks, Kai --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: how can i get the forward404($messeage='test') $messeage in the 404 action?
Hi; You can do this with : - Create a 404 action and a 404 templates - Before you redirect you must set a flash like this : $this-getUser ()-setFlash($name, $value)(in sf 1.2) - Retrieve this info in your 404 template Just dont forget to setup a custum 404 module and action in the settings.yml file . On 20 avr, 03:42, ctrlming ctrlm...@gmail.com wrote: as the Subject , any help? thanks! --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Is Symfony website down?
But the forum is not available. Gareth McCumskey schrieb: Nope On Mon, Apr 20, 2009 at 6:23 AM, Sid Bachtiar sid.bacht...@gmail.comwrote: Is it? -- 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 group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Is Symfony website down?
It was up and down throughout today On Mon, Apr 20, 2009 at 8:10 PM, cokker cokker...@googlemail.com wrote: But the forum is not available. Gareth McCumskey schrieb: Nope On Mon, Apr 20, 2009 at 6:23 AM, Sid Bachtiar sid.bacht...@gmail.comwrote: Is it? -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- 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 group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: i get a blank white screen, even in dev mode, even with sfErrorHandler installed
You might try removing sfErrorHandler from your settings.yml (clear cache) and see if your log file is getting written to while in dev mode.Then go from there. On Mon, Apr 20, 2009 at 9:22 AM, Kevin Barsotti kevin.barso...@tribaldawn.com wrote: I'm honestly not sure what to tell you; if there's a PHP syntax error that Symfony is catching, there should be something in the /log/appname.dev.log file (or something similar), and likewise it shouldn't be displaying a blank page unless the template it's attempting to load is nonexistent or blank. But my understanding of the framework is far from perfect. Lawrence Krubner wrote: On Apr 20, 1:01 am, Lawrence Krubner lkrub...@geocities.com wrote: Just setting up a new site. Was working and now it isn't. I forget what I did to break it. I now get a blank white screen when I go here: http://lawrence.sds5.com/esociety/web/test_dev.php/weblog/index I tried installing sfErrorHandler so I could get more intelligent error messages. I installed the files of sfErrorHandler (copied them over from another project, and I modified settings.yml so it now has this: all: .settings: enabled_modules: [default, sfMediaLibrary, sfFormExtra, sfErrorHandler] I still get a plain white screen. Can anyone suggest what I do next? This error reminds of what I face when I have a syntax error in a yml file. Does anyone know where I can test my yml files for parse errors? Here are some of the things I'm assuming. Someone please tell me where I might be wrong. Given a blank white screen, there are 3 main things I should check: 1.) clear the cache 2.) look for parse errors in yml files 3.) look for permission errors but I have done all these things. So what is next? What 4th area typically causes problems? -- Kevin Barsotti Operations Director Tribal Dawn, LLC www.tribaldawn.com 412.736.1357 --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] doctrine generator bug?
Hello, Somehow the generator wired the model primary key to ID, if I change the primary key, al the genrated code breaks, from the routes to the lists Any clue? Thanks P --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] get filters values from GET
Does anyone tried to execute filter method by GET? I mean to put a link with GET parameters in some place in app. When clicked it would forward to expected module index with filtered data. Any guess how to make this working? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: i get a blank white screen, even in dev mode, even with sfErrorHandler installed
On 20 Apr 2009, at 07:24, Lawrence Krubner wrote: Given a blank white screen, there are 3 main things I should check: 1.) clear the cache 2.) look for parse errors in yml files 3.) look for permission errors but I have done all these things. So what is next? What 4th area typically causes problems? You've already answered your own question On 20 Apr 2009, at 07:20, Lawrence Krubner wrote: The sysadmin might have chrooted the directory I'm working, so that the project now points to a local copy of the core symfony framework, rather than pointing to the standard location: /usr/share/php/symfony The 4th thing to check is other people 'fixing' my application that wasn't broke I'm pretty sure this is the root of your problem. Find your SysAdmin - beat them with a stale baguette, like one of our cops would beat a G20 protester Whenever we have our SysAdmins play with our applications, it's done whilst a developer is with them - so that they can be sure to check everything that could cause the application to break - and to actually test that it still works afterwards. It certainly sounds like a permissions issue - make sure you've done a chmod -R 777 on both log/ and cache/ Other than that, make sure you've got a sensible error logging level set, and that display_errors in on... It's going to be a silly error - so you just need to think through everything logically :) --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Create own filter tutorial
Does anyone know, or has a link to a tutorial on how to create my own propel filter for a module? A have a module with some filters. Now I want to add a filter, that will get for me only objects with specified ID's, but on the base of a different module. For example: I have a module with USERS and module that put USERS into some GROUPS, User can be in many groups.Now I want to check which users are in given Group, and then pass theirs ID to USERS module filters, filter data and show in list those Users. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: form_remote_tag() - update problem
As a quick response try adding the option script=true ... I find with Ajax actions this often catches me out 2009/4/20 DEEPAK BHATIA toreachdee...@gmail.com You mean your home/mypage is opening in the div errorlogin when you are successful. On Mon, Apr 20, 2009 at 3:21 AM, Guychmyrat Amanmyradov guychmy...@yahoo.com.tr wrote: Hello, i'm tring to check login with ajax. on main page, there is a login link. when you click on it, a div is opening. And you are typing email/password in there. And checking error with ajaxs. form_remote_tag(aaray('update'='errorlogin', 'url'='login/login')) it works perfect to check errors. But when it success, the logged page opens in that errorlogin div. in action, if it successfully passes control i am redirecting to the home/mypage but it opens in div. How can i solve this problem ? Thank you. -- Yahoo! Türkiye açıldı! Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de! www.yahoo.com.tr http://tr.yahoo.com/ -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: form_remote_tag() - update problem
Oh yes, if you want to redirect outside of a response div you need to use Javascript to break out not PHP as symfony will load your redirect into the div. something like window.redirect should do it 2009/4/20 Gareth McCumskey gmccums...@gmail.com As a quick response try adding the option script=true ... I find with Ajax actions this often catches me out 2009/4/20 DEEPAK BHATIA toreachdee...@gmail.com You mean your home/mypage is opening in the div errorlogin when you are successful. On Mon, Apr 20, 2009 at 3:21 AM, Guychmyrat Amanmyradov guychmy...@yahoo.com.tr wrote: Hello, i'm tring to check login with ajax. on main page, there is a login link. when you click on it, a div is opening. And you are typing email/password in there. And checking error with ajaxs. form_remote_tag(aaray('update'='errorlogin', 'url'='login/login')) it works perfect to check errors. But when it success, the logged page opens in that errorlogin div. in action, if it successfully passes control i am redirecting to the home/mypage but it opens in div. How can i solve this problem ? Thank you. -- Yahoo! Türkiye açıldı! Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de! www.yahoo.com.tr http://tr.yahoo.com/ -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] sfDoctrineGuardPlugin getProfile not working (at least for me)
Hi I installed the Plugin as it is written in the Readme but i can't access the Profile. I have the same symptoms as described in the Forum Post [1] but the solution there is kind of a workaround than a real solution i think. Is there probably an error in the getProfile Method in sf1.2 with doctrine or do we miss something? My Schema.yml (not the same as in the Readme because in the readme i think it is not valid doctrine schema syntax) sf_guard_user_profile: actAs: [Timestampable] className: sfGuardUserProfile columns: id: type: integer primary: true autoincrement: true user_id: type: integer(4) email: string(255) relations: sfGuardUser: local: user_id onDelete: CASCADE After i loaded the fixtures and logged in I try to access the Profile like this from the Action: $this-getUser()-getProfile()-getEmail() Thx for any help, Christian [1] http://forum.symfony-project.org/index.php/m/73972/ -- Christian Haintz Student of Software Development and Business Management Graz, University of Technology --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Modify the Doctrine_Query used by the Admin Generator
Hello, I want to use the same symfony application for multiple domains. The layout is all the same and all website have the same elements. On the frontend I use the $request-getHost() to filter my queries for the specific domain. Now the interesting part, I want the same thing for the admin generator. Only the records the user of that domain may edit should appear in the list. I browsed the source code of the generated actions and noticed I could use the pageGeneratorConfiguration to customize the getFilterDefaults. Is there a more elegant way to accomplish this? Thanks in advance! --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: i get a blank white screen, even in dev mode, even with sfErrorHandler installed
Hi, I recently got a similar problem on the same env : Apache/2.2.8 (Ubuntu) + PHP/5.2.4-2ubuntu5.5. When I took a look to frontend.log, there were this error : ALERT - canary mismatch on efree() - heap overflow detected sfYamlParser.class.php Never really find how to fix it ... I just reload apache, and the problem is gone. But sometimes, it comes back... On 20 avr, 11:24, Lee Bolding l...@leesbian.net wrote: On 20 Apr 2009, at 07:24, Lawrence Krubner wrote: Given a blank white screen, there are 3 main things I should check: 1.) clear the cache 2.) look for parse errors in yml files 3.) look for permission errors but I have done all these things. So what is next? What 4th area typically causes problems? You've already answered your own question On 20 Apr 2009, at 07:20, Lawrence Krubner wrote: The sysadmin might have chrooted the directory I'm working, so that the project now points to a local copy of the core symfony framework, rather than pointing to the standard location: /usr/share/php/symfony The 4th thing to check is other people 'fixing' my application that wasn't broke I'm pretty sure this is the root of your problem. Find your SysAdmin - beat them with a stale baguette, like one of our cops would beat a G20 protester Whenever we have our SysAdmins play with our applications, it's done whilst a developer is with them - so that they can be sure to check everything that could cause the application to break - and to actually test that it still works afterwards. It certainly sounds like a permissions issue - make sure you've done a chmod -R 777 on both log/ and cache/ Other than that, make sure you've got a sensible error logging level set, and that display_errors in on... It's going to be a silly error - so you just need to think through everything logically :) --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfDoctrineGuardPlugin getProfile not working (at least for me)
sf_guard_user_profile: actAs: [Timestampable] className: sfGuardUserProfile columns: id: type: integer primary: true autoincrement: true user_id: type: integer(4) email: string(255) relations: sfGuardUser: local: user_id onDelete: CASCADE foreignAlias: Profile You are missing the foreignAlias causing the relationship name on the side of the User to be called Profile. - Jon On Mon, Apr 20, 2009 at 7:15 AM, Christian Haintz christian.hai...@gmail.com wrote: Hi I installed the Plugin as it is written in the Readme but i can't access the Profile. I have the same symptoms as described in the Forum Post [1] but the solution there is kind of a workaround than a real solution i think. Is there probably an error in the getProfile Method in sf1.2 with doctrine or do we miss something? My Schema.yml (not the same as in the Readme because in the readme i think it is not valid doctrine schema syntax) sf_guard_user_profile: actAs: [Timestampable] className: sfGuardUserProfile columns: id: type: integer primary: true autoincrement: true user_id: type: integer(4) email: string(255) relations: sfGuardUser: local: user_id onDelete: CASCADE After i loaded the fixtures and logged in I try to access the Profile like this from the Action: $this-getUser()-getProfile()-getEmail() Thx for any help, Christian [1] http://forum.symfony-project.org/index.php/m/73972/ -- Christian Haintz Student of Software Development and Business Management Graz, University of Technology -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Modify the Doctrine_Query used by the Admin Generator
In generator.yml, under list specify table_method and table_count_method(optional). These are the methods used on the Doctrine_Table instance for your model to power the list. - Jon On Mon, Apr 20, 2009 at 7:33 AM, Don Pinkster d...@pinkster.eu wrote: Hello, I want to use the same symfony application for multiple domains. The layout is all the same and all website have the same elements. On the frontend I use the $request-getHost() to filter my queries for the specific domain. Now the interesting part, I want the same thing for the admin generator. Only the records the user of that domain may edit should appear in the list. I browsed the source code of the generated actions and noticed I could use the pageGeneratorConfiguration to customize the getFilterDefaults. Is there a more elegant way to accomplish this? Thanks in advance! -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: doctrine generator bug?
my route does not mention the id: invoices: class:sfDoctrineRouteCollection options: model: ABInvoice module: invoices prefix_path:invoices with_wildcard_routes: true On 4/20/09, Jonathan Wage jonw...@gmail.com wrote: I think you need to then change your route and the generator.yml if you want to use a column other than the id. - Jon On Mon, Apr 20, 2009 at 4:02 AM, Gandalf ganda...@gmail.com wrote: Hello, Somehow the generator wired the model primary key to ID, if I change the primary key, al the genrated code breaks, from the routes to the lists Any clue? Thanks P -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: doctrine generator bug?
I believe it defaults to id, try specifying column: pk_id under options - Jon On Mon, Apr 20, 2009 at 8:40 AM, Gandalf ganda...@gmail.com wrote: my route does not mention the id: invoices: class:sfDoctrineRouteCollection options: model: ABInvoice module: invoices prefix_path:invoices with_wildcard_routes: true On 4/20/09, Jonathan Wage jonw...@gmail.com wrote: I think you need to then change your route and the generator.yml if you want to use a column other than the id. - Jon On Mon, Apr 20, 2009 at 4:02 AM, Gandalf ganda...@gmail.com wrote: Hello, Somehow the generator wired the model primary key to ID, if I change the primary key, al the genrated code breaks, from the routes to the lists Any clue? Thanks P -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Modify the Doctrine_Query used by the Admin Generator
Thank you. I found that just earlier in the Jobeet tutorial but wasn't aware of the table_count_method. If other people need it; I also wrote the following: To make sure the edit and delete actions were also secure I used the following in actions.class.php protected function confirmPage() { $page = $this-getRoute()-getObject(); if ($page-getDomainId() != $this-domain_id) { $this-forward404(); } } with the following methods public function executeEdit(sfWebRequest $request) { $this-confirmPage(); parent::executeEdit($request); } public function executeDelete(sfWebRequest $request) { $this-confirmPage(); parent::executeDelete($request); } I just need to refactor it to use the user instance. On Mon, 20 Apr 2009 08:40:35 -0500, Jonathan Wage jonw...@gmail.com wrote: In generator.yml, under list specify table_method and table_count_method(optional). These are the methods used on the Doctrine_Table instance for your model to power the list. - Jon On Mon, Apr 20, 2009 at 7:33 AM, Don Pinkster d...@pinkster.eu wrote: Hello, I want to use the same symfony application for multiple domains. The layout is all the same and all website have the same elements. On the frontend I use the $request-getHost() to filter my queries for the specific domain. Now the interesting part, I want the same thing for the admin generator. Only the records the user of that domain may edit should appear in the list. I browsed the source code of the generated actions and noticed I could use the pageGeneratorConfiguration to customize the getFilterDefaults. Is there a more elegant way to accomplish this? Thanks in advance! --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: doctrine generator bug?
No I meant this: invoices: class:sfDoctrineRouteCollection options: model: ABInvoice module: invoices prefix_path:invoices with_wildcard_routes: true column: inv_no On Mon, Apr 20, 2009 at 8:59 AM, Gandalf ganda...@gmail.com wrote: no dice invoices: class:sfDoctrineRouteCollection options: model: ABInvoice module: invoices prefix_path:invoices with_wildcard_routes: true pk_id: inv_no 500 | Internal Server Error | InvalidArgumentException The /invoices/:id/edit.:sf_format route has some missing mandatory parameters (:id). stack trace at () in SF_SYMFONY_LIB_DIR\routing\sfRoute.class.php line 216 ... // all params must be given if ($diff = array_diff_key($this-variables, $tparams)) { throw new InvalidArgumentException(sprintf('The %s route has some missing mandatory parameters (%s).', $this-pattern, implode(', ', $diff))); } if ($this-options['generate_shortest_url'] || $this-customToken) at sfRoute-generate(array(), '', '') in SF_SYMFONY_LIB_DIR\routing\sfRequestRoute.class.php line 98 ... at sfRequestRoute-generate(array(), '') in SF_SYMFONY_LIB_DIR\routing\sfObjectRoute.class.php line 81 ... at sfObjectRoute-generate(array(object('sfOutputEscaperIteratorDecorator')), array('path_info' = '/invoices', 'prefix' = '/backend_dev.php', 'method' = 'GET', null, 'host' = 'ocean.localhost', 'is_secure' = '', 'request_uri' = 'http://ocean.localhost/backend_dev.php/invoices'http://ocean.localhost/backend_dev.php/invoices%27), '') in SF_SYMFONY_LIB_DIR\routing\sfPatternRouting.class.php line 325 ... at sfPatternRouting-generate('invoices_edit', array(object('sfOutputEscaperIteratorDecorator')), '') in SF_SYMFONY_LIB_DIR\controller\sfWebController.class.php line 74 ... at sfWebController-genUrl(array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), '') in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 88 ... at url_for1(array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), '') in n/a line n/a ... at call_user_func_array('url_for1', array(array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), '')) in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 115 ... at url_for(array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), '') in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 45 ... at link_to1('2041', array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), array()) in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 24 ... at link_to2('2041', 'invoices_edit', object('sfOutputEscaperIteratorDecorator')) in n/a line n/a ... at call_user_func_array('link_to2', array('2041', 'invoices_edit', object('sfOutputEscaperIteratorDecorator'))) in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 176 ... at link_to('2041', 'invoices_edit', object('sfOutputEscaperIteratorDecorator')) in SF_ROOT_DIR\cache\backend\dev\modules\autoInvoices\templates\_list_td_tabular.php line 2 ... at require('E:\w\gocean\cache\backend\dev\modules\autoInvoices\templates\_list_td_tabular.php') in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 77 ... at sfPHPView-renderFile('E:\w\gocean\cache\backend\dev\modules/autoInvoices/templates/_list_td_tabular.php') in SF_SYMFONY_LIB_DIR\view\sfPartialView.class.php line 86 ... at sfPartialView-render() in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 218 ... at get_partial('invoices/list_td_tabular', array(object('sfOutputEscaperIteratorDecorator'))) in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 180 ... at include_partial('invoices/list_td_tabular', array(object('sfOutputEscaperIteratorDecorator'))) in SF_ROOT_DIR\cache\backend\dev\modules\autoInvoices\templates\_list.php line 31 ... at require('E:\w\gocean\cache\backend\dev\modules\autoInvoices\templates\_list.php') in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 77 ... at sfPHPView-renderFile('E:\w\gocean\cache\backend\dev\modules/autoInvoices/templates/_list.php') in SF_SYMFONY_LIB_DIR\view\sfPartialView.class.php line 86 ... at sfPartialView-render() in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 218 ... at get_partial('invoices/list', array(object('sfOutputEscaperObjectDecorator'), object('sfOutputEscaperArrayDecorator'), object('invoicesGeneratorHelper'))) in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 180 ... at include_partial('invoices/list', array(object('sfOutputEscaperObjectDecorator'), object('sfOutputEscaperArrayDecorator'), object('invoicesGeneratorHelper'))) in SF_ROOT_DIR\cache\backend\dev\modules\autoInvoices\templates\indexSuccess.php line 19 ... at require('E:\w\gocean\cache\backend\dev\modules\autoInvoices\templates\indexSuccess.php') in
[symfony-users] Re: doctrine generator bug?
no dice invoices: class:sfDoctrineRouteCollection options: model: ABInvoice module: invoices prefix_path:invoices with_wildcard_routes: true pk_id: inv_no 500 | Internal Server Error | InvalidArgumentException The /invoices/:id/edit.:sf_format route has some missing mandatory parameters (:id). stack trace at () in SF_SYMFONY_LIB_DIR\routing\sfRoute.class.php line 216 ... // all params must be given if ($diff = array_diff_key($this-variables, $tparams)) { throw new InvalidArgumentException(sprintf('The %s route has some missing mandatory parameters (%s).', $this-pattern, implode(', ', $diff))); } if ($this-options['generate_shortest_url'] || $this-customToken) at sfRoute-generate(array(), '', '') in SF_SYMFONY_LIB_DIR\routing\sfRequestRoute.class.php line 98 ... at sfRequestRoute-generate(array(), '') in SF_SYMFONY_LIB_DIR\routing\sfObjectRoute.class.php line 81 ... at sfObjectRoute-generate(array(object('sfOutputEscaperIteratorDecorator')), array('path_info' = '/invoices', 'prefix' = '/backend_dev.php', 'method' = 'GET', null, 'host' = 'ocean.localhost', 'is_secure' = '', 'request_uri' = 'http://ocean.localhost/backend_dev.php/invoices'), '') in SF_SYMFONY_LIB_DIR\routing\sfPatternRouting.class.php line 325 ... at sfPatternRouting-generate('invoices_edit', array(object('sfOutputEscaperIteratorDecorator')), '') in SF_SYMFONY_LIB_DIR\controller\sfWebController.class.php line 74 ... at sfWebController-genUrl(array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), '') in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 88 ... at url_for1(array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), '') in n/a line n/a ... at call_user_func_array('url_for1', array(array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), '')) in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 115 ... at url_for(array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), '') in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 45 ... at link_to1('2041', array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), array()) in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 24 ... at link_to2('2041', 'invoices_edit', object('sfOutputEscaperIteratorDecorator')) in n/a line n/a ... at call_user_func_array('link_to2', array('2041', 'invoices_edit', object('sfOutputEscaperIteratorDecorator'))) in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 176 ... at link_to('2041', 'invoices_edit', object('sfOutputEscaperIteratorDecorator')) in SF_ROOT_DIR\cache\backend\dev\modules\autoInvoices\templates\_list_td_tabular.php line 2 ... at require('E:\w\gocean\cache\backend\dev\modules\autoInvoices\templates\_list_td_tabular.php') in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 77 ... at sfPHPView-renderFile('E:\w\gocean\cache\backend\dev\modules/autoInvoices/templates/_list_td_tabular.php') in SF_SYMFONY_LIB_DIR\view\sfPartialView.class.php line 86 ... at sfPartialView-render() in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 218 ... at get_partial('invoices/list_td_tabular', array(object('sfOutputEscaperIteratorDecorator'))) in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 180 ... at include_partial('invoices/list_td_tabular', array(object('sfOutputEscaperIteratorDecorator'))) in SF_ROOT_DIR\cache\backend\dev\modules\autoInvoices\templates\_list.php line 31 ... at require('E:\w\gocean\cache\backend\dev\modules\autoInvoices\templates\_list.php') in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 77 ... at sfPHPView-renderFile('E:\w\gocean\cache\backend\dev\modules/autoInvoices/templates/_list.php') in SF_SYMFONY_LIB_DIR\view\sfPartialView.class.php line 86 ... at sfPartialView-render() in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 218 ... at get_partial('invoices/list', array(object('sfOutputEscaperObjectDecorator'), object('sfOutputEscaperArrayDecorator'), object('invoicesGeneratorHelper'))) in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 180 ... at include_partial('invoices/list', array(object('sfOutputEscaperObjectDecorator'), object('sfOutputEscaperArrayDecorator'), object('invoicesGeneratorHelper'))) in SF_ROOT_DIR\cache\backend\dev\modules\autoInvoices\templates\indexSuccess.php line 19 ... at require('E:\w\gocean\cache\backend\dev\modules\autoInvoices\templates\indexSuccess.php') in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 77 ... at sfPHPView-renderFile('E:\w\gocean\cache\backend\dev\modules/autoInvoices/templates/indexSuccess.php') in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 174 ... at sfPHPView-render() in SF_SYMFONY_LIB_DIR\filter\sfExecutionFilter.class.php line 153 ... at sfExecutionFilter-executeView('invoices', 'index', 'Success', array(object('invoicesGeneratorConfiguration'), object('invoicesGeneratorHelper'), object('ABInvoiceFormFilter'),
[symfony-users] Re: sfDoctrineGuardPlugin getProfile not working (at least for me)
its because it should be $this-getUser()-getGuardUser()-Profile On Apr 20, 2:15 pm, Christian Haintz christian.hai...@gmail.com wrote: Hi I installed the Plugin as it is written in the Readme but i can't access the Profile. I have the same symptoms as described in the Forum Post [1] but the solution there is kind of a workaround than a real solution i think. Is there probably an error in the getProfile Method in sf1.2 with doctrine or do we miss something? My Schema.yml (not the same as in the Readme because in the readme i think it is not valid doctrine schema syntax) sf_guard_user_profile: actAs: [Timestampable] className: sfGuardUserProfile columns: id: type: integer primary: true autoincrement: true user_id: type: integer(4) email: string(255) relations: sfGuardUser: local: user_id onDelete: CASCADE After i loaded the fixtures and logged in I try to access the Profile like this from the Action: $this-getUser()-getProfile()-getEmail() Thx for any help, Christian [1]http://forum.symfony-project.org/index.php/m/73972/ -- Christian Haintz Student of Software Development and Business Management Graz, University of Technology --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] how to generate pdf?
hello, I am using symfony 1.2, I have a page which contains a list, an image and ofcourse footer and header and I want to convert it to pdf file. Any suggestions please? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Pre-set filter in admin generator
I managed to get a filter by url by doing this: in the config.yml of the app: all: .settings: csrf_secret: false action?usuarios_licencias_filters[nombre_usuario]= On Mar 24, 12:20 pm, cleve cleve...@gmail.com wrote: what about overriding the addSortCriteria method: protected function addSortCriteria($c) { //check to see if filter exists //if not add your own $c-add(); parent::addSortCriteria($c); } If anybodies got a cleaner method I like to know too? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] jquery - json problem
Hello. i am tring to use jquery + json but there is a problem : ?php echo jq_link_to_remote('Refresh the letter', array( 'url' = 'test/test', 'dataType' = 'json', 'complete' = 'updateJSON(request, json)' )) ? i got request is not definedonclick()() error. my test function is : public function executeTest() { $output = '[[title, My basic letter], [name, Mr Brown]]'; $this-getResponse()-setHttpHeader(X-JSON, '('.$output.')'); return sfView::HEADER_ONLY; } js function is : function updateJSON(request, json) { alert(json.length); } what is the problem.. ? ___ Yahoo! Türkiye açıldı! http://yahoo.com.tr İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor! --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: how to generate pdf?
Use sfPhpExcelPlugin-1.0.1. You can turn the desired data into the pdf file. Regards Deepak On Mon, Apr 20, 2009 at 3:05 PM, afaf afafel...@gmail.com wrote: hello, I am using symfony 1.2, I have a page which contains a list, an image and ofcourse footer and header and I want to convert it to pdf file. Any suggestions please? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Doctrine I18n - Problem to get a localized value
Hi, I have a problem to get the translation of a column using I18n doctrine behavior. My yaml schema is : ubRoom: actAs: I18N: fields: [label] className: %CLASS%I18n columns: id: { type:integer(2), primary:true, autoincrement: true } country_iso: { type:string(2), notnull:true } room_type: { type:string(2), notnull:true } label: { type:string(32), notnull:true } relations: ubCountry: { onDelete: CASCADE, local: country_iso, foreign: iso } When I run the request without specify the current culture, I can't get any data with a -getLabel() ou -label [...] $q = $this-createQuery('r') -where('r.room_type = ?') -andWhere('r.country_iso = ?'); [...] -getLabel = print nothing -label = print nothing If I specify the culture in the DQL, I can use -Translation[$culture]-label to get the localized value of the column. [...] $q = $this-createQuery('r') -leftJoin('r.Translation t') -where('r.room_type = ?') -andWhere('r.country_iso = ?') -andWhere('t.lang = ?'); [...] -Translation[$culture]-label = print the correct value of the localized label column. I don't understand why the first case isn't working. Someone can help me ? Thank you, Fabien --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] How to use dates avoiding the timestamp limitations?
First of all, I'm sorry for double posting this question in the mail- group and in the forum, not sure which is more appropriate, if not both :) Hey there, As you probably know, the TIMESTAMP data type has limitations. (minimum and max dates allowed, cause of the the int base datatype - from Fri, 13 Dec 1901 20:45:54 UTC to Tue, 19 Jan 2038 03:14:07 UTC). What should we do when we need to accept dates that occur before or after that? I use Doctrine and MySql for my symfony projects. MySql supports the DATE data type which does not have the timestamp limitation. If I use in my schema a column of datatype date it translates it correctly into the SQL schema, but the validation process and internal conversions inside symfony+Docstrine handle it as a timestamp, and, therefore, make me limited again. I've reopened what seems to be a related ticket http://trac.symfony-project.org/ticket/5701 so that symfony can be changed. (I've looked into sf code but am quite lost of where to start to solve this, I would need to study the validation and doctrine classes) But, what is the best thing to do meanwhile to bypass this problem and accept old dates using a sfWidgetFormI18nDate? Thankyou very much for your help! Keep up the good work! --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Doctrine I18n - Problem to get a localized value
Hello, Add -leftJoin('r.Translation t') in your query. Bertrand Le 20 avr. 09 à 17:01, FlyLM [ML] a écrit : When I run the request without specify the current culture, I can't get any data with a -getLabel() ou -label [...] $q = $this-createQuery('r') -where('r.room_type = ?') -andWhere('r.country_iso = ?'); [...] -getLabel = print nothing -label = print nothing --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfDoctrineGuardPlugin getProfile not working (at least for me)
Also add foreignType: one. The relationship defaults to many on the other end so you need to force it to be one to one. - Jon On Mon, Apr 20, 2009 at 8:48 AM, Christian Haintz christian.hai...@gmail.com wrote: Thanks Jon, it now find's the getProfile() Method but a new error came up: Call to undefined method Doctrine_Collection::getEmail() when I call $this-getUser()-getProfile()-getEmail() from my action My Steps: I changed the line in the schema.yml as you said. Then I did a symfony doctrine-build-all-reload and asymfony cc Best Regards, Christian On Apr 20, 2009, at 3:28 PM, Jonathan Wage wrote: sf_guard_user_profile: actAs: [Timestampable] className: sfGuardUserProfile columns: id: type: integer primary: true autoincrement: true user_id: type: integer(4) email: string(255) relations: sfGuardUser: local: user_id onDelete: CASCADE foreignAlias: Profile You are missing the foreignAlias causing the relationship name on the side of the User to be called Profile. - Jon On Mon, Apr 20, 2009 at 7:15 AM, Christian Haintz christian.hai...@gmail.com wrote: Hi I installed the Plugin as it is written in the Readme but i can't access the Profile. I have the same symptoms as described in the Forum Post [1] but the solution there is kind of a workaround than a real solution i think. Is there probably an error in the getProfile Method in sf1.2 with doctrine or do we miss something? My Schema.yml (not the same as in the Readme because in the readme i think it is not valid doctrine schema syntax) sf_guard_user_profile: actAs: [Timestampable] className: sfGuardUserProfile columns: id: type: integer primary: true autoincrement: true user_id: type: integer(4) email: string(255) relations: sfGuardUser: local: user_id onDelete: CASCADE After i loaded the fixtures and logged in I try to access the Profile like this from the Action: $this-getUser()-getProfile()-getEmail() Thx for any help, Christian [1] http://forum.symfony-project.org/index.php/m/73972/ -- Christian Haintz Student of Software Development and Business Management Graz, University of Technology -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org -- Christian Haintz Student of Software Development and Business Management Graz, University of Technology -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Doctrine I18n - Problem to get a localized value
2009/4/20 Bertrand Zuchuat bertrand.zuch...@rero.ch Hello, Add -leftJoin('r.Translation t') in your query. But I can't access the localized value with getLabel method or label object property. I need to use the Translation associative array. I thought that a proxy would automatically create a link between this associative Translation array and the property or the value return by the method of the objet. Bertrand Le 20 avr. 09 à 17:01, FlyLM [ML] a écrit : When I run the request without specify the current culture, I can't get any data with a -getLabel() ou -label [...] $q = $this-createQuery('r') -where('r.room_type = ?') -andWhere('r.country_iso = ?'); [...] -getLabel = print nothing -label = print nothing --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Can no longer view Symfony Plugins with Content Encoding Error
The Symfony Plugins page no longer loads for me in Firefox 3.1b3 with Content Encoding Error: The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. http://www.symfony-project.org/plugins/ Screenshot: http://img.skitch.com/20090420-88kkj4qd215fqed23wcmua1q8n.jpg Was working last week. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: jquery - json problem
hi! What is returning this ? $this-getResponse()-setHttpHeader(X-JSON, '('.$output.')'); i might think your JSON response is bad. and also js variable REQUEST is not defined in ?php echo jq_link_to_remote('Refresh the letter', array( 'url' = 'test/test', 'dataType' = 'json', 'complete' = 'updateJSON(request, json)' )) ? I do not know the issues but it might help you out to alert(typeof(request)) inside the js code On Mon, Apr 20, 2009 at 5:32 PM, Guychmyrat Amanmyradov guychmy...@yahoo.com.tr wrote: Hello. i am tring to use jquery + json but there is a problem : ?php echo jq_link_to_remote('Refresh the letter', array( 'url' = 'test/test', 'dataType' = 'json', 'complete' = 'updateJSON(request, json)' )) ? i got request is not defined onclick()() error. my test function is : public function executeTest() { $output = '[[title, My basic letter], [name, Mr Brown]]'; $this-getResponse()-setHttpHeader(X-JSON, '('.$output.')'); return sfView::HEADER_ONLY; } js function is : function updateJSON(request, json) { alert(json.length); } what is the problem.. ? -- Yahoo! Türkiye açıldı! Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de! www.yahoo.com.tr http://tr.yahoo.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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: i get a blank white screen, even in dev mode, even with sfErrorHandler installed
Interesting. I kept looking in the error log and I was frustrated that there was no error. But now, I just looked in the access log. The access is being recorded, but it is sending a 500 response (is that technically correct? Do 500 errors belong in the access log, instead of the error log? I find that surprising). But for some reason, the 500 error doesn't appear on screen: http://lawrence.sds5.com/esociety/web/test_dev.php All I get is a blank white screen. What could choke a 500 response before it is sent to the browser? On Apr 20, 9:03 am, Jeremy Benoist jeremy.beno...@gmail.com wrote: Hi, I recently got a similar problem on the same env : Apache/2.2.8 (Ubuntu) + PHP/5.2.4-2ubuntu5.5. When I took a look to frontend.log, there were this error : ALERT - canary mismatch on efree() - heap overflow detected sfYamlParser.class.php Never really find how to fix it ... I just reload apache, and the problem is gone. But sometimes, it comes back... On 20 avr, 11:24, Lee Bolding l...@leesbian.net wrote: On 20 Apr 2009, at 07:24, Lawrence Krubner wrote: Given a blank white screen, there are 3 main things I should check: 1.) clear the cache 2.) look for parse errors in yml files 3.) look for permission errors but I have done all these things. So what is next? What 4th area typically causes problems? You've already answered your own question On 20 Apr 2009, at 07:20, Lawrence Krubner wrote: The sysadmin might have chrooted the directory I'm working, so that the project now points to a local copy of the core symfony framework, rather than pointing to the standard location: /usr/share/php/symfony The 4th thing to check is other people 'fixing' my application that wasn't broke I'm pretty sure this is the root of your problem. Find your SysAdmin - beat them with a stale baguette, like one of our cops would beat a G20 protester Whenever we have our SysAdmins play with our applications, it's done whilst a developer is with them - so that they can be sure to check everything that could cause the application to break - and to actually test that it still works afterwards. It certainly sounds like a permissions issue - make sure you've done a chmod -R 777 on both log/ and cache/ Other than that, make sure you've got a sensible error logging level set, and that display_errors in on... It's going to be a silly error - so you just need to think through everything logically :) --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfDoctrine behavior sluggable update
Hello, I got it at last. Obviously The book and several other tutorials are not that updated. I got the answer scanning the Jobeet tutorial. In order to have no errors while updating i18n sluggable items you have to define in your data model what will the slug will be unique by. An example would be: actAs: I18n: fields: [title, description, excerpt] actAs: Sluggable: { fields: [title], uniqueBy: [lang, title] } Dont really know the internal mechanism because previously I did have unique slug for every language but this way it works. Merry coding, Anton On Mar 4, 5:55 pm, Olivier. fac...@gmail.com wrote: Hi, I don't understand the way the Sluggable Behavior act on an update. For me, if the canUpdate option is set to true and you get a change on one of the field parent of the slug, then he must update himself. It's why i made a change on the preUpdate method of the listener : File : /sfProject/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/ vendor/doctrine/Doctrine/Template/Listener/Sluggable.php Line : 76 public function preUpdate(Doctrine_Event $event) { if (false !== $this-_options['unique']) { $record = $event-getInvoker(); $name = $record-getTable()-getFieldName($this-_options ['name']); $test = array_intersect($this-_options['fields'], array_keys($record-getModified())); if ( ! $record-$name || (false !== $this-_options['canUpdate'] !empty($test))) { $record-$name = null; $record-$name = $this-buildSlug($record); } } } (I add $record-$name = null; because if it's not null the value is not re-generated because of $proposal = $record-$name ? $record- $name : $slugFromFields; in getUniqueSlug() line 135.) I'm not sure it's the best way to handle this, but it works. What you thing of this modification ? Regards, Olivier. PS : I hope i make me clear, cause my english is a bit rusty ^^ --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
Re : [symfony-users] how to generate pdf?
What about using the sfTCPDFPlugin ? :) ++ De : afaf afafel...@gmail.com À : symfony users symfony-users@googlegroups.com Envoyé le : Lundi, 20 Avril 2009, 11h35mn 16s Objet : [symfony-users] how to generate pdf? hello, I am using symfony 1.2, I have a page which contains a list, an image and ofcourse footer and header and I want to convert it to pdf file. Any suggestions please? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Symfony Extension: Sympal
Hi, Some of you have probably already heard a little bit about Sympal, but I'd like to formally introduce you to it now. Sympal is the product of dozens upon dozens of CMS type websites/applications built on top of symfony. As I built each new project with the same ideas, the implementation and structure of the system grew strong. So, I decided to take those same ideas I had built over and over and re-build it all again from scratch. The name Sympal was born through the idea of having a Drupal-like interface built on top of Symfony. This idea started as a small sfSympalPlugin and has grown to be a collection of Sympal plugins that extend the entire Symfony platform to give you dozens of tools at your finger tips to assist with rapidly building content based web applications. The development is still in the beta stages but the feature list for 1.0 has pretty much been frozen. I am not in stability/bug fix mode and am beta testing by building sites and having people/companies try it on projects as well. You can help by doing the same :) and reporting any bugs you encounter, as well as features you'd like to see in the next version. Below are some links to get started with Sympal. - Website - http://www.sympalphp.org/ - Trac - http://trac.jwage.com/sympal/ - Documentation - http://www.sympalphp.org/documentation/en/ - The Book - http://www.sympalphp.org/documentation/book/en - Sympal Plugins - http://www.sympalphp.org/plugins - Preview(screenshots and screencasts) - http://www.sympalphp.org/preview/en - Features - http://www.sympalphp.org/features Thanks, Jon -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: doctrine generator bug?
Everything works now, thanks and sorry I should have read the documentation. I cant filter now by the inv_no field, being the pk. I know the pk are ignored in the forms, why? Thanks again. On 4/20/09, Jonathan Wage jonw...@gmail.com wrote: No I meant this: invoices: class:sfDoctrineRouteCollection options: model: ABInvoice module: invoices prefix_path:invoices with_wildcard_routes: true column: inv_no On Mon, Apr 20, 2009 at 8:59 AM, Gandalf ganda...@gmail.com wrote: no dice invoices: class:sfDoctrineRouteCollection options: model: ABInvoice module: invoices prefix_path:invoices with_wildcard_routes: true pk_id: inv_no 500 | Internal Server Error | InvalidArgumentException The /invoices/:id/edit.:sf_format route has some missing mandatory parameters (:id). stack trace at () in SF_SYMFONY_LIB_DIR\routing\sfRoute.class.php line 216 ... // all params must be given if ($diff = array_diff_key($this-variables, $tparams)) { throw new InvalidArgumentException(sprintf('The %s route has some missing mandatory parameters (%s).', $this-pattern, implode(', ', $diff))); } if ($this-options['generate_shortest_url'] || $this-customToken) at sfRoute-generate(array(), '', '') in SF_SYMFONY_LIB_DIR\routing\sfRequestRoute.class.php line 98 ... at sfRequestRoute-generate(array(), '') in SF_SYMFONY_LIB_DIR\routing\sfObjectRoute.class.php line 81 ... at sfObjectRoute-generate(array(object('sfOutputEscaperIteratorDecorator')), array('path_info' = '/invoices', 'prefix' = '/backend_dev.php', 'method' = 'GET', null, 'host' = 'ocean.localhost', 'is_secure' = '', 'request_uri' = 'http://ocean.localhost/backend_dev.php/invoices'http://ocean.localhost/backend_dev.php/invoices%27), '') in SF_SYMFONY_LIB_DIR\routing\sfPatternRouting.class.php line 325 ... at sfPatternRouting-generate('invoices_edit', array(object('sfOutputEscaperIteratorDecorator')), '') in SF_SYMFONY_LIB_DIR\controller\sfWebController.class.php line 74 ... at sfWebController-genUrl(array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), '') in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 88 ... at url_for1(array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), '') in n/a line n/a ... at call_user_func_array('url_for1', array(array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), '')) in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 115 ... at url_for(array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), '') in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 45 ... at link_to1('2041', array('sf_route' = 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), array()) in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 24 ... at link_to2('2041', 'invoices_edit', object('sfOutputEscaperIteratorDecorator')) in n/a line n/a ... at call_user_func_array('link_to2', array('2041', 'invoices_edit', object('sfOutputEscaperIteratorDecorator'))) in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 176 ... at link_to('2041', 'invoices_edit', object('sfOutputEscaperIteratorDecorator')) in SF_ROOT_DIR\cache\backend\dev\modules\autoInvoices\templates\_list_td_tabular.php line 2 ... at require('E:\w\gocean\cache\backend\dev\modules\autoInvoices\templates\_list_td_tabular.php') in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 77 ... at sfPHPView-renderFile('E:\w\gocean\cache\backend\dev\modules/autoInvoices/templates/_list_td_tabular.php') in SF_SYMFONY_LIB_DIR\view\sfPartialView.class.php line 86 ... at sfPartialView-render() in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 218 ... at get_partial('invoices/list_td_tabular', array(object('sfOutputEscaperIteratorDecorator'))) in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 180 ... at include_partial('invoices/list_td_tabular', array(object('sfOutputEscaperIteratorDecorator'))) in SF_ROOT_DIR\cache\backend\dev\modules\autoInvoices\templates\_list.php line 31 ... at require('E:\w\gocean\cache\backend\dev\modules\autoInvoices\templates\_list.php') in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 77 ... at sfPHPView-renderFile('E:\w\gocean\cache\backend\dev\modules/autoInvoices/templates/_list.php') in SF_SYMFONY_LIB_DIR\view\sfPartialView.class.php line 86 ... at sfPartialView-render() in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 218 ... at get_partial('invoices/list', array(object('sfOutputEscaperObjectDecorator'), object('sfOutputEscaperArrayDecorator'), object('invoicesGeneratorHelper'))) in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 180 ... at include_partial('invoices/list', array(object('sfOutputEscaperObjectDecorator'), object('sfOutputEscaperArrayDecorator'),
[symfony-users] Re: Symfony Extension: Sympal
Very nice is this for sf1.2? On Mon, Apr 20, 2009 at 7:14 PM, Jonathan Wage jonw...@gmail.com wrote: Hi, Some of you have probably already heard a little bit about Sympal, but I'd like to formally introduce you to it now. Sympal is the product of dozens upon dozens of CMS type websites/applications built on top of symfony. As I built each new project with the same ideas, the implementation and structure of the system grew strong. So, I decided to take those same ideas I had built over and over and re-build it all again from scratch. The name Sympal was born through the idea of having a Drupal-like interface built on top of Symfony. This idea started as a small sfSympalPlugin and has grown to be a collection of Sympal plugins that extend the entire Symfony platform to give you dozens of tools at your finger tips to assist with rapidly building content based web applications. The development is still in the beta stages but the feature list for 1.0 has pretty much been frozen. I am not in stability/bug fix mode and am beta testing by building sites and having people/companies try it on projects as well. You can help by doing the same :) and reporting any bugs you encounter, as well as features you'd like to see in the next version. Below are some links to get started with Sympal. - Website - http://www.sympalphp.org/ - Trac - http://trac.jwage.com/sympal/ - Documentation - http://www.sympalphp.org/documentation/en/ - The Book - http://www.sympalphp.org/documentation/book/en - Sympal Plugins - http://www.sympalphp.org/plugins - Preview(screenshots and screencasts) - http://www.sympalphp.org/preview/en - Features - http://www.sympalphp.org/features Thanks, Jon -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony Extension: Sympal
Yes. I think the first real stable version will be based on symfony 1.3 but for right now it is being developed in 1.2 - Jon On Mon, Apr 20, 2009 at 1:17 PM, Filipe Costa bue...@gmail.com wrote: Very nice is this for sf1.2? On Mon, Apr 20, 2009 at 7:14 PM, Jonathan Wage jonw...@gmail.com wrote: Hi, Some of you have probably already heard a little bit about Sympal, but I'd like to formally introduce you to it now. Sympal is the product of dozens upon dozens of CMS type websites/applications built on top of symfony. As I built each new project with the same ideas, the implementation and structure of the system grew strong. So, I decided to take those same ideas I had built over and over and re-build it all again from scratch. The name Sympal was born through the idea of having a Drupal-like interface built on top of Symfony. This idea started as a small sfSympalPlugin and has grown to be a collection of Sympal plugins that extend the entire Symfony platform to give you dozens of tools at your finger tips to assist with rapidly building content based web applications. The development is still in the beta stages but the feature list for 1.0 has pretty much been frozen. I am not in stability/bug fix mode and am beta testing by building sites and having people/companies try it on projects as well. You can help by doing the same :) and reporting any bugs you encounter, as well as features you'd like to see in the next version. Below are some links to get started with Sympal. - Website - http://www.sympalphp.org/ - Trac - http://trac.jwage.com/sympal/ - Documentation - http://www.sympalphp.org/documentation/en/ - The Book - http://www.sympalphp.org/documentation/book/en - Sympal Plugins - http://www.sympalphp.org/plugins - Preview(screenshots and screencasts) - http://www.sympalphp.org/preview/en - Features - http://www.sympalphp.org/features Thanks, Jon -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony Extension: Sympal
I've been following the progress of this project, it looks really nice. I hope to try it out pretty soon with one of my projects. Thanks for sharing. Pablo On Mon, Apr 20, 2009 at 2:14 PM, Jonathan Wage jonw...@gmail.com wrote: Hi, Some of you have probably already heard a little bit about Sympal, but I'd like to formally introduce you to it now. Sympal is the product of dozens upon dozens of CMS type websites/applications built on top of symfony. As I built each new project with the same ideas, the implementation and structure of the system grew strong. So, I decided to take those same ideas I had built over and over and re-build it all again from scratch. The name Sympal was born through the idea of having a Drupal-like interface built on top of Symfony. This idea started as a small sfSympalPlugin and has grown to be a collection of Sympal plugins that extend the entire Symfony platform to give you dozens of tools at your finger tips to assist with rapidly building content based web applications. The development is still in the beta stages but the feature list for 1.0 has pretty much been frozen. I am not in stability/bug fix mode and am beta testing by building sites and having people/companies try it on projects as well. You can help by doing the same :) and reporting any bugs you encounter, as well as features you'd like to see in the next version. Below are some links to get started with Sympal. - Website - http://www.sympalphp.org/ - Trac - http://trac.jwage.com/sympal/ - Documentation - http://www.sympalphp.org/documentation/en/ - The Book - http://www.sympalphp.org/documentation/book/en - Sympal Plugins - http://www.sympalphp.org/plugins - Preview(screenshots and screencasts) - http://www.sympalphp.org/preview/en - Features - http://www.sympalphp.org/features Thanks, Jon -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Force use of default values
Actually, I noticed that the field takes the value stored in database instead of taking my default value (normal behaviour). So, now my question is : how to force use of these default values ? -- Adrien On 20 avr, 19:42, Adrien Mogenet adrien.moge...@gmail.com wrote: Hi all, there is something - strange ? - that I don't understand. Let say I have a field updated_by within the class user. In the class form : public function configure() { .. $this-setDefault('updated_by', '42'); ... } By this way, it doesn't take effect. But when I put the code in action class : public function executeEdit() { ... $this-form-setDefault('updated_by', '42'); } The default value is set correctly. This is the first time I discover this behaviour... is it really normal ? Is there a way to do what I wanted to write ? I don't think it matters but anyway : the default value '42' is actually get from sfUser::getAttribute('user_id', null, 'user'); method. -- Adrien Mogenet --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Doctrine I18n - Problem to get a localized value
I've found the mistake in myUser.class.php. I try to change the culture after the initizialisation of the user objet, but something goes wrong, and after, impossible to change again the culture When I comment the bad function in my User class, I can use getLabel or label to get localized value of the column. 2009/4/20 FlyLM [ML] flylm...@gmail.com 2009/4/20 Bertrand Zuchuat bertrand.zuch...@rero.ch Hello, Add -leftJoin('r.Translation t') in your query. But I can't access the localized value with getLabel method or label object property. I need to use the Translation associative array. I thought that a proxy would automatically create a link between this associative Translation array and the property or the value return by the method of the objet. Bertrand Le 20 avr. 09 à 17:01, FlyLM [ML] a écrit : When I run the request without specify the current culture, I can't get any data with a -getLabel() ou -label [...] $q = $this-createQuery('r') -where('r.room_type = ?') -andWhere('r.country_iso = ?'); [...] -getLabel = print nothing -label = print nothing --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: i get a blank white screen, even in dev mode, even with sfErrorHandler installed
On Apr 20, 5:24 am, Lee Bolding l...@leesbian.net wrote: On 20 Apr 2009, at 07:24, Lawrence Krubner wrote: Given a blank white screen, there are 3 main things I should check: 1.) clear the cache 2.) look for parse errors in yml files 3.) look for permission errors but I have done all these things. So what is next? What 4th area typically causes problems? You've already answered your own question On 20 Apr 2009, at 07:20, Lawrence Krubner wrote: The sysadmin might have chrooted the directory I'm working, so that the project now points to a local copy of the core symfony framework, rather than pointing to the standard location: /usr/share/php/symfony The 4th thing to check is other people 'fixing' my application that wasn't broke I'm pretty sure this is the root of your problem. Find your SysAdmin - beat them with a stale baguette, like one of our cops would beat a G20 protester Whenever we have our SysAdmins play with our applications, it's done whilst a developer is with them - so that they can be sure to check everything that could cause the application to break - and to actually test that it still works afterwards. Okay, it seems you were right. Talked to the sysadmin. He thought the issue was arising from suexec he imposed on the server. Finally got something to appear on the front page: http://lawrence.sds5.com/esociety/web/test_dev.php though the inner pages are still blank white: http://lawrence.sds5.com/esociety/web/comment/index It certainly sounds like a permissions issue - make sure you've done a chmod -R 777 on both log/ and cache/ Other than that, make sure you've got a sensible error logging level set, and that display_errors in on... It's going to be a silly error - so you just need to think through everything logically :) --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: i get a blank white screen, even in dev mode, even with sfErrorHandler installed
This is your error : Fatal error: Call to undefined method BasePeer::getmapbuilder() in / home/lawrence/public_html/esociety/lib/model/om/BaseCommentPeer.php on line 69 From this URL : http://lawrence.sds5.com/esociety/web/test_dev.php/comment/index On 20 Apr 2009, at 21:11, Lawrence Krubner wrote: On Apr 20, 5:24 am, Lee Bolding l...@leesbian.net wrote: On 20 Apr 2009, at 07:24, Lawrence Krubner wrote: Given a blank white screen, there are 3 main things I should check: 1.) clear the cache 2.) look for parse errors in yml files 3.) look for permission errors but I have done all these things. So what is next? What 4th area typically causes problems? You've already answered your own question On 20 Apr 2009, at 07:20, Lawrence Krubner wrote: The sysadmin might have chrooted the directory I'm working, so that the project now points to a local copy of the core symfony framework, rather than pointing to the standard location: /usr/share/php/symfony The 4th thing to check is other people 'fixing' my application that wasn't broke I'm pretty sure this is the root of your problem. Find your SysAdmin - beat them with a stale baguette, like one of our cops would beat a G20 protester Whenever we have our SysAdmins play with our applications, it's done whilst a developer is with them - so that they can be sure to check everything that could cause the application to break - and to actually test that it still works afterwards. Okay, it seems you were right. Talked to the sysadmin. He thought the issue was arising from suexec he imposed on the server. Finally got something to appear on the front page: http://lawrence.sds5.com/esociety/web/test_dev.php though the inner pages are still blank white: http://lawrence.sds5.com/esociety/web/comment/index It certainly sounds like a permissions issue - make sure you've done a chmod -R 777 on both log/ and cache/ Other than that, make sure you've got a sensible error logging level set, and that display_errors in on... It's going to be a silly error - so you just need to think through everything logically :) --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] myUser initialize, Doctrine strange issue.
Hi, I want to set the real culture of my user at initialization. I've a very strange issue with Doctrine and culture. The application have the default culture set to en. For the example, I put this in an action method : [...] $this-getUser-setCulture('fr'); $this-test = Doctrine::getTable('ProductType') -findAll(); If I initialize my user class with the code below : [...] public function initialize() { parent::initialize(); } The result for $test is ok, all localized columns are in 'french' If I do Doctrine requests after the initialization like this : public function initialize() { parent::initialize(); Doctrine::getTable(...) -...; } The culture seems to be good, getUser-getCulture() prints 'fr' but all Doctrine requests use the defaut culture 'en' and all request result are badly localized. I don't understant what's wrong. Thank you for help. Fabien --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Something I don't understand with form default values
2009/4/20 Adrien Mogenet adrien.moge...@gmail.com Hi all, there is something - strange ? - that I don't understand. Let say I have a field updated_by within the class user. In the class form : public function configure() { .. $this-setDefault('updated_by', '42'); ... } Try this : $this-widgetSchema-setDefault('updated_by', '42'); --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Something I don't understand with form default values
As I tought it changed nothing... :-/ -- Adrien On 20 avr, 23:28, FlyLM [ML] flylm...@gmail.com wrote: 2009/4/20 Adrien Mogenet adrien.moge...@gmail.com Hi all, there is something - strange ? - that I don't understand. Let say I have a field updated_by within the class user. In the class form : public function configure() { .. $this-setDefault('updated_by', '42'); ... } Try this : $this-widgetSchema-setDefault('updated_by', '42'); --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Does a facility for plugin.yml?
I could have swore that in some version you could create a plugin.yml file (or maybe it was pluginName.yml) in your Plugin's config dir to sort of use as the base default settings. But I dont see the plugins key anywhere in settings tab in web debug. For example if i want to: $plugin = sfConfig::get('plugins_myplugin_namespace', array()); $app = sfConfig::get('app_myplugin_namespace', array()); $config = sfToolkit::arrayDeepMerge($plugin, $app); Was this never the case, is it just no longer supported, or am I doing something wrong? Also what are some alternative ways to accomplish this? Id rather not hardcode the defaults in the directly in the code if i can help it. Also this might require my own config handler? thanks! --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] when I try to use propel:build-model I get error
If I run this command: php symfony propel:build-model I get this error: Some problems occurred when executing the task: build-propel.xml:465:22: Execution of the target buildfile failed. Aborting. If the exception message is not clear enough, read the output of the task for more information What would cause this? I've already changed all the permissions to 0777: drwxrwxrwx 2 lawrence lawrence 4096 2009-04-20 22:26 . drwxr-xr-x 12 lawrence lawrence 4096 2009-04-20 22:22 .. -rwxrwxrwx 1 lawrence lawrence 122 2009-04-20 22:15 databases.yml -rwxrwxrwx 1 lawrence lawrence 216 2009-04-20 22:14 ProjectConfiguration.class.php -rwxrwxrwx 1 lawrence lawrence 2461 2009-04-20 22:15 propel.ini -rwxrwxrwx 1 lawrence lawrence 28 2009-04-20 22:15 properties.ini -rwxrwxrwx 1 lawrence lawrence 56 2009-04-20 22:15 rsync_exclude.txt -rwxrwxrwx 1 lawrence lawrence 3445 2009-04-20 22:15 schema.yml The full output is below: schemaconverting /home/lawrence/publ...ciety/config/schema.yml to XML schemaputting /home/lawrence/public_h...ety/config/generated-schema.xml propelRunning om phing task [propel-om] Could not perform XLST transformation. Make sure PHP has been compiled/configured to support XSLT. [phingcall] Error importing plugins/sfPropelPlugin/lib/propel/builder/ SfPeerBuilder.php Execution of target om failed for the following reason: /usr/share/ php/symfony/plugins/sfPropelPlugin/lib/vendor/propel-generator/build- propel.xml:465:22: Execution of the target buildfile failed. Aborting. [phing] /usr/share/php/symfony/plugins/sfPropelPlugin/lib/vendor/ propel-generator/build-propel.xml:465:22: Execution of the target buildfile failed. Aborting. Some problems occurred when executing the task: build-propel.xml:465:22: Execution of the target buildfile failed. Aborting. If the exception message is not clear enough, read the output of the task for more information file- /home/lawrence/public_html/esociety/config/generated-schema.xml --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Symfony 1.0 form validator propel select?
Hi, Can't seems to find a validator for Symfony 1.0 for checking if an ID exists in a table. Anyone knows if that exists in Symfony 1.0? A plugin or something? Not hard to write my own validator, but would be good to use existing code. -- 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 group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: when I try to use propel:build-model I get error
On Mon, 20 Apr 2009, Lawrence Krubner wrote: [propel-om] Could not perform XLST transformation. Make sure PHP has been compiled/configured to support XSLT. I think perhaps the error above is the problem? -- --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony 1.0 form validator propel select?
I wrote a simple one just now ... in case someone else need it, here it is class sfPropelRecordExistsValidator extends sfValidator { public function execute ($value, $error) { $class = $this-getParameter('class'); $column = $this-getParameter('column'); $class_peer = $class.'Peer'; $table_name = constant($class_peer.'::TABLE_NAME'); $c = new Criteria(); $c-add($table_name.'.'.$column, $value); $result = call_user_func(array($class_peer, 'doSelect'), $c); if ($result) { return true; } else { $error = $this-getParameter('error_msg'); return false; } } public function initialize ($context, $parameters = null) { // Initialize parent parent::initialize($context); // Set default parameters value $this-setParameter('column', 'ID'); // Set parameters $this-getParameterHolder()-add($parameters); return true; } } To use it in validation yml file: age_bracket_id: required: msg:Required sfPropelRecordExistsValidator: class: AgeBracket column: ID error_msg: Required, please select one On Tue, Apr 21, 2009 at 3:20 PM, Eno symb...@gmail.com wrote: On Tue, 21 Apr 2009, Sid Bachtiar wrote: Can't seems to find a validator for Symfony 1.0 for checking if an ID exists in a table. Anyone knows if that exists in Symfony 1.0? A plugin or something? Last time I had a similar need, I wrote my own validator, but I would love to know if there's another way. -- -- 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 group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: when I try to use propel:build-model I get error
On Apr 20, 11:13 pm, Eno symb...@gmail.com wrote: On Mon, 20 Apr 2009, Lawrence Krubner wrote: [propel-om] Could not perform XLST transformation. Make sure PHP has been compiled/configured to support XSLT. I think perhaps the error above is the problem? Thanks for the response, but that is not the problem. Apparently the issue with XSLT is not very important. I just tested this by going back to the old server, where all of the code had been working without a problem, and running the same command, against the schema.yml: php symfony propel:build-model And I see the same error: [propel-om] Processing: generated-schema.xml [propel-om] Could not perform XSLT transformation. Make sure PHP has been compiled/configured to support XSLT. Except on this older server, the code works perfectly and Symfony continues past the mistake and generates the model classes. On the new server, it dies. The older server runs Symfony 1.1 and the new server runs Symfony 1.2. Would that cause this problem? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: when I try to use propel:build-model I get error
On Apr 20, 11:13 pm, Eno symb...@gmail.com wrote: On Mon, 20 Apr 2009, Lawrence Krubner wrote: [propel-om] Could not perform XLST transformation. Make sure PHP has been compiled/configured to support XSLT. I think perhaps the error above is the problem? On the older server, where everything works, I can try this command, and the code runs, even though that same error appears: lawre...@paris:~/public_html/esociety$ php symfony propel:build-model schemaconverting /home/lawrence/publ...ciety/config/schema.yml to XML schemaputting /home/lawrence/public_h...ety/config/generated-schema.xml Buildfile: /usr/share/php/symfony/plugins/sfPropelPlugin/lib/vendor/ propel-generator/build.xml [resolvepath] Resolved /home/lawrence/public_html/esociety/config to / home/lawrence/public_html/esociety/config propel-project-builder check-project-or-dir-set: propel-project-builder check-project-set: propel-project-builder set-project-dir: propel-project-builder check-buildprops-exists: propel-project-builder check-buildprops-for-propel-gen: propel-project-builder check-buildprops: propel-project-builder configure: [echo] Loading project-specific props from /home/lawrence/ public_html/esociety/config/propel.ini [property] Loading /home/lawrence/public_html/esociety/config/ propel.ini propel-project-builder om: [phing] Calling Buildfile '/usr/share/php/symfony/plugins/ sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml' with target 'om' [property] Loading /usr/share/php/symfony/plugins/sfPropelPlugin/lib/ vendor/propel-generator/./default.properties propel check-run-only-on-schema-change: propel om-check: propel om: [echo] +--+ [echo] | | [echo] | Generating Peer-based Object Model for | [echo] | YOUR Propel project! (NEW OM BUILDERS)! | [echo] | | [echo] +--+ [phingcall] Calling Buildfile '/usr/share/php/symfony/plugins/ sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml' with target 'om-template' [property] Loading /usr/share/php/symfony/plugins/sfPropelPlugin/lib/ vendor/propel-generator/./default.properties propel om-template: [propel-om] Target database type: mysql [propel-om] Target package: lib.model [propel-om] Using template path: /usr/share/php/symfony/plugins/ sfPropelPlugin/lib/vendor/propel-generator/templates [propel-om] Output directory: /home/lawrence/public_html/esociety [propel-om] Processing: generated-schema.xml [propel-om] Could not perform XSLT transformation. Make sure PHP has been compiled/configured to support XSLT. [propel-om] Processing Datamodel : JoinedDataModel [propel-om] - processing database : propel [propel-om] + alumni [propel-om] - BaseAlumniPeer [builder: SfPeerBuilder] [propel-om] - BaseAlumni [builder: SfObjectBuilder] [propel-om] - AlumniMapBuilder [builder: SfMapBuilderBuilder] [propel-om] - (exists) AlumniPeer [propel-om] - (exists) Alumni [propel-om] + comments [propel-om] - BaseCommentPeer [builder: SfPeerBuilder] [propel-om] - BaseComment [builder: SfObjectBuilder] [propel-om] - CommentMapBuilder [builder: SfMapBuilderBuilder] [propel-om] - (exists) CommentPeer [propel-om] - (exists) Comment [propel-om] + contacts [propel-om] - BaseContactPeer [builder: SfPeerBuilder] [propel-om] - BaseContact [builder: SfObjectBuilder] [propel-om] - ContactMapBuilder [builder: SfMapBuilderBuilder] [propel-om] - (exists) ContactPeer [propel-om] - (exists) Contact [propel-om] + events [propel-om] - BaseEventPeer [builder: SfPeerBuilder] [propel-om] - BaseEvent [builder: SfObjectBuilder] [propel-om] - EventMapBuilder [builder: SfMapBuilderBuilder] [propel-om] - (exists) EventPeer [propel-om] - (exists) Event [propel-om] + options [propel-om] - BaseOptionPeer [builder: SfPeerBuilder] [propel-om] - BaseOption [builder: SfObjectBuilder] [propel-om] - OptionMapBuilder [builder: SfMapBuilderBuilder] [propel-om] - (exists) OptionPeer [propel-om] - (exists) Option [propel-om] + sponsors [propel-om] - BaseSponsorPeer [builder: SfPeerBuilder] [propel-om] - BaseSponsor [builder: SfObjectBuilder] [propel-om] - SponsorMapBuilder [builder: SfMapBuilderBuilder] [propel-om] - (exists) SponsorPeer [propel-om] - (exists) Sponsor [propel-om] + staff [propel-om] - BaseStaffPeer [builder: SfPeerBuilder] [propel-om] - BaseStaff [builder: SfObjectBuilder] [propel-om] - StaffMapBuilder [builder: SfMapBuilderBuilder] [propel-om]
[symfony-users] edit data of localized schema in backend
i'm currently having problems when i try to edit the values of an localized schema in the symfony backend. i use the following schema:: keywords: _attributes: { phpName: Keywords, isI18N: true, i18nTable: keywords_i18n } id: ~ keywords_i18n: _attributes: { phpName: KeywordsI18n } id: { type: integer, required: true, primaryKey: true, foreignTable: keywords, foreignReference: id } culture: { isCulture: true, type: varchar, size: 7, required: true, primaryKey: true } keyword: { type: varchar(255), required: true, index: unique } now, when i try to edit an exisiting keyword-entry, the validation engine throws the error An object with the same keyword already exist. as i have a localized schema for 5 languages, this error message is displayed 5 times, e.g. one error message for every language-specific input field. what's my fault? regards, lowshoe --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---