[symfony-users] lcOpenInviterPlugin

2009-05-15 Thread Sid Bachtiar
Anyone got this plugin working on Symfony 1.0? -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~---~--~~ 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] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-15 Thread David Ashwood
There's a couple of places that tend to cause confusion when people try to override Symfony plugin functionality and the autoloader doesn't help when you're trying to test things out. You can generally create your own version of any class - if you put the new version in the right place and if

[symfony-users] sympal installation problem

2009-05-15 Thread Gandalf
Hello I followed the sympal setup instructions, but I got this error: 404 | Not Found | sfError404Exception Unable to find the pre Component : Content Table : content /prebr object with the following parameters array ()). stack trace * at () in

[symfony-users] Re: Why the form isn't saved?

2009-05-15 Thread Reynier Perez Mira
Your form is invalid, because your bind call is not correct. A missing array_merge call is missing there. Try this one: You're right. I do the things as you suggested me and the form fail. What you mean with array_merge call is missing? Can you help me there? Also none error is displayed

[symfony-users] How to use stored functions with Doctrine ?

2009-05-15 Thread Torpelix
Hello, I need to use some stored functions in my project. I'm currently using Doctrine with symfony 1.2.x I thought that DQL could be used to call stored function and get it's result but it don't works so. Is there somebody who already solved this problem and give me a solution ? Thank you.

[symfony-users] Re: PB tutorial Joobeet / Jour 4

2009-05-15 Thread Alexandru-Emil Lupu
English please, or use symfony-fr group. however you might wanna try before svn co http://svn.jobeet.org/doctrine/trunk/ jobeet/ And maybe copy the css, images and js from the svn checkout. 2009/5/15 Paco jfla...@gmail.com Bonjour, Je ne vois pas la première forme (saisie d'une catégorie

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-15 Thread Alexandru-Emil Lupu
usually if you would set in your app config dir into security.yml all: is_secure: on then you won't have to worry .. any directory that would access your user, will be automatically redirected to login form unless he's already logged in. That would mean the page that was requested becomes the

[symfony-users] Re: lcOpenInviterPlugin

2009-05-15 Thread Alexandru-Emil Lupu
This plugin is made for 1.2 symfony versions. The differences between symfony versions are too many. Maybe a complete rewrite of the plugin for 1.0 would be more appropriate. alecs On Fri, May 15, 2009 at 11:59 AM, Sid Bachtiar sid.bacht...@gmail.comwrote: Anyone got this plugin working on

[symfony-users] Re: Is there a better way to find a related record other than looping?

2009-05-15 Thread Richtermeister
I would just create a new method: $entry-findOneMetaDataByType(EntryMeta::Superscript); In there, for now you can have your loop (no problem with that.. loops are not all evil). If at some point you come up with a better solution (for performance reasons or whatever) you can just change the

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-15 Thread nick
On May 15, 9:32 am, Alexandru-Emil Lupu gang.al...@gmail.com wrote: usually if you would set in your app config dir into security.yml all:   is_secure: on then you won't have to worry .. any directory that would access your user, will be automatically redirected to login form unless he's

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-15 Thread nick
On May 15, 5:23 am, David Ashwood da...@inspiredthinking.co.uk wrote: There's a couple of places that tend to cause confusion when people try to override Symfony plugin functionality and the autoloader doesn't help when you're trying to test things out. You can generally create your own

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-15 Thread nick
On May 15, 5:23 am, David Ashwood da...@inspiredthinking.co.uk wrote:  Most people append the referrer to the URL as a parameter for this because unless you're careful you'll lose the information if you try to store it in the session/cookie (logging in will create a new session - so you'll

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-15 Thread David Ashwood
Aye - so looking at the code you need to pass the referring URL to the form from executeSignin. In the form them append the referrer to the post request with something like referrer=url. Then in the isValid codeblock - pull out the param and use it in your redirect. -Original Message-

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-15 Thread David Ashwood
Nick, You'll need to urlencode the string to use it when you append it to the post url. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of nick Sent: 15 May 2009 20:23 To: symfony users Subject: [symfony-users] Re: do i directly

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

2009-05-15 Thread xhe
I want to create an atom feed, the first two lines are ?xml version=1.0 encoding=utf-8? feed xmlns=http://www.w3.org/2005/Atom; But whenever I browse it, I always got this error Parse error: syntax error, unexpected T_STRING in But if I removed the first line, it works fine. So for RSS

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

2009-05-15 Thread Alexandru-Emil Lupu
Hi! that is caused because you have ?xml version=1.0 encoding=utf-8? feed xmlns=http://www.w3.org/2005/Atom; in a php file. php parser would believe that is actually ?php xml version=1.0 encoding=utf-8? feed xmlns=http://www.w3.org/2005/Atom; try escaping first line as following ?php echo

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

2009-05-15 Thread Eno
On Sat, 16 May 2009, Alexandru-Emil Lupu wrote: the simple version would be to use sfFeedPlugin or so Yep, or even sfFeed2Plugin :-) -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group.

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

2009-05-15 Thread Frank Stelzer
It is a interpreter problem. ? is interpreted as php opening tag Try this: ?php echo ?; ?xml version=1.0 encoding=utf-8?php echo ? ; ? - Frank Am 15.05.2009 um 22:14 schrieb xhe: I want to create an atom feed, the first two lines are ?xml version=1.0 encoding=utf-8? feed

[symfony-users] symfony debug toolbar where is the database??

2009-05-15 Thread Hassen Ben Tanfous
Hi, In 1.1.2 in the symfony debug toolbar, we had the database calls (we could see all the queries in there). In 1.1.7, I do not see it anymore. Not even the number of queries. How do I reset it like it was? Thanks -Hassen Ben Tanfous --~--~-~--~~~---~--~~ You

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

2009-05-15 Thread Frank He
i used this one $ symfony plugin-install http://plugins.symfony-project.com/sfFeed2Plugin to install, why it always tell me this is symfony 1.0 plugin, I am having symfony 1.2 On Fri, May 15, 2009 at 5:42 PM, Frank Stelzer d...@bleedingmoon.de wrote: It is a interpreter problem. ? is

[symfony-users] Re: sympal installation problem

2009-05-15 Thread Jonathan Wage
Are you using the latest version of symfony from SVN? - Jon On Fri, May 15, 2009 at 4:39 AM, Gandalf ganda...@gmail.com wrote: Hello I followed the sympal setup instructions, but I got this error: 404 | Not Found | sfError404Exception Unable to find the pre Component : Content Table :

[symfony-users] Re: sympal installation problem

2009-05-15 Thread Gandalf
Yes, latest version as of yesterday night. I solved the problem, I deleted the sympal application and executed the sympal install task again, this time with the interactive param. Thanks. On 5/15/09, Jonathan Wage jonw...@gmail.com wrote: Are you using the latest version of symfony from SVN?

[symfony-users] Re: sympal installation problem

2009-05-15 Thread Jonathan Wage
Hmm. Is it not working for you without the interactive options? I'd like to figure out what went wrong initially. - Jon On Fri, May 15, 2009 at 6:32 PM, Gandalf ganda...@gmail.com wrote: Yes, latest version as of yesterday night. I solved the problem, I deleted the sympal application and

[symfony-users] How to set enum values?

2009-05-15 Thread joshuacoady
This is my schema: EntryData: columns: id: type: integer primary: true autoincrement: true notnull: true type: type: enum values: [text, xml, html] notnull: true What's a working example of code for how I can create an object of type

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-15 Thread nick
On May 15, 2:59 pm, David Ashwood da...@inspiredthinking.co.uk wrote: Nick, You'll need to urlencode the string to use it when you append it to the post url. The variable from the form isn't really a problem. But that is not where the problem is. I did this: form action=?php echo

[symfony-users] is symfony aware of the yaml file that an option is defined in?

2009-05-15 Thread nick
Symfony depends on a lot of yaml files, such as security.yml and setttings.yml and routing.yml. Does Symfony know in which file a given option is defined in? I'm under the impression that the division of options into certain files is meant as a convenience to human programmers, but has no

[symfony-users] sfGuardPlugin

2009-05-15 Thread ScaNNeR
Hey all. Accidentally met with an error in the plugin sfGuardPlugin. The problem of this: We have a CSS file. It is described DIV like this: . entrypost_firstpost { background: # fafafa url (/ images / pageface / comment-area.gif) repeat-x left top; Padding: 1px; Margin: 0px; } There is a form

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-15 Thread nick
On May 15, 2:48 pm, David Ashwood da...@inspiredthinking.co.uk wrote: Aye - so looking at the code you need to pass the referring URL to the form from executeSignin. In the form them append the referrer to the post request with something like referrer=url. Then in the isValid codeblock -

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-15 Thread nick
Interesting. I feel like I'm getting closer. Instead of getUri() I switched to using getPathInfo() in the form: form action=?php echo url_for('@sf_guard_signin') ? method=post table ?php echo $form ? /table input type=submit value=sign in / input type=hidden name=redirect value=?php

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-15 Thread Sid Bachtiar
Use $this-getUser()-setAttribute('referer', 'URL to come back to'); sfGuard upon successful login should try to take you there. On Sat, May 16, 2009 at 4:53 PM, nick lal...@teamlalala.com wrote: Clearly, I'm going about this all wrong. If anyone else out there who has done this wants to