[symfony-users] Re: SfGuardAuth - Signin Component.

2011-01-25 Thread Gabriel Petchesi
I solved this problem via Ajax signin: 1. Create the form as a component 2. Do the post via AJAX/javascript overriding the submit button action 3. You receive for the AJAX request either: a. the same form with the additional errors, in this case replace the form in the page with the data receiv

Re: [symfony-users] problem with $sf_user->getCredentials()

2011-01-25 Thread Stan@home
Ok I probably used the wrong terminology. I didn't call it directly from index.php - I simply used the URL /my/privileges instead of /frontend_dev.php/my/privileges. The first one doesn't work but the second one does. Sent from my iPhone On Jan 26, 2011, at 1:07 AM, Gareth McCumskey wrot

Re: [symfony-users] problem with $sf_user->getCredentials()

2011-01-25 Thread Gareth McCumskey
Why would you want to call it via index.php. Generally index.php is not to be touched and everything you need done display wise is done through layout.php or templates and everything logic wise through actions and model classes. On Tue, Jan 25, 2011 at 8:14 PM, Stan McFarland wrote: > All, >

[symfony-users] memcached ubuntu php doubt

2011-01-25 Thread Shihab KB
I managed to install memcached and its extension (memcache) in ubuntu and caching is working fine. For the installation I followed the site http://stevelove.org/2009/09/30/how-to-install-php-memcached-on-an-ubuntu-server/ After installation my following code is working fine. [syntax=php]connect("

Re: [symfony-users] Re: Re: AJAX session timeout handler

2011-01-25 Thread Gareth McCumskey
Well, the basic issue was that Chrome and FF processed the ajax requests slightly differently. To reiterate how we were processing these requests... 1. Session is timed out for a user. 2. User accesses a function that employs AJAX. 3. The filter we have in place will analyse the request and determ

Re: [symfony-users] Symfony 2 : Any sort of automatic schema creation from models?

2011-01-25 Thread Bernhard Schussek
Yes. Execute ./app/console doctrine:schema:create respectively ./app/console doctrine:schema:update in the CLI. Bernhard -- Software Architect & Engineer Blog: http://webmozarts.com Twitter: http://twitter.com/webmozart -- If you want to report a vulnerability issue on symfony, please send i

[symfony-users] Introducing Vespolina - the new sf2 based e-commerce platform

2011-01-25 Thread Daniel Kucharski
Hello Symfonians, We would like to introduce you all to a new symfony2 based project. The purpose of this project is to create an expandable Symfony2 based ecommerce platform, built on interchangeable bundles that can be used independently of Vespolina, all managed by a configurable workflo

[symfony-users] [S2PR5] SQLLiteProfilerStorage error in Profiler

2011-01-25 Thread Christophe BEYER
I got this error in my S2 PR5 website : Warning: SQLite3Stmt::execute() [sqlite3stmt.execute]: Unable to execute statement: constraint failed in /Users/me/symfony2/sandboxpr5/src/vendor/symfony/src/Symfony/Component/HttpKernel/Profiler/SQLiteProfilerStorage.php on line 147 Fatal error: Call to

[symfony-users] Symfony 2 : Any sort of automatic schema creation from models?

2011-01-25 Thread maxarbos
Hello, Will Symfony 2 have any sort of automatic table schema creation and management based on properties of models? I have been using grails for a bit and it has an orm built in that creates and manages table schemas. So to create a table for people i create a class: People and add properties fo

[symfony-users] Re: Re: AJAX session timeout handler

2011-01-25 Thread Eric B.
Now I'm curious; what was the bug/ what was the fix? Just b/c it was working in FF, doesn't mean that Chrome is sending the same headers/info that your server is expecting. So although it might be the client side (ie: the browser), it comes through as a server issue as your action/filter/inter

[symfony-users] Re: lib/model/doctrine/subfolder

2011-01-25 Thread PaulKamer
Hi Gareth, I have been struggling with generating models in separate directories as well. We have a backend tool for 14 databases, each containing 50+ tables. Looking up a file in lib/model/doctrine is NOT fun :) The 'package approach' you mentioned works,altough I only had to define 'package: '

[symfony-users] Re: SfGuardAuth - Signin Component.

2011-01-25 Thread lmwood
Still not figured this one out. Can anyone point me in the right direction? thanks. On Jan 22, 12:40 pm, lmwood wrote: > Hi All, > > I've included sfGuardAuth's signin form in my layout using a component > but if you get your username or password wrong it will redirect to the > signing action thu

[symfony-users] Re: problem with $sf_user->getCredentials()

2011-01-25 Thread Stan McFarland
sorry - meant to say that hasCredential() works via both handlers. On Jan 25, 1:14 pm, Stan McFarland wrote: > All, > > I have a problem with a call to $sf_user->getCredentials().  If I call > this method via frontend_dev.php, everything works correctly.  But if > I call this method via index.php

[symfony-users] problem with $sf_user->getCredentials()

2011-01-25 Thread Stan McFarland
All, I have a problem with a call to $sf_user->getCredentials(). If I call this method via frontend_dev.php, everything works correctly. But if I call this method via index.php, it returns NULL. However, I can successfully call getCredential() via index.php and frontend_dev.php and get the sam

[symfony-users] Re: Custom validator is not called on validation

2011-01-25 Thread cestcri
Just to conclude this and to answer my own questions: The annotations n the entity class overwrite the "default message" of the constraint class. That's all the magic. Hope it helps, Christian On Jan 20, 5:47 pm, cestcri wrote: > By the way, > > can anybody explain how error messages are id

[symfony-users] Re: Symfony2 Twig Helpers and _view variable

2011-01-25 Thread Jérôme TEXIER
Thanks Fabien. Indeed I was doing well : - creating a FooExtension class extending TwigExtension - defining some custom filters or functions in it - registering that class as a service with a twig.extension tag name But custom functions weren't found by twig, 2 reasons for that : - a dumb mis

Re: [symfony-users] [S2PR5] ESI tag syntax in Twig file

2011-01-25 Thread Fabien Potencier
On 1/25/11 2:17 PM, Christophe BEYER wrote: Hello, I want to use ESI tag on my S2 (PR5) website, in Twig templates. It seems not working, and I think the documentation is wrong : http://docs.symfony-reloaded.org/guides/cache/http.html?highlight=standalone#using-edge-side-includes {% render '..

[symfony-users] Re: Symfony 2 : Validate Doctrine ArrayCollection

2011-01-25 Thread Donald
Thanks Bernhard. I have a habit of hitting those apparently >.< On Jan 25, 8:48 am, Bernhard Schussek wrote: > 2011/1/25 Donald : > > > I am trying to validate a collection using the @validation:Valid() > > annotation, but it does not work with Doctrine 2's ArrayCollection > > class. > > You are

Re: [symfony-users] Re: old docs

2011-01-25 Thread Alex Pilon
Availability is important yes, however relevant search results are also important. I experience the same issues when searching. Results are always brought up that refer to documentation and writing that is several versions old. When working in Drupal, relevant and up to date search results always

[symfony-users] Re: Symfony 2 : Validate Doctrine ArrayCollection

2011-01-25 Thread Donald
On further investigation, it looks like @validation:All(@validation:Valid()) should achieve this. But I get an error when I try to use "Valid" for the "All" constraint: PHP Fatal error: Class 'Symfony\Component\Validator\Constraints \ValidValidator' not found in /Users/dtyler/Projects/quartz/src/

Re: [symfony-users] Symfony 2 : Validate Doctrine ArrayCollection

2011-01-25 Thread Bernhard Schussek
2011/1/25 Donald : > I am trying to validate a collection using the @validation:Valid() > annotation, but it does not work with Doctrine 2's ArrayCollection > class. You are currently hitting a small case that's not supported yet, sorry. It'll be done :) Bernhard -- Software Architect & Engineer

[symfony-users] Symfony 2 : Validate Doctrine ArrayCollection

2011-01-25 Thread Donald
I am trying to validate a collection using the @validation:Valid() annotation, but it does not work with Doctrine 2's ArrayCollection class. I first attempted to extend it and create a ValidArrayCollection class, but I was told that ArrayCollection shouldn't be extended, and that I should put my l

Re: [symfony-users] Re: sfGuard and multisite authentication

2011-01-25 Thread Justen Doherty
Hi Introvert, could you not create a user admin user group that is exempt from using the site_id in your SQL queries.. On Tue, Jan 25, 2011 at 2:30 PM, Gabriel Petchesi wrote: > This is beyond what you can do with sfGuardUser, search on google for SSO > (Single Sign On) technologies: > http://en

[symfony-users] Re: old docs

2011-01-25 Thread Gabriel Petchesi
I use google custom search for this purpose: http://www.google.com/cse/ I've set up my own search engine with the Symfony documentation I'm interested in, works really nice. There are people still using the older versions so I think this documentation should be still available. gabriel --

[symfony-users] Re: sfGuard and multisite authentication

2011-01-25 Thread Gabriel Petchesi
This is beyond what you can do with sfGuardUser, search on google for SSO (Single Sign On) technologies: http://en.wikipedia.org/wiki/List_of_single_sign-on_implementations If you want to build it yourself you could do something like this: 1. User logins to site A 2. User gets first page from si

[symfony-users] Displaying data in sfWidgetFormDoctrineChoice as a read-only label (symfony 1.3.8)

2011-01-25 Thread dmitrypol
I have a site where users can register and specify several predefined preferences to describe themselves (member, preference and member_preference tables). Once they select a preference they can not change it. In my form.class I have if($this->getObject()->isNew()) {... 'preference_id' =>

Re: [symfony-users] renderText in private methods

2011-01-25 Thread Gareth McCumskey
A private method does not return to a template . Rather call your private from within a public one. The private one returns the data needed for the template to the public one and the public one can call the correct template/render action you want such as renderText() On Mon, Jan 24, 2011 at 11

Re: [symfony-users] Re: AJAX session timeout handler

2011-01-25 Thread Gareth McCumskey
It works on Firefox therefore it is not server side. Regardless we fixed the problem. On Mon, Jan 24, 2011 at 5:33 PM, Eric B. wrote: > I remember back in the early days of Chrome I used to have problems with > JS and Ajax as well. But the newer versions seemed to have resolve the > problems

[symfony-users] Re: Admin Generator object_action generate wrong route (Symfony 1.4.8)

2011-01-25 Thread Andrew Szczepanski
I am getting the same error with a similar setup, albeit using Propel. Here is a proposed fix from a couple years ago that did not work for me: http://trac.symfony-project.org/ticket/5851 Hopefully it works for you and hopefully someone knows a fix for me! On Jan 23, 7:45 pm, bertzzie wrote: >

[symfony-users] renderText in private methods

2011-01-25 Thread Imran
Hi everyone, I was trying to use the renderText() method in a private method of action class, but it doesn't work. How can we use renderText() in private method or any alternative? Thanks -Imran -- If you want to report a vulnerability issue on symfony, please send it to security at symfon

[symfony-users] [S2PR5] ESI tag syntax in Twig file

2011-01-25 Thread Christophe BEYER
Hello, I want to use ESI tag on my S2 (PR5) website, in Twig templates. It seems not working, and I think the documentation is wrong : http://docs.symfony-reloaded.org/guides/cache/http.html?highlight=standalone#using-edge-side-includes {% render '...:list' with [], ['standalone': true] %} Is

Re: [symfony-users] SillyCMS updated to Symfony 2.0 PR5

2011-01-25 Thread Erkhembayar Gantulga
thanks *Tom Boutell. *Your SillyCMS 's really helped me to learn about Symfony2 greatly. Keep going. thank you. Best regards. Erkhembayar Gantulga -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] Re: AJAX session timeout handler

2011-01-25 Thread Eric B.
I remember back in the early days of Chrome I used to have problems with JS and Ajax as well. But the newer versions seemed to have resolve the problems that I was encountering. Have you checked if the problem is Chrome to executing the JS properly, or if it is a server side issue in which the

[symfony-users] Re: Admin Generator object_action generate wrong route (Symfony 1.4.8)

2011-01-25 Thread Andrew Szczepanski
Sorry if this duplicates but I posted earlier and it is not showing. I am having the same problem as you, but with Propel. There is a fix from 2 years ago, however it is not working for me. Here it is: http://trac.symfony-project.org/ticket/5851 Maybe that will work for you. I hope someone finds

[symfony-users] Please advise about Symfony2 Validation and Doctrine ODM/ORM

2011-01-25 Thread Vladimir Razuvaev
The main question is: what if we validate a managed Doctrine entity, validation produces errors, but then, in some application layer, flush() is called (e.g. for logging the request). As far as I understand - entity will be persisted with invalid values (I didn't checked yet - just reading docs)

[symfony-users] old docs

2011-01-25 Thread regality
I'm not sure if this is the right place for this, but I couldn't find anywhere else that makes sense. I've been using symfony for a work contract that I have, and am frustrated with the search results found when searching google. Could somebody change a setting on symfony- project.org that will tel

[symfony-users] sfGuard and multisite authentication

2011-01-25 Thread introvert
Hi, I need a multisite authentication system which would allow me to access all sites (on different domains) once you get logged in one site, so that users won't have to log in individually on each site. How could it be possible to accomplish that with sfGuard plugin? Is there any simple way to

[symfony-users] PDO Session Storage

2011-01-25 Thread Drew Butler
Hey guys, I'm getting close to launching a Symfony2 application and I was hoping to use the database sessions feature that I see available with the PDO session storage class. Unfortunately, when I try to set them up, I get the following error: Fatal error: Uncaught exception 'InvalidArgumentExcep

[symfony-users] Sphinx + Symfony 2

2011-01-25 Thread gphilip
Hi, does anyone has experience with using Sphinx with Symfony 2 (more specifically, Doctrine2)? 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 "symfon

[symfony-users] Re: [sf2] Symfony2 generic routes - automaticaly resolved controller

2011-01-25 Thread Wojciech Sznapka
I don't get what's not up-to-date with Symfony2? With current way of routing, we need to define every controller's action in routing, which is huge workload for developers... On 22 Sty, 16:54, Christophe COEVOET wrote: > A bundle adds the possibility to use a generic route but it is > absolutely

Re: [symfony-users] Re: lib/model/doctrine/subfolder

2011-01-25 Thread Cornelius Parkin
Possibly :-) On Tue, Jan 25, 2011 at 11:26 AM, Gareth McCumskey wrote: > This is probably because you are developing on a Windows system which > doesn't follow OS conventions of using / for directory seperators and there > was a bug that didn't properly translate that to \ for your system. > > >

Re: [symfony-users] Re: lib/model/doctrine/subfolder

2011-01-25 Thread Gareth McCumskey
This is probably because you are developing on a Windows system which doesn't follow OS conventions of using / for directory seperators and there was a bug that didn't properly translate that to \ for your system. On Tue, Jan 25, 2011 at 11:02 AM, Cornelius Parkin < cornelius.par...@gmail.com> wro

[symfony-users] Re: symfony and memcache doubt

2011-01-25 Thread Shihab KB
Dear Mathieu , Thanks for your valuable answer. I managed to install memcached and its extension in ubuntu and caching is working fine. My following code is working fine. [syntax=php]connect("10.1.11.33",11211) or die ("Could not connect"); $memcache->addServer("10.1.11.33",11211, 33);

Re: [symfony-users] Re: lib/model/doctrine/subfolder

2011-01-25 Thread Cornelius Parkin
Hi all Just for interest sake, we have found a patch in symfony 1.4.8 which is required to support multiple databases. It requires an alteration in the config/ProjectConfiguration.class.php file and was quite a mission so I thought to share this information as help for others whom may experience t