[symfony-users] Re: FormSchemaFormatter - access to validator schema

2009-05-28 Thread wik
Did you seen this one? http://dark-it.blogspot.com/2009/01/symfony-mark-fields-as-required-part-2.html Supposed to use custom base class. I had similar circumstances a while ago and also was going about to override symfony class which sets the formatter. But has limited time and above solution h

[symfony-users] Re: Integrate sfGuardUser and sfGuardUserProfile in the same Admin-Backend Module

2009-05-28 Thread halla
I think, I figured out the way it works. I'm going to embed the sfGuardUser-Form in my sfGuardUserProfile-Form :-) On 28 Mai, 22:13, halla wrote: > Hi everybody, > > I'm using the sfDoctrineGuardPlugin and it's default Admin-Generator > Backend for the sfGuardUser-Model. I'm also using a sfG

[symfony-users] Re: Expire headers and cache busting

2009-05-28 Thread Gandalf
as long as you do the modification outside symfony folders, you are safe. its not a big deal. On 5/28/09, gdufloux wrote: > > Hi Gandalf, > > On 28 mai, 15:39, Gandalf wrote: >> Dont use the symfony helpers, write your own helpers. >> I dont see the problem here > > The problem is that we a

[symfony-users] Re: Why this first in the feed is always throwing error

2009-05-28 Thread OrganicPanda
Hey, I got around this by echoing the whole first line like: longstring; ?> Then do the rest of the file as normal, Hope this helps, On May 15, 9:14 pm, xhe wrote: > I want to create an atom feed, the first two lines are > > > http://www.w3.org/2005/Atom";> > > But whenever I browse it, I

[symfony-users] Integrate sfGuardUser and sfGuardUserProfile in the same Admin-Backend Module

2009-05-28 Thread halla
Hi everybody, I'm using the sfDoctrineGuardPlugin and it's default Admin-Generator Backend for the sfGuardUser-Model. I'm also using a sfGuardUserProfile- Class for storing Profile-Data, like E-Mail Address, First Name, Date of Birth and so on. How do I integrate my Profile-Class to the sfGuardU

[symfony-users] FormSchemaFormatter - access to validator schema

2009-05-28 Thread Steve the Canuck
I have seen a few solutions to give the form schema formatter to get access to the validator schema for the form in order to do things like output the name of a required field. Adding the validator schema requires you to do so manually (either in the form itself, or using a helper in the template

[symfony-users] propel:build-schema does not create foreign keys

2009-05-28 Thread zeussolo
This issue has been talked about in other threads - maybe we can give additional hints: We are trying to build a schema.yml from an existing database using symfony propel:build-schema (symfony v1.2.7) So far, everything goes well and all of our 50 innoDB-tables are built correctly, but when it c

[symfony-users] Re: Expire headers and cache busting

2009-05-28 Thread gdufloux
Hi Gandalf, On 28 mai, 15:39, Gandalf wrote: > Dont use the symfony helpers, write your own helpers. > I dont see the problem here The problem is that we already have a hudge application, and i'm looking for a non intrusive solution, so that i don't have to replace all the calls to image_ta

[symfony-users] Re: sfGuard problem

2009-05-28 Thread Jacob Coby
If you're using the branches/1.1 svn version of symfony, propel-based tasks are broken for some reason. switch to tags/RELEASE_1_1_7 On May 24, 2009, at 1:54 AM, Alexandru-Emil Lupu wrote: > symfony cc ? > > On Sun, May 24, 2009 at 6:58 AM, murthy > wrote: > > Hello, > I am using Propel O

[symfony-users] Propel group by clause

2009-05-28 Thread vadim
Hi guys, today I encountered with the problem of moving the following query to Propel: SELECT message_chain.* FROM message_chain INNER JOIN ( SELECT MAX( id ) AS max_id, chain_id FROM message GROUP BY chain_id ) AS ids ON message_chain.chain_id = ids.chain_id It emulates gmail behaviour: i have

[symfony-users] why don't view other functions in symfony

2009-05-28 Thread Romildo Paiter
Hi all, This code below is my action.class.php { //Exibe a as informações da pagina public function executeIndex(sfWebRequest $request) { $empresa = "Bimetal Engenharia - Romildo"; $this->company = $empresa; } public function executeShow(sfWebRequest $request) { $today

[symfony-users] Re: sfForms: CSRF attack detected

2009-05-28 Thread symfony.con.spir...@gmail.com
I found the solution in this thread: http://groups.google.com/group/symfony-devs/browse_thread/thread/b53053359c1b6dfe Thx On 28 Mai, 17:00, "symfony.con.spir...@gmail.com" wrote: > Hi, > > I need your help: > > I always get the message "CSRF attack detected" and I don't know why. > > These poi

[symfony-users] sfForms: CSRF attack detected

2009-05-28 Thread symfony.con.spir...@gmail.com
Hi, I need your help: I always get the message "CSRF attack detected" and I don't know why. These point are checked : * CSRF protection is enabled in setting.yml * The input field _csrf_token has a value * The action script receives the csrf value Do you have any idea what the problem can be?

[symfony-users] Re: Expire headers and cache busting

2009-05-28 Thread Gandalf
Dont use the symfony helpers, write your own helpers. I dont see the problem here what do you plan to do with the images included from the css file? does your php install parses the css files as well? On 5/28/09, gdufloux wrote: > > Hi, > > In order to reduce the number of http requests

[symfony-users] Re: Previous version save()

2009-05-28 Thread Rafael Goulart
A suggestion: Create a attribute "oldObject" or something like that; Alter the construct (or the hydration) and put a copy of the object in that attribute. Use it on save method. []'s Rafael Goulart - Brazil On May 27, 5:44 am, HAUSa wrote: > I'm making my own model save() function. In that

[symfony-users] Class 'sfPropelRouteCollection' not found

2009-05-28 Thread Vikaash
hi i m trying to use sfGuardPlugin for my backend application. when i run the "https://localhost/crbtest/web/backend_dev.php";. i get the following error Fatal error: Class 'sfPropelRouteCollection' not found in /opt/lampp/ htdocs/crbtest/plugins/sfGuardPlugin-3.1.3/lib/ sfGuardRouting.class

[symfony-users] Re: I have a problem in file layout

2009-05-28 Thread Romildo Paiter
nick, don't view de function executeLinguas() att Romildo On Thu, May 28, 2009 at 12:13 AM, nick wrote: > > > What error do you get? > > > On May 27, 6:51 pm, Romildo Jozué Paiter > wrote: > > Look de code: action :: module:: frontend > > > > I start estudant the framework preview Friday, it'

[symfony-users] Re: OT: Help with Query in Doctrine

2009-05-28 Thread Thomas Rabaix
$last24bytes = Doctrine_Query::create()-> from('Job j')-> addSelect('sum(j.JobBytes) as bytes')-> where('j.Endtime <= now()'); On Thu, May 28, 2009 at 7:00 AM, Reynier Perez Mira wrote: > > Hi every: > I started to use Doctrine today and it's amazing but I have some pr

[symfony-users] Re: Captcha with Symfony 1.0

2009-05-28 Thread @rsenik
All right , thank you Alexandru-Emil Lupu On 28 mai, 12:46, Alexandru-Emil Lupu wrote: > sfReCaptchaPlugin is for 1.0  as > wellhttp://www.symfony-project.org/plugins/sfReCaptchaPlugin/1_1_0?tab=pl... > > but you have to install 1.0.4 version of the plugin > Alecs > > > > On Thu, May 28, 2009 a

[symfony-users] Re: Captcha with Symfony 1.0

2009-05-28 Thread Alexandru-Emil Lupu
sfReCaptchaPlugin is for 1.0 as well http://www.symfony-project.org/plugins/sfReCaptchaPlugin/1_1_0?tab=plugin_all_releases but you have to install 1.0.4 version of the plugin Alecs On Thu, May 28, 2009 at 1:22 PM, @rsenik wrote: > > I am using symfony 1.0, sfReCaptchaPlugin is for 1.1. > > I

[symfony-users] Re: Captcha with Symfony 1.0

2009-05-28 Thread @rsenik
I am using symfony 1.0, sfReCaptchaPlugin is for 1.1. I solve my problem by founding a typo error in sfCaptchaGD.class.php l. 68 : "context->getRequest()->getGetParameter('reload') " replace by "context->getRequest()->getParameter('reload')" On 28 mai, 11:27, Alexandru-Emil Lupu wrote: > i wo

[symfony-users] Expire headers and cache busting

2009-05-28 Thread gdufloux
Hi, In order to reduce the number of http requests to our server, we decided to add a expire header to our assets files (images, css and js), so that browsers cache it. But there's an important side-effect due to the expire headers: Indeed, when Apache will deliver our assets (images, css, js),

[symfony-users] Re: Captcha with Symfony 1.0

2009-05-28 Thread Alexandru-Emil Lupu
i would rather use sfReCaptchaPlugin On Thu, May 28, 2009 at 12:17 PM, @rsenik wrote: > > I try to use sfCaptchaGDPlugin, I got an 404 when form try to get > image: http://exchange.localhost/captcha?1243502190 > > What do you think about that ? > > > > -- I am on twitter: http://twitter.com/al

[symfony-users] Re: Captcha with Symfony 1.0

2009-05-28 Thread @rsenik
I try to use sfCaptchaGDPlugin, I got an 404 when form try to get image: http://exchange.localhost/captcha?1243502190 What do you think about that ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" gr

[symfony-users] Re: Timestamp and date previous to 1/1/1970

2009-05-28 Thread Gareth McCumskey
Perhaps first place to look is your own data structures. are you using timestamp on the database? Have you defined the birthdate as a timestamp yourself? On Thu, May 28, 2009 at 9:52 AM, Olivier Revollat wrote: > I have the following widget in a form: > $this->setWidget('birthdate_at', new sfWidg

[symfony-users] Re: validating sfWidgetFormDate

2009-05-28 Thread Olivier Revollat
I have the same pb ... any suggestions ? Thanks 2008/7/5 kiszl > > Hi, > > I would like to use an sfWidgetFormDate as an input for the date of > birth; and to store the value in an sql date field. > What would be the best way to validate the widget's value, and convert > it to the desired '-

[symfony-users] Timestamp and date previous to 1/1/1970

2009-05-28 Thread Olivier Revollat
I have the following widget in a form: $this->setWidget('birthdate_at', new sfWidgetFormI18nDate(array('culture' => sfContext::getInstance()->getUser()->getCulture(), 'format' => '%day%/%month%/%year%', 'years' => $years))); And my database field is : birthdate_at: type: DATE But When

[symfony-users] Captcha with Symfony 1.0

2009-05-28 Thread julien.levass...@gmail.com
Hi all, I have to put a captcha for a symfony 1.0 project. I got problem with sfCaptchaPlugin and sfCaptchaGDPlugin. What did you use in 1.0 ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To