[symfony-users] Re: Symfony2 Forms createView

2011-06-02 Thread Sebastian
There is obviously a problem with the service definition. I did not look deeper in it though because it worked by using the FormFactroy class in the controller. And I did not need this form as a service necessarily. On May 31, 2:40 pm, Sebastian wrote: > Hi there, > > so I created

[symfony-users] [f1.4] Add method name to logMessage

2011-06-01 Thread Sebastian Göttschkes
get'c called from (don't know if this is possible). Thanks, Sebastian -- 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" gro

[symfony-users] Symfony2 Forms createView

2011-05-31 Thread Sebastian
Hi there, so I created a project using Symfony2Project. In my controller I am creating a form using a service. Service definition: form.search_form: class: MyNs\MyBundle\Form\SearchForm form.stock_search: class: Symfony\Component\Form\Form factory_service: form.facto

[symfony-users] Aw: Re: [sf2] form_rest won't render repeated?

2011-05-31 Thread Sebastian Göttschkes
That's strange, as this happens to me as soon as I add the repeated field. I don't know what else could cause this behaviour! -- 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

[symfony-users] [sf1.4] Calling external URL and modifying header

2011-05-31 Thread Sebastian Göttschkes
If I use $this->getResponse()->setHttpHeader('HTTP_X_TRANSACTION','1234'), it won't work, as this is only valid for the response, not the request (as far as I can trace it). Is there a proper way to do this? Thanks, Sebastian -- If you want to report a vul

[symfony-users] Aw: [sf1.4] Display a captcha in a form, not everytime

2011-05-24 Thread Sebastian Göttschkes
created_at for the last post, if there should be a recaptcha. If so, you validate it. If not, you just skip validation. I don't know if I got you right, but this would be the way I would implement it. Regards, Sebastian -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] [sf2] form_rest won't render repeated?

2011-05-24 Thread Sebastian Göttschkes
I can submit my form and the form is valid without any password? When I use form_widget, I must enter 5 characters at least (MinLength: 5). I think this are two different topics, as the rendering should not be related to the validation. Am I right? Regards, Sebastian -- If you want to rep

[symfony-users] Aw: Re : Using form.factory in PR12?

2011-04-27 Thread Sebastian Göttschkes
Hi, thanks for the info. I should read the blog more often. Sebastian -- 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 po

[symfony-users] Using form.factory in PR12?

2011-04-27 Thread Sebastian Göttschkes
x27;t find anything and I had a look at the core. All I found was a Component Form, no Bundle. What confuses me is that the first sentence mentioning symfony2 beta1, which I cannot find anywhere (neither on the webpage nor the github-repo). Is it just not working with PR12 or am I doing anyhing

[symfony-users] Aw: [Symfony2] AccessDeniedException = 500 internal server error?

2011-04-27 Thread Sebastian Göttschkes
x27;t have access to a page (at least when you're using the Security-Bundle provided by symfony2). Sebastian -- 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] [symfony2] difference between count(...) and ...->count() in Testing?

2011-04-25 Thread Sebastian Göttschkes
nd in the second line $crawler->filter($selector)->count(). Is there any reason when to use each one or are they just similar? Regards, Sebastian -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message becaus

[symfony-users] Aw: 404 error not coming in production mode

2011-04-21 Thread Sebastian Göttschkes
(or something similar) and looking for the response code. Sebastian -- 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

[symfony-users] Aw: Re: error in using link_to in symfony

2011-04-21 Thread Sebastian Göttschkes
Hi, please have a look at the jobeet tutorial, day 1 [1] or the docu [2]. The installation of symfony is covered there as well as the webserver configuration. Sebastian [1] http://www.symfony-project.org/jobeet/1_4/Doctrine/en/01 [2] http://www.symfony-project.org/gentle-introduction/1_4/en

[symfony-users] Aw: Re: error in using link_to in symfony

2011-04-21 Thread Sebastian Göttschkes
ation, and then trying to access http://localhost:8080/employeerecord/index Maybe you're missing mod_rewrite or some other apache-package. Looking into the apache log files should give you hints on what is going wrong. Regards, Sebastian -- If you want to report a vulnerability issue on

[symfony-users] Aw: Re: error in using link_to in symfony

2011-04-20 Thread Sebastian Göttschkes
s module and the appropiate action. Just have a look at the jobeet tutorial where this structure is promoted and you get a feeling of how to handle things in symfony. Have fun, Sebastian -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-p

[symfony-users] Aw: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-18 Thread Sebastian Göttschkes
Hi there, would you mind showing the apache vhost you added (I asume you're using apache)? I would guess the default directory isn't set correctly but the sf shortcut is. Regards, Sebastian -- If you want to report a vulnerability issue on symfony, please send it to security

[symfony-users] Aw: Re: [symfony2] How to use bundles?

2011-04-17 Thread Sebastian Göttschkes
controller/action, even if it was simply empty)? And, closely related to this: What's about login/registration-stuff? Would I use a "user"-bundle for this? Thanks, Sebastian -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-p

[symfony-users] Re: [symfony2] How to use bundles?

2011-04-15 Thread Sebastian Göttschkes
ndles. I'll have a look at your first two examples and then dive into the examples you provided. Thanks again, Sebastian -- 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

[symfony-users] [symfony2] How to use bundles?

2011-04-15 Thread Sebastian Göttschkes
s depending on when for example reusing the blog-bundle in another application. Maybe someone can get me on the right track! Thanks, Sebastian -- 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 su

[symfony-users] Aw: riddle me this

2011-04-15 Thread Sebastian Göttschkes
As soon as symfony2 is stable, there will be a symfony2 release without PR which can be used in productive environment. Regards, Sebastian [1] http://www.symfony-project.org -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received th

[symfony-users] Re: probleme with function __tostring() undefined function

2011-03-28 Thread Sebastian Göttschkes
e have a loog at http://www.symfony-project.org/jobeet/1_4/Doctrine/en/13 as this is refering to the symfony way of dealing with user authentification. Regards, Sebastian -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You recei

Re: [symfony-users] [symfony 1.4] Retrieving Value from FormField

2011-03-05 Thread Sebastian Göttschkes
I thought of this, but for some reason it isn't working. The input name is book_order[book_amount] and I tried $form->getValue('book_amount'), $form->getValue('book_order[book_amount]') and $form->getValue('bookAmount'). On the other hand, $form['book_amount']->getValue() is working as expected

[symfony-users] [Symfony 1.4] Deploying on Windows

2011-03-05 Thread Sebastian Göttschkes
in via ssh after the deploy is done and run the script manually. I know, this is not a symfony issue, but I figured since people here might use rsync with symfony, they'll have found a way to work around this. Regards, Sebastian -- If you want to report a vulnerability issue on symfony, pl

[symfony-users] [Symfony 2] Overview of configuration options

2011-03-03 Thread Sebastian Hörl
Hi, I'm playing around with Symfony2 and think it might be the best web framework I have ever used ;) Nevertheless I could not find a list with all configuration options that I could use. Maybe I have overseen something? As far as I have discovered in most cases the API documentation gives a go

[symfony-users] [symfony 1.4] Retrieving Value from FormField

2011-03-03 Thread Sebastian Göttschkes
y the user. I understand that I can use $form['fieldName']->getValue(), but as symfony is almost always avoiding arrays, I'm curious if this is the correct way. I was looking for something like $form->getField('fieldName')->getValue(). Thanks for your help in c

[symfony-users] Re: include_slot handling zero value wrong?

2011-03-02 Thread Sebastian Göttschkes
27;ll look into this in detail tomorrow. Thanks for your help anyway, Sebastian On Mar 2, 1:11 pm, Gareth McCumskey wrote: > AFAIK include_slot has only 1 parameter. You may be thinking of the > slot() helper as mentioned here: > > http://www.symfony-project.org/gentle-introduction/1_4/

[symfony-users] include_slot handling zero value wrong?

2011-03-02 Thread Sebastian Göttschkes
Hi, I was trying to do the following: To my surpirse, if the slot test is not set, it shows nothing at all and even if the slot is set to '0' it shows nothing at all. If I change it to '1' it works as expected. Am I doing something wrong? Regards, Sebastian -- If

[symfony-users] Re: Make Symfony and C++ work together

2011-02-17 Thread Sebastian
You can wrap C++ classes in PHP extensions. When I get to that point I will share my findings about how it works with Symfony :) -- 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

[symfony-users] Make Symfony and C++ work together

2011-02-17 Thread Sebastian
Hey folks, I have the following scenario: A web application implemented with symfony but other parts in the background that would need to use the same objects (model) implemented in C++. Example: A worker process that does jobs created by PHP async in C++. It would need to use the same model wi

[symfony-users] Re: Make Symfony and C++ work together

2011-02-17 Thread Sebastian
. Sebastian -- 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 u

[symfony-users] Re: Symfony 1.4: Get current route name

2010-07-27 Thread sebastian
You can access routes via sfContext::getInstance()->getRouting()- >getRoutes() and then go from there On 27 Jul., 07:15, Johannes Trommer wrote: > Hello, > > How can I get the current route name in the module's action? > > This is my route: > > powerplantsTypes: >    url: /type/:slug.html >    

[symfony-users] moving plugins to symfony 2.0?

2010-07-26 Thread sebastian
are there any plans for migrating plugins to symfony 2.0 in the form of bundles? there doesn't seem to be any mention of it on the plugins page or individual plugin pages. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received t

Re: [symfony-users] Re: Images source problem

2010-02-04 Thread Sebastian Müller
Hi wueb, is it possible to use a absolute path for your images? BR Seb -- Sebastian Müller http://www.new-mediafactory.de -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@google

Re: [symfony-users] Why doesn't the mydomain.com -> www.mydomain rewrite rule work in this .htaccess file?

2010-01-15 Thread Sebastian Schulze
The second line after the RewriteCond is wrong. It should be more like: RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC] RewriteRule ^(.*) http://www.mydomain.com$1 [QSA,L,R=301] Bascht On 15.01.10 14:16, YTH wrote: > Dear all, > > Hi, I would like to allow users getting redirected to www.mydomain

[symfony-users] Create form manually, but add csrf-token?

2009-11-16 Thread Sebastian Göttschkes
rrect module and action, but struggles as there is no csrf-token present (which is obvious, as I didn't add one). Can anybody help me out how to solve this problem? Regards, Sebastian --~--~-~--~~~---~--~~ You received this message because you are subscri

[symfony-users] Accessing view.yml settings?

2009-11-16 Thread Sebastian Göttschkes
re is standard way to solve this problem? Thanks for your help, Sebastian --~--~-~--~~~---~--~~ 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

[symfony-users] Re: sfEasyGMapPlugin not working

2009-07-16 Thread Sebastian Müller
e.com/jsapi?key=ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCwIgIRnp1ddTI6MvRVBGLbhQyWub0Cef-VHzdDo70uUVQrZtOIA"</a>;> Sunny regards from Hamburg Sebastian Zach schrieb: > Thank you Sebastian, > > I installed Firebug and got the error: > > google is not defined > sample1()sample1 (line 21) >

[symfony-users] Re: sfEasyGMapPlugin not working

2009-07-16 Thread Sebastian Müller
on my site. Sorry, but otherwise I have unfortunately no idea anymore. BR Sebastian Zach schrieb: > I have not. Do I just put it in frontend/templates/layout.php? > > I tried that now, and it added src="<a rel="nofollow" href="http://www.google.com/jsa

[symfony-users] Re: sfEasyGMapPlugin not working

2009-07-15 Thread Sebastian Müller
Hi Zach, have you setup in the header of your layout.php ? BR Sebastian Zach schrieb: > Sebastian, > > I double checked my API keys and they are correct, but I'm not sure it > is being used... > The code in your test template is the same as what I'm using. >

[symfony-users] Re: sfEasyGMapPlugin not working

2009-07-15 Thread Sebastian Müller
etRaw('gMap'); ?> Test this, maybe it works also for you. BR Sebastian Zach schrieb: > Sample 1 does not work for me. When I go here mydomain/ > frontend_dev.php/sfEasyGMapPlugin/sample1 I just get the text "The > Map" a big white space where the map should be

[symfony-users] Re: sfEasyGMapPlugin not working

2009-07-14 Thread Sebastian
Hi Zach, I have put it in the app.yml on the /config folder. But have test the sample 1? If this also not work? BR Sebastian -- Sebastian Müller s.muel...@nm-f.de http://www.new-mediafactory.de --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] sfWebRequest downcases every parameter

2009-07-13 Thread Sebastian Schulze
ievelostpassword', 'culture' => 'de', 'sf_culture' => 'de',) This happens for every module / action I tried. (Symfony 1.1.7 on a Mac OS X / Lighttpd) Perhaps someone can hint me in the right direction. :-) Thanks a lot, Sebastian --~--~-

[symfony-users] Re: sfEasyGMapPlugin not working

2009-07-13 Thread Sebastian Müller
Hi Zach, I use it and it works very fine. Have you setup the right API keys? So if you use http://example.localhost/ you have to create a API key for this url. BR from Hamburg Sebastian Zach schrieb: > Has anyone used this plugin before? Maybe I just set it up wrong... > and it&#x

[symfony-users] Re: Problem with Task or with PHP?

2008-12-04 Thread Sebastian Schulze
Looks like you've got xcache in your php.ini but havn't installed it yet. Either remove it from your php.ini or install the xcache extension. On Dec 4, 6:22 pm, "Reynier Perez Mira" <[EMAIL PROTECTED]> wrote: > Hi every: > I started a new project with Symfony 1.2 and because I have a database >

[symfony-users] ...howto establish a good testing culture?

2008-11-26 Thread Sebastian Schulze
Hi folks. This is kind of off topic, but I think it's the right list for this: My question is: == How do you get your team mates to write tests? We currently have about 300 functional and unit tests, written in lime for our symfony 1.1 project, but we're constantly integrating new features and u

[symfony-users] Re: Doctrine related: Custom values

2008-11-20 Thread Sebastian
Maybe I should mention that the second line works perfectly well and prints "0815". The third line then _crashes_. $player->mapValue('password_confirmation', '0815'); print $player->password_confirmation; $player->password_confirmation = '1234'; --~--~-~--~~~---~--~---

[symfony-users] Re: Validation with Symfony 1.2

2008-11-20 Thread Sebastian
> Documentation about forms can be found > athttp://www.symfony-project.org/book/forms/1_2/en/ Is this different from this? http://www.symfony-project.org/book/1_2/10-Forms#Form%20Validation It's a bit confusing ;) . Thanks. --~--~-~--~~~---~--~~ You received t

[symfony-users] Re: Doctrine related: Custom values

2008-11-20 Thread Sebastian
> Shouldn't you use this? > $player->setPasswordConfirmation('1234'); Should it? Regarding the Doctrine documentation _set() and _get() should come into action. However: Setting the value by explicitly calling set() doesn't work, too. Same for $player ['password_confirmation']. I'm a bit helples

[symfony-users] Doctrine related: Custom values

2008-11-20 Thread Sebastian
Unknown record property / related component "password_confirmation" on "Player". But why?! Thanks in advance for your help. Sebastian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sym

[symfony-users] Validation with Symfony 1.2

2008-11-20 Thread Sebastian
umentation ( http://www.symfony-project.org/book/1_2/10-Forms#Form%20Validation ). Thanks for your help in advance. Sebastian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post

[symfony-users] Multiple databases using multiple schema files

2008-11-19 Thread Sebastian
Hi. I added two database connections to databases.yml like this: dev: db01: class: sfDoctrineDatabase ... ... dev: db02: class: sfDoctrineDatabase ... ... Now I created two schema files called db01.schema.yml and db02.schema.yml. They look like this: AModel: colu

[symfony-users] Re: Symfony on ubuntu...

2008-11-04 Thread Sebastian Schulze
Jerrad Anderson schrieb: > So how did you fix this problem your post isn't very elaborative :) > > I'm also missing the sfCore.Class.php file Just tell me what you're missing. I'm using Symfony 1.0.18 and 1.1.4 both with Ubuntu 8.10, so perhaps I could help here. ;) --~--~-~--~~

[symfony-users] Re: Backend changes language when I change language on the frontend

2008-07-10 Thread Sebastian Schulze
> Is there a way I can set the language on the two sites independently? Looks like all you have to do is change the name of the cookie for your backend app. Then you should be able to log into 2 different sessions for front / backend. Bye, Sebast

[symfony-users] Re: What was the reason for taking Helpers out of 1.1?

2008-05-08 Thread Sebastian Busch
e you anyway ;-)) Being able to override this stuff is also a great advantage. Sebastian 2008/5/8 naholyr <[EMAIL PROTECTED]>: > > By the way, having "Url::linkTo" instead of "link_to" wouldn't be such > a pain (especially if you have a sfCompat10 option

[symfony-users] Re: Custom Escaping Method

2008-04-03 Thread Sebastian Busch
ng from sf 1.1 to sf 1.0 this way. Regards, Sebastian 2008/4/3, Ian P. Christian <[EMAIL PROTECTED]>: > > Alex wrote: > > Hello, > > > > I would like to use my own class for escaping output. > > > > escaping_method: ESC_ENTITIES # Funct

[symfony-users] Two ORMs for one project.

2007-08-27 Thread Sebastian Schulze
Hi! I know that this topic was already discussed, but the solutions didn't fit very well for my project. I am currently working on a project that was built with sfDoctrine (which works very well for that use). Now my task is to 'quickly' add a CMS to the project... ...my first thought was to simpl

[symfony-users] Where to locate own (PHP-) Interfaces

2007-08-20 Thread Sebastian Schulze
Hey guys. I want some of my models to implement an own interface. Where would be the best directory to place my interface? Directly into the model-directory? thanks in advance, Sebastian --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Doctrine::ATTR_COLL_KEY not automatically set.

2007-08-14 Thread Sebastian Schulze
My Problem with sfDoctrine still exists, but my confusion got to a higher level. ;) $this->getUser()->getGuardUser()->getUserVitas(); Gives me a list of all Vitas, which is cool. But the indices are not the ids, but numbered starting by 0. If I do a sfDoctrine::getTable('UserVita')- >setAttrib

[symfony-users] Re: SymfonyCamp update

2007-08-14 Thread Sebastian Schulze
Really, very interesting - but I am also on vacation, during the time of the camp. Perhaps I'm gonna send the other guys from the company to the camp :) On 13 Aug., 22:12, Stefan Koopmanschap <[EMAIL PROTECTED]> wrote: > Hey guys, > > Here's another short SymfonyCamp update. I've just deploye

[symfony-users] Re: access myUser.class.php from a template/layout

2007-08-13 Thread Sebastian Schulze
In your case: $sf_user->getTestData(); On 13 Aug., 21:22, scube <[EMAIL PROTECTED]> wrote: > Hi, > > my goal is to access the content of myUser.class.php (located in the > lib dir) from a template or layout. But how can I do that? > > My myUser.class.php file: > class myUser extends sfBasicSecuri

[symfony-users] Re: Problem with Doctrine_Collection->get()

2007-08-10 Thread Sebastian Schulze
ck it though. Thank you, Sebastian > $myDocument = sfDoctrine::getTable("Document as d")->findByDql("d.user > = ? AND d.id = ?", array($this->getUser()->getGuardUser()->getId(), > 10); > > On 10 Aug., 10:41, Sebastian Schulze <[EMAIL PROTEC

[symfony-users] Re: doctrine schema questions

2007-08-10 Thread Sebastian Schulze
AIL PROTECTED]> wrote: > ok thanks another question is: > > what is the counterpart? > > greetings > Gordon > > On 10 Aug., 12:28, Sebastian Schulze <[EMAIL PROTECTED]> wrote: > > > > 1. how can i define a lognvarchar or text field? > > > #descr

[symfony-users] Re: doctrine schema questions

2007-08-10 Thread Sebastian Schulze
> 1. how can i define a lognvarchar or text field? > #description: > # type: ??? This depends on the length you supply. e.g. type: string(250) creates a VARCHAR(250) type: string creates a TEXT Field sorry, got now answer to your second question...

[symfony-users] Problem with Doctrine_Collection->get()

2007-08-10 Thread Sebastian Schulze
er), but the 10th document that is linked to the user. According to the Doctrine-Api it "returns a record for given key". Is this behaviour correct? I would appreciate any help - thanks a lot! :) Sebastian = My YAML: Document: tableName: document c

[symfony-users] Backend Translation interface with sfDoctrine

2007-08-06 Thread Sebastian Schulze
Hey everyone. I am currently working on a Backend App with datasets that have to be translated into 2 (eventually 3 to 4) languages. So this has to be done dynamically. The ideal solution for me would be two input fields, like "source" (disabled, de_DE) and translation (enabled, eg. en_US). Is t