[symfony-users] Re: notice: serialize() __sleep

2011-04-18 Thread Fabien Potencier
On Apr 16, 4:46 am, Luis Cordova cordo...@gmail.com wrote: I am getting a notice: Notice: serialize(): sessionverses returned as member variable from __sleep() but does not exist in /home/cordoval/sites-2/memorizescripture/vendor/symfony/src/Symfony/Compone

Re: [symfony-users] Proper way of using a logger in Symfony2?

2011-04-18 Thread Jordi Boggiano
On 18.04.2011 05:38, JC wrote: I couldn't find references on the proper use to integrate a logger in my code. I tried the following inside a controller, but I didn't see any output in the log file. Any ideas? public function loginAction() { $logger = $this-get('logger');

[symfony-users] Re: ajax in symfony 2

2011-04-18 Thread symfonyMan
Hello Oscar, thanks you for the replays.. can you show me an exemple of sending an ajax request with jquery ?? i tried a lot of things (.ajax(), .get()...) but il my ajaxAction, this test is skipped : (not an XMLHttpRequest()) if ($this-container-get('request')-isXmlHttpRequest()) {

Re: [symfony-users] Proper way of using a logger in Symfony2?

2011-04-18 Thread Jordi Boggiano
On Mon, Apr 18, 2011 at 9:30 AM, Jordi Boggiano j.boggi...@seld.be wrote: On 18.04.2011 05:38, JC wrote: I couldn't find references on the proper use to integrate a logger in my code. I tried the following inside a controller, but I didn't see any output in the log file. Any ideas?    

Re: [symfony-users] Re: notice: serialize() __sleep

2011-04-18 Thread Luis Cordova
hi Fabien, all thanks for the suggestion, but this speaks about a class on the Security/Core/Authentication/Token/AbstractToken.php symfony code or on my class? and if my class i guess the one that has member that variable? I will try but was not really sure since there is AbstractToken.php I

[symfony-users] sfValidatorChoice and String convertion error

2011-04-18 Thread filip11
Hi all, I was browsing the internet but I can`t find the answer for my problem anywhere. A have my form: $widget-setLabel('Odbiorcy'); $this-setWidget('receivers', $widget); $validator = new sfValidatorChoice(array('choices'=array_keys($choices),'multiple' = true), array());

[symfony-users] Re: [Symfon2] Twig vs PHP

2011-04-18 Thread ejosvp
TWIG helps a lot, specially for teams with designers which are not involved with PHP -- 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

[symfony-users] [symfony2] Calling a PHP Function

2011-04-18 Thread Josher
Hey All, Having fun using symfony2! In my controller, I'm doing the following: $doc = new DOMDocument(); However, symfony2 comes up with: Fatal error: Class 'Acme\DemoBundle\Controller\DOMDocument' not found in As you can see, it thinks that DOMDocument is apart of symfony2, and it is really a

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

2011-04-18 Thread voidpointer
Moi, I am trying to work through the jobeet tutorial. I have got to day 3 and try to use the url posted in the title. The layout is rubbish, there are no images etc. Here is a snippet from the top of that page: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://

[symfony-users] Re: Strange distribution problem (PR10, PR11)

2011-04-18 Thread mysth
Hello, I had the same problem but try to unpack the tar.gz version and then unpack the .zip version. Say 'Merge..' when it asks to.. It works for me...It's not a beautiful solution but it's better than nothing until they correct this problem. Good luck ;) -- If you want to report a vulnerability

[symfony-users] Re: [Symfony2] validation of runtime generated object properties / dynamic forms

2011-04-18 Thread Holger
Hi Bernhard, thanks for the quick reply! I'll have a look into it. Regards, Holger On 17 Apr., 18:09, Bernhard Schussek bschus...@gmail.com wrote: Hi Holger, You can use the Callback constraint for this purpose. You can see an example of its usage in

[symfony-users] Re: The S2 blog is not being updated!!!

2011-04-18 Thread Javier Eguiluz
The blog has already been updated with the latest *a week of symfony*posts. Thanks for noticing it and sorry for any inconvenience. -- 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

Re: [symfony-users] [symfony2] Calling a PHP Function

2011-04-18 Thread Gustavo Adrian
$doc = new \DOMDocument(); By default, if you try to create an instance of a class which is not fully qualified (in your case just DOMDocument) PHP will look for the class on the current namespace (Acme\DemoBundle\Controller in your case). More info:

[symfony-users] Form objects not escaped

2011-04-18 Thread Rytis Daugirdas
Hello, I've noticed that form objects are not escaped in templates. $this-form = new MyObjectForm(); # won't be escaped Other objects ARE escaped. $this-myObject = $this-form-getObject(); # will be escaped This can easily be checked using get_class() in a template. Anyone could explain this

[symfony-users] Re: Strange distribution problem (PR10, PR11)

2011-04-18 Thread Dmitry Bykadorov
Yes, ZIP version unpack successfully... Strange thing ) On 18 апр, 12:33, mysth peramo.lio...@gmail.com wrote: Hello, I had the same problem but try to unpack the tar.gz version and then unpack the .zip version. Say 'Merge..' when it asks to.. It works for me...It's not a beautiful

[symfony-users] Re: Validation propagating to related entities in Symfony2

2011-04-18 Thread whynotmatt
On a web form, for optimization reasons, we don't need to submit all fields from the referenced entity, only the entity id. So yes, turning off validation on referenced entities and only validating the referenced id seems like the best solution to me. With the cascading validation as it is now,

Re: [symfony-users] Re: notice: serialize() __sleep

2011-04-18 Thread Luis Cordova
please somebody help me, all my code is in https://github.com/cordoval/Memorize-Scripture-2 I have tried several things, not even serializing the errors would go away rather they will get worse can someone take a look at this please? appreciate it Notice: serialize(): sessionverses returned as

Re: [symfony-users] Validation propagating to related entities in Symfony2

2011-04-18 Thread Dennis Jacobfeuerborn
Hi, I'd strongly favor not doing such a recursive validation by default. When I create a form 99% of the time I only want to validate the data submitted in fact I can't even think of a case where I'd want to do a deeper validation right now. Checking the city when you only submit a user seems

[symfony-users] [Symfony2] PR11, DemoBundle error 'The controller must return a response ([array]() given)'

2011-04-18 Thread oscar balladares
Hi, I've just downloaded the PR11. When running the demo (when clicking the 'run the demo' button link) an error is trhown: The controller must return a response ([array]() given) Looking at the controller I found: /** * @extra:Route(/, name=_demo) * @extra:Template() */

[symfony-users] Re: Strange distribution problem (PR10, PR11)

2011-04-18 Thread Carl
Very bizarre. I use 7-Zip exclusively in Windows 7 and I didn't have any issues unpacking the tar.gz version. Maybe it's a WinRAR issue? -- 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

[symfony-users] Re: [Symfony2] PR11, DemoBundle error 'The controller must return a response ([array]() given)'

2011-04-18 Thread Carl
I can safely say that it isn't supposed to be returning an array, unless it's intended to show that you can't do that kind of thing. All actions have to return a response. And an array isn't a valid response. If you change that to return statement to return new Response(''); it should work. It

Re: [symfony-users] Re: notice: serialize() __sleep

2011-04-18 Thread Luis Cordova
ok finally I made inroads with the help of several people thank you guys! and now I got the notices gone on real browser test however they are failing for testing forms apparently? I was told the form_login needs to be switched to http_basic as shown in here

[symfony-users] Re: notice: serialize() __sleep

2011-04-18 Thread cordoval
results, findings and suggestions: suggesstion: - to implement on sf2 test1 mode and test2 mode, test1 mode generates proxies on --env=test so for development, test2 mode is production findings: - form login test works as Fabien puts it on a tweeter, thanks Fabien! - fos userbundle has broken

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