[symfony-users] Single Sign On Using Kerberos
Hi, Anybody implemented Single Sign On using Kerberos in Symfony Project. Thanx in advance. Regards Deepak Bhatia -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 get changes in modell class pre update
hello, I have a model with an integer attribute - invitationCount, in case of an model update I would need to know the old and new value. public function preUpdate($event) { $oldValue = $this-getInvitationCount(); $newValue = .? } -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] Running tests into another environment
Hello list, Although I didn't find out what was the exact cause of my problem, a colleague of mine managed to find a solution (if one day somebody needs it). The solution is to create another environment (in my case called integrationtest) and in config/factories.yml and config/settings.yml copy the configuration you have for the 'test' environment and put them into your own environment). With this little settings everythings works as one would expect. But I still cannot explain why it was failing in the first place, so if anyone as an explaination I will take it. Regards, Jean-christophe On Fri, 9 Jul 2010 14:15:58 +0200 jean-christophe zulian jean-christophe.zul...@liip.ch wrote: Hello list, I am trying to run some tests under another environment than the test environment. The goal of it would be to run 'integration' tests on a stage server. The stage server is able to talk to other servers from partners (something the developer machines cannot do). For that we basically created a new task based on the test:functional task that will run the integration tests. The tests are exactly like functional tests but the filename has a different ending (*TestIntegration.php instead of *Test.php) so that they won't be picked up by the functional test task. Also we have a specific configuration for this environment which is different from the dev or test environment (database configuration mainly). The only problem we have is that the tests are not running fine for some reason. They basically stop after a short while without reaching the end of the test. No errors is displayed and adding the '--trace' option doesn't provide more information. Here is an example of a session on the terminal: ./symfony test:integration frontend userActions LOGIN DO LOGIN # get /login htmlheadmeta http-equiv=refresh content=0;url=https://localhost/index.php/login//head/html# Looks like everything went fine. After the 'get /login' the test should continue but the execution stop for some reasons. So my question is: Is it possible to run tests under another environment than the test environment (in our case the 'integration' environment)? Or are there some technical reasons preventing tests to be run under another environment. Thanks in advance for any help, Jean-christophe -- Liip AG // Agile Web Development // T +41 26 422 25 11 CH 1700 Fribourg // GPG 0xFC648C61 // www.liip.ch signature.asc Description: PGP signature
[symfony-users] Method option in sfPropelRoute not accepted
I got a feeling that my method option is ignored: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object, method: adsasdgas } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) I gave it on purpose a name that doesn't exist in order to test it. Because I don't get an error screen, it confirms my theory that the method option is ignored. How can I set a method name from my AdvertisementPeer with which my object is picked? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] Tutorial - Day 3 - Doctrine_Connection_Sqlite_Exception
On Tue, 13 Jul 2010, Eno wrote: Looks self-explanatory: there is jobeet_job table in your database. I meant, there is NO jobeet_job table. -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] Method option in sfPropelRoute not accepted
http://www.symfony-project.org/reference/1_4/en/10-Routing#chapter_10_sub_method_for_criteria :) On 14.07.2010, at 13:20, HAUSa wrote: I got a feeling that my method option is ignored: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object, method: adsasdgas } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) I gave it on purpose a name that doesn't exist in order to test it. Because I don't get an error screen, it confirms my theory that the method option is ignored. How can I set a method name from my AdvertisementPeer with which my object is picked? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] genUrl with object
I can't use genUrl like this: genUrl('advertisement_show', $Advertisement) where $Advertisement is the object for the sfObjectRoute The only way to do so is to call it like this: genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' . $Advertisement-getSlug()) But that, ofcourse, kills the flexibility of the routing system! How can I do the top solution with getUrl? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] genUrl with object
Is your route declared as sfPropelRoute/sfDoctrineRoute? On Wed, Jul 14, 2010 at 15:23, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I can't use genUrl like this: genUrl('advertisement_show', $Advertisement) where $Advertisement is the object for the sfObjectRoute The only way to do so is to call it like this: genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' . $Advertisement-getSlug()) But that, ofcourse, kills the flexibility of the routing system! How can I do the top solution with getUrl? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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: Method option in sfPropelRoute not accepted
Doesn't work either, gets ignored as well On 14 jul, 13:37, Daniel Lohse annismcken...@googlemail.com wrote: http://www.symfony-project.org/reference/1_4/en/10-Routing#chapter_10... :) On 14.07.2010, at 13:20, HAUSa wrote: I got a feeling that my method option is ignored: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object, method: adsasdgas } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) I gave it on purpose a name that doesn't exist in order to test it. Because I don't get an error screen, it confirms my theory that the method option is ignored. How can I set a method name from my AdvertisementPeer with which my object is picked? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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: genUrl with object
Yes: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) On 14 jul, 15:32, Gábor Fási maerl...@gmail.com wrote: Is your route declared as sfPropelRoute/sfDoctrineRoute? On Wed, Jul 14, 2010 at 15:23, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I can't use genUrl like this: genUrl('advertisement_show', $Advertisement) where $Advertisement is the object for the sfObjectRoute The only way to do so is to call it like this: genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' . $Advertisement-getSlug()) But that, ofcourse, kills the flexibility of the routing system! How can I do the top solution with getUrl? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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: Method option in sfPropelRoute not accepted
Ow now it does... hmmm weird. Thanks, it all works fine now! On 14 jul, 15:38, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Doesn't work either, gets ignored as well On 14 jul, 13:37, Daniel Lohse annismcken...@googlemail.com wrote: http://www.symfony-project.org/reference/1_4/en/10-Routing#chapter_10... :) On 14.07.2010, at 13:20, HAUSa wrote: I got a feeling that my method option is ignored: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object, method: adsasdgas } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) I gave it on purpose a name that doesn't exist in order to test it. Because I don't get an error screen, it confirms my theory that the method option is ignored. How can I set a method name from my AdvertisementPeer with which my object is picked? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] Re: Method option in sfPropelRoute not accepted
Okay, answered too soon. Disregard my answer then. :) Glad it's working for you! Daniel Sent from my iPhone On Jul 14, 2010, at 3:41 PM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Ow now it does... hmmm weird. Thanks, it all works fine now! On 14 jul, 15:38, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Doesn't work either, gets ignored as well On 14 jul, 13:37, Daniel Lohse annismcken...@googlemail.com wrote: http://www.symfony-project.org/reference/1_4/en/10-Routing#chapter_10 ... :) On 14.07.2010, at 13:20, HAUSa wrote: I got a feeling that my method option is ignored: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object, method: adsasdgas } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) I gave it on purpose a name that doesn't exist in order to test it. Because I don't get an error screen, it confirms my theory that the method option is ignored. How can I set a method name from my AdvertisementPeer with which my object is picked? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] Re: Method option in sfPropelRoute not accepted
Then it has to be some other problem because this is documented functionality and I have used this before. Hmm... Is the route you posted really executed/used when you type in a URL that should invoke it? Check the log for that or post it here. Daniel Sent from my iPhone On Jul 14, 2010, at 3:38 PM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Doesn't work either, gets ignored as well On 14 jul, 13:37, Daniel Lohse annismcken...@googlemail.com wrote: http://www.symfony-project.org/reference/1_4/en/10- Routing#chapter_10... :) On 14.07.2010, at 13:20, HAUSa wrote: I got a feeling that my method option is ignored: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object, method: adsasdgas } param: { module: advertisement, action: show } requirements: sf_method: [get, post] sf_culture: (?:en|es|de|fr|nl) I gave it on purpose a name that doesn't exist in order to test it. Because I don't get an error screen, it confirms my theory that the method option is ignored. How can I set a method name from my AdvertisementPeer with which my object is picked? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] The More with symfony book Advanced Forms - Delete image
regarding this tutorial: http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms How to delete an uploaded image? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] Custom name for sfWidgetFormDate
Hi, It will be great if someone can show me howto or point me some resource how to do this. having a date field on transaction_detail table: dob on TransactionDetailForm is define as: 'dob' = new sfWidgetFormDate() on template page when i use ?php echo $form['dob']; ? it will generate with name and id transaction_detail[dob], i would like to change the fields name to guest[dob], i have try with ?php echo $form['dob']-render(array('name' = 'guest')); ? but it still remain same as transaction_detail. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] trouble in url_for function (symfony 1.4.6)
I've got error when using url_for helper (symfony 1.4.6) it was when i doing Day 14 from Practical symfony So, problem was in lib/helper/UrlHelper.php line 81 $params = array_merge(array('sf_route' = $routeName), is_object($params) ? array('sf_subject' = $params) : $params); for solving a problem i change it to: $params = array_merge(array('sf_route' = $routeName), is_object($params) ? array('sf_subject' = $params) : (array) $params); i think it make sense to fixing this in main branch. P.S. http://php.net/manual/en/function.array-merge.php Warning The behavior of array_merge() was modified in PHP 5. Unlike PHP 4, array_merge() now only accepts parameters of type array . However, you can use typecasting to merge other types. See the example below for details. P.P.S. sorry for my Eng.. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] Blameable and Symfony 1.4
Has anyone successfully used the blameable extension with Symfony 1.4? My expectation was that it would work in the same way as the Timestampable behaviour. Was that an unwarranted assumption? Alex -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] Custom name for sfWidgetFormDate
Hi, Try $this-widgetSchema-setNameFormat('guest[%s]'); in the configure() method of your form.[1] Bernhard [1] http://www.symfony-project.org/forms/1_4/en/01-Form-Creation -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] The More with symfony book Advanced Forms - Delete image
Look at the block of PHP code just before the subheading Form Events. There you'll find that they set the with_delete option to false – set this to true and add the filename_delete validator with an sfValidatorPass class (you can look that up here: http://www.symfony-project.org/api/1_4/sfWidgetFormInputFileEditable#method_configure). Then the user can check the Delete checkbox and upon saving of the form the file is deleted. :) Cheers, Daniel On 14.07.2010, at 01:51, joericochuyt wrote: regarding this tutorial: http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms How to delete an uploaded image? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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: Custom routing config handler broken ...
managed to get this working in the end, not sure if it was by simply adding a rule for / or if it was fixed by making the compiled config exactly the same as the one generated by sfConfigRoutingHandler (i.e. with serialization). In either case it works now, so I'm happy. On Jul 14, 1:00 am, Dan Leech dan.t.le...@gmail.com wrote: Hi I am trying to implement an XML navigation map which also contains all the routing information for the app, I have created the config handler below and changed factories.yml to use a custom routing class which extends sfPatternRouting. Both listed below, also the generated route cache file. The routes seem to get loaded OK, but I get the error Empty module and/or action after parsing the URL / (/). Im not too sure what that signifies, can anybody spot what I am not doing right? Cheers dan. class gwProjectRouting extends sfPatternRouting { protected function getConfigFileName() { return sfContext::getInstance()-getConfigCache()-checkConfig('config/navtree.xml', true); } } class gwProjectRoutingConfigHandler extends sfConfigHandler { public function execute($configFiles) { $options = $this-getOptions(); unset($options['cache']); $dom = new DOMDocument(1.0); $dom - load($configFiles[0]); $xpath = new DOMXpath($dom); foreach ($xpath - query('//node') as $i = $node) { if ($url = $node - getAttribute('url')) { $params = array(); if ($node - hasAttribute('module')) { $params['module'] = $node - getAttribute('module'); } if ($node - hasAttribute('action')) { $params['action'] = $node - getAttribute('action'); } foreach ($xpath - query('./param') as $param) { $params[$param - getAttribute('name')] = $param - getAttribute('value'); } $route_name = $node - hasAttribute('name') ? $node - getAttribute('name') : $i; $data[] = sprintf('$this - routes[%s] = new %s(%s,%s);', $route_name, 'sfRoute', $url, var_export($params, true)); $data[] = sprintf('$this - routes[%s] - setDefaultOptions(%s);', $route_name, var_export($options, true)); $data[] = sprintf('$this - routes[%s] - compile();', $route_name); } } $code = implode(\n, $data); return sprintf(?php\n. // auto-generated by gwProjectRoutingConfigHandler\n. // date: %s\n%s\n, date('Y/m/d H:i:s'), $code ); } protected function getOptions() { $config = sfFactoryConfigHandler::getConfiguration(sfContext::getInstance()-getConfiguration()-getConfigPaths('config/factories.yml')); return $config['routing']['param']; } } ?php // auto-generated by gwProjectRoutingConfigHandler // date: 2010/07/14 00:37:15 $this - routes[default] = new sfRoute(/:module/:action,array ( )); $this - routes[default] - setDefaultOptions(array ( 'load_configuration' = true, 'suffix' = '', 'default_module' = 'default', 'default_action' = 'index', 'debug' = '1', 'logging' = '1', 'generate_shortest_url' = true, 'extra_parameters_as_query_string' = true, )); $this - routes[default] - compile(); $this - routes[2] = new sfRoute(/audit,array ( 'module' = 'gwProjectAuditLog', 'action' = 'list', )); $this - routes[2] - setDefaultOptions(array ( 'load_configuration' = true, 'suffix' = '', 'default_module' = 'default', 'default_action' = 'index', 'debug' = '1', 'logging' = '1', 'generate_shortest_url' = true, 'extra_parameters_as_query_string' = true, )); $this - routes[2] - compile(); $this - routes[3] = new sfRoute(/audit/:id,array ( 'module' = 'gwProjectAuditLog', 'action' = 'edit', )); $this - routes[3] - setDefaultOptions(array ( 'load_configuration' = true, 'suffix' = '', 'default_module' = 'default', 'default_action' = 'index', 'debug' = '1', 'logging' = '1', 'generate_shortest_url' = true, 'extra_parameters_as_query_string' = true, )); $this - routes[3] - compile(); $this - routes[4] = new sfRoute(/profile,array ( 'module' = 'gwProjectUser', 'action' = 'profile', )); $this - routes[4] - setDefaultOptions(array ( 'load_configuration' = true, 'suffix' = '', 'default_module' = 'default', 'default_action' = 'index', 'debug' = '1', 'logging' = '1', 'generate_shortest_url' = true, 'extra_parameters_as_query_string' = true, )); $this - routes[4] - compile(); $this - routes[5] = new sfRoute(/issues,array ( 'module' = 'gwProjectIssue', 'action' = 'list', )); $this - routes[5] - setDefaultOptions(array ( 'load_configuration' = true, 'suffix' = '', 'default_module' = 'default', 'default_action' = 'index', 'debug' = '1', 'logging' = '1', 'generate_shortest_url' = true, 'extra_parameters_as_query_string' = true, )); $this - routes[5] - compile();
[symfony-users] pagination template without repeat - like in Zend framework !!
I need on 10 pages a pagination. If I use method from tutorial: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/07 I have to 10 times write the same code for: first, previous, next and last site with only other links. Is other way ? In Zend framework we can definied template for pagination: http://framework.zend.com/manual/1.10/en/learning.paginator.control.html -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 Admin Generator
I have question how in admin generator add credentials to forms in edit or new for example i have new: display: Something: [ great ] fields: great: { credentials:[admin_credential]} It dosn't working this field is allways displayed any reason ? Symfony 1.4 with standard sfDoctrinePlugin doctrine 1.2 Hope for any answer how to do that -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 Admin Generator
AFAIK you can not specify security settings in generator.yml only in config/security.yml There you have to specify the action name and the credentials required to access the action, see more info here: http://www.symfony-project.org/reference/1_4/en/08-Security gabriel On Jul 14, 11:58 pm, galileo galileo...@gmail.com wrote: I have question how in admin generator add credentials to forms in edit or new for example i have new: display: Something: [ great ] fields: great: { credentials:[admin_credential]} It dosn't working this field is allways displayed any reason ? Symfony 1.4 with standard sfDoctrinePlugin doctrine 1.2 Hope for any answer how to do that -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] sfWebBrowser and sfCurlAdapter redirection support
Hi , I use sfWebBrowser like this : $wbrowser = new sfWebBrowser(array(), 'sfCurlAdapter', array( 'followlocation' = false, )); So, as you can see I dont want to follow redirection. In curl adapteur the opt CURLOPT_FOLLOWLOCATION is set to false. The problem is line 219 from sfWebBrowser.class.php. The redirection is made even if CURLOPT_FOLLOWLOCATION is set to false. So, there is something i don't understand, or there is an error in this if statement: if ((in_array($browser-getResponseCode(), array(301, 307)) in_array($method, array('GET', 'HEAD'))) || in_array($browser- getResponseCode(), array(302,303))) What do you think ? I use symfony 1.1.6 and sfWebBrowserPlugin 1.1.2. Thank you, -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 Admin Generator
You have misunderstand me :) i need display form fields only for those users that have needed credentials not the whole actions :) for you knowladge it is possible to define the actions credentials in the generator.yml :P it is generator: class: sfDoctrineGenerator param: model_class: incReport theme: admin non_verbose_templates: true with_show: false singular: ~ plural:~ route_prefix: inc_report with_doctrine_route: true actions_base_class:sfActions config: actions: edit: credentials: [ editReport ] show: credentials: [ showReport ] form: fields: some_field: credentials: [editReport]- THIS IS WHAT I NEED i CAN'T FIGURE how to get this :) On 14 Lip, 23:17, pghoratiu pghora...@gmail.com wrote: AFAIK you can not specify security settings in generator.yml only in config/security.yml There you have to specify the action name and the credentials required to access the action, see more info here:http://www.symfony-project.org/reference/1_4/en/08-Security gabriel On Jul 14, 11:58 pm, galileo galileo...@gmail.com wrote: I have question how in admin generator add credentials to forms in edit or new for example i have new: display: Something: [ great ] fields: great: { credentials:[admin_credential]} It dosn't working this field is allways displayed any reason ? Symfony 1.4 with standard sfDoctrinePlugin doctrine 1.2 Hope for any answer how to do that -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 template.filter_parameters event to change CSRF error message?
Hi, I would like to change the CSRF error message and someone (Kris W) pointed out that I should use template.filter_parameters event. Could Kris or someone please give me more clues? Thanks, Sid -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 2] Doctrine Commands not loaded
I use the latest versions of Symfony 2 (PR3). I have all Doctrine's services loaded in the container but there's no commands in the application console. Any suggestion on how to show them ? many thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 use template.filter_parameters event to change CSRF error message?
Never mind, I found the answer in http://www.symfony-project.org/more-with-symfony/1_4/en/14-Playing-with-Symfony-Config-Cache On Thu, Jul 15, 2010 at 10:40 AM, Sid Bachtiar sid.bacht...@gmail.com wrote: Hi, I would like to change the CSRF error message and someone (Kris W) pointed out that I should use template.filter_parameters event. Could Kris or someone please give me more clues? Thanks, Sid -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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 use template.filter_parameters event to change CSRF error message?
http://bluehorn.co.nz/2010/07/15/how-to-change-csrf-attack-message-in-symfony-1-2/ On Thu, Jul 15, 2010 at 11:25 AM, Sid Bachtiar sid.bacht...@gmail.com wrote: Never mind, I found the answer in http://www.symfony-project.org/more-with-symfony/1_4/en/14-Playing-with-Symfony-Config-Cache On Thu, Jul 15, 2010 at 10:40 AM, Sid Bachtiar sid.bacht...@gmail.com wrote: Hi, I would like to change the CSRF error message and someone (Kris W) pointed out that I should use template.filter_parameters event. Could Kris or someone please give me more clues? Thanks, Sid -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] I am trying to call return $ this- renderComponent ('onlineshop', 'homeShopsService', array ('service' = $ item [0])); from components.class.php
sorry, there is in English- I am trying to call return $ this- renderComponent ('onlineshop', 'homeShopsService', array ('service' = $ item [0])); from components.class.php getting the following error: OnlineShopComponents Call to undefined method: renderComponent. I can use renderComponent from the component.class.php? thank you very much -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] Symfony2 / twig assets
Hi, I'm fairly new at Symfony, and since I'm working on a small project that I can afford to make changes to to keep up with a changing codebase, and I really want to leverage php5.3, I'm starting out with Symfony2. My problem is that I can't get assets to work with my twig templates; I put this in: {% asset 'bundles/hamstudy/favicon.ico' %} and it returns nothing. When I use xdebug to step through the template, it's not even finding the assets object. Can someone help me figure out where to start looking to track down why the assets aren't working? Same problem with javascripts and stylesheets. I've tried asking on the #symfony irc channel, but I guess none of the symfony2 devs hang out there, 'cause nobody answers. Thanks, Richard smime.p7s Description: S/MIME cryptographic signature
Re: [symfony-users] pagination template without repeat - like in Zend framework !!
What about creating a _pagination.php partial with the shared code? Bernhard -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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