[symfony-users] Re: Guidance on embedding AJAX-enabled DIV across multiple actions

2009-04-21 Thread Eno
On Tue, 21 Apr 2009, blake wrote: > How do I go about doing this in symfony? I tried creating a component > and placing it in the layout but when the user clicks the "Next FAQ" > link, it of course wants to execute an action, not a component. Can I > embed two actions on one page? There's a wh

[symfony-users] Re: How can i use a symfony helper in a js file

2009-04-21 Thread ctrlming
you can use it in JavascriptHelper.php : javascript_tag(' '); I used it in my jQueryHelper called jq_javascript_tag(''); looks like JavascriptHelper javascript_tag(); My English not good,I hope you can read these words On 4月16日, 下午7时08分, Ahmed wrote: > Hi all :) , > I want to use a php functi

[symfony-users] Re: How can i use a symfony helper in a js file

2009-04-21 Thread Ido
Could you elaborate ? what helper ? where are you calling it from ? 10x On Apr 17, 9:13 pm, Ahmed wrote: > Thanks for all; > After many search i found that the best way is doing this with > helper . > @Alexandru-Emil Lupu : Why it's not recomended ? > > On 17 avr, 08:50, Alexandru-Emil Lupu wr

[symfony-users] http://www.symfony-project.org/plugins/ Unavailable

2009-04-21 Thread Sherif
I'm unable to login to http://www.symfony-project.org/plugins/ (its been like that for a few hours now). When you try to login, you get a "500 Server error". Just posting it here if anyone knows someone who can fix this, that would be great --~--~-~--~~~---~--~~

[symfony-users] what are the best tutorials on how to build a full public profile system for users, based off of sfGuard?

2009-04-21 Thread Lawrence Krubner
I've been asked to build, not quite an online social network, more like a system where users can sign up and create public profile pages. I'm starting with sfGuard as my base. Can anyone point me to some of the better tutorials and blog posts on this subject? --~--~-~--~~---

[symfony-users] Re: Why would I get a "Template not set" error message?

2009-04-21 Thread Eno
On Tue, 21 Apr 2009, Lawrence Krubner wrote: > Well, thanks, but "followed the history" is a lot to ask. There is > already so much to learn, without going back a few years to get the > full historical perspective. Well, both 1.1 and 1.2 are less than a year old. A lot of the changes were blogg

[symfony-users] Re: i seem unable to get the settings right for security.yml

2009-04-21 Thread Sid Bachtiar
That would lock all modules in your app but weblog module On Wed, Apr 22, 2009 at 2:37 PM, Sid Bachtiar wrote: > In your app's security.yml: > > default: >  is_secure: on > > In your weblog module's security.yml: > > default: >  is_secure: off > > On Wed, Apr 22, 2009 at 2:23 PM, Lawrence Krubne

[symfony-users] Re: i seem unable to get the settings right for security.yml

2009-04-21 Thread Sid Bachtiar
In your app's security.yml: default: is_secure: on In your weblog module's security.yml: default: is_secure: off On Wed, Apr 22, 2009 at 2:23 PM, Lawrence Krubner wrote: > > > I've a website with 1 app and inside of that are 8 modules. One module > is open to the public, and the others ar

[symfony-users] i seem unable to get the settings right for security.yml

2009-04-21 Thread Lawrence Krubner
I've a website with 1 app and inside of that are 8 modules. One module is open to the public, and the others are to be behind a password. I seem unable to figure out how to say this in security.yml. I realize I can set these things by creating a file inside of a config of each module, but I thou

[symfony-users] Re: is anyone currently able to reach the Plugins page on Symfony-Project.org?

2009-04-21 Thread Lawrence Krubner
On Apr 21, 10:18 pm, Eno wrote: > On Tue, 21 Apr 2009, Lawrence Krubner wrote: > > I finally fixed it by deleting all cookies from the symfony- > > project.org site. > > I tried that. I still get the error upon login. Yes, I'm unable to login. But at least, when I deleted all the cookies, I w

[symfony-users] Re: is anyone currently able to reach the Plugins page on Symfony-Project.org?

2009-04-21 Thread Eno
On Tue, 21 Apr 2009, Lawrence Krubner wrote: > I finally fixed it by deleting all cookies from the symfony- > project.org site. I tried that. I still get the error upon login. -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[symfony-users] Re: Guidance on embedding AJAX-enabled DIV across multiple actions

2009-04-21 Thread iamde...@gmail.com
On 21 Apr 2009, at 23:40, blake wrote: > > All, > > I am trying to create a FAQ browser that is embedded at the bottom of > multiple pages of my site. The browser has a "next FAQ" and "previous > FAQ" that needs to refresh the FAQ content without refreshing the page > - in other words, an AJAX

[symfony-users] Re: How universal is sfGuardPlugin really?

2009-04-21 Thread Jonathan Wage
You should make it so you're always working from a User object, and a User will have a "type", that can imply a certain group in the security system, and it can also imply a relationship between User and that "Type" class. You could also then setup some magic between the User and the "type" model t

[symfony-users] Guidance on embedding AJAX-enabled DIV across multiple actions

2009-04-21 Thread blake
All, I am trying to create a FAQ browser that is embedded at the bottom of multiple pages of my site. The browser has a "next FAQ" and "previous FAQ" that needs to refresh the FAQ content without refreshing the page - in other words, an AJAX refresh. How do I go about doing this in symfony? I

[symfony-users] Re: How universal is sfGuardPlugin really?

2009-04-21 Thread Richtermeister
Hey Jon, thanks for your reply. yeah, that sounds right as far as permissions are concerned. I'm pretty sure those are flexible enough to acomodate my needs. What I am more concerned with is where I would store the extra fields for each usertype.. a customer would have different fields than say,

[symfony-users] Re: How universal is sfGuardPlugin really?

2009-04-21 Thread Jonathan Wage
The user type you speak of is a "group", and each group has a set of permissions. These permissions get turned in to credentials for the user. So, you create a list of permissions, locking down each individual piece of your functionality. Then you can create groups that give user access to some per

[symfony-users] How universal is sfGuardPlugin really?

2009-04-21 Thread Richtermeister
Hi all, I am working on a somewhat large multi-site cms setup (which is a breeze with symfony's configurability), and I am wondering how much I should tie my user-administration around the sfGuardPlugin. I have had great experience with it when it comes to single usertypes (admins for example), b

[symfony-users] Re: Why would I get a "Template not set" error message?

2009-04-21 Thread Lawrence Krubner
On Apr 21, 3:37 pm, Eno wrote: > On Tue, 21 Apr 2009, Lawrence Krubner wrote: > > In fact, the whole site is working. We've successfully upgraded from > > Symfony 1.1 to 1.2. > > > I'll say again, the upgrade is much harder than what I'd expect from a > > small increment number upgrade. > > If

[symfony-users] Re: is anyone currently able to reach the Plugins page on Symfony-Project.org?

2009-04-21 Thread Lawrence Krubner
Odd. I got that error as soon as I tried to log in. I finally fixed it by deleting all cookies from the symfony- project.org site. On Apr 21, 5:07 pm, Sid Bachtiar wrote: > I can view the page fine > > On Wed, Apr 22, 2009 at 9:00 AM, Lawrence Krubner > > > > wrote: > > > When I go here: >

[symfony-users] what is the best wiki plugin for Symfony 1.2?

2009-04-21 Thread Lawrence Krubner
I'm building a site using Symfony 1.2. The client has asked for a simple wiki where staff can collect business information. Does anyone recommend any of the wiki plugins? I just looked over the plugin page. Seems like there are few wiki plugins for 1.2. --~--~-~--~~

[symfony-users] Re: is anyone currently able to reach the Plugins page on Symfony-Project.org?

2009-04-21 Thread Sid Bachtiar
I can view the page fine On Wed, Apr 22, 2009 at 9:00 AM, Lawrence Krubner wrote: > > When I go here: > > http://www.symfony-project.org/plugins/ > > I get this error: > > "Content Encoding Error > > The page you are trying to view cannot be shown because it uses an > invalid or unsupported form

[symfony-users] is anyone currently able to reach the Plugins page on Symfony-Project.org?

2009-04-21 Thread Lawrence Krubner
When I go here: http://www.symfony-project.org/plugins/ I get this error: "Content Encoding Error The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. The page you are trying to view cannot be shown because it uses an invalid or unsupp

[symfony-users] Re: Help, how to install symfony running with windows XP

2009-04-21 Thread Alexandru-Emil Lupu
orkan, I am trying to help. This solution worked for me and there is no problem with it. It is more simple to call symfony2 generate:app foo instead of php E:/symfony/1.2/data/bin/symfony generate:app foo If you think that is better always include "php E:/symfony/1.2/data/bin/symfony" into comm

[symfony-users] Re: Why would I get a "Template not set" error message?

2009-04-21 Thread Eno
On Tue, 21 Apr 2009, Lawrence Krubner wrote: > In fact, the whole site is working. We've successfully upgraded from > Symfony 1.1 to 1.2. > > I'll say again, the upgrade is much harder than what I'd expect from a > small increment number upgrade. If you followed the history, you'd know that 1.1

[symfony-users] Re: Help, how to install symfony running with windows XP

2009-04-21 Thread Orkan
This will tell you how to install symfony on both OS http://www.symfony-project.org/book/1_2/ > And also, after you have install it, go to c:\windows\system32\ dir and add > a symfony.bat file which has to contain what a imagination! LOL --~--~-~--~~~---~--~~ You

[symfony-users] Re: Problem with datetime validation

2009-04-21 Thread J Philip
Thanks for the link, very helpful. On Apr 21, 10:41 am, Jacob Coby wrote: > daylight savings time.  there is no 2am on 4/4/2004. > > http://www.timeanddate.com/time/dst2004a.html > > On Apr 21, 2009, at 2:27 PM, JPhilip wrote: > > > --~--~-~--~~~---~--~~ You rece

[symfony-users] is there a standard meta tag for advertising that a web site was built with Symfony?

2009-04-21 Thread Lawrence Krubner
I'd like to do my part to promote Symfony. We've got two new Symfony sites that will be going live next month. I'm curious if the Symfony community has a standard meta tag, to be embedded in the HTML, to make clear that a site was built with Symfony? --~--~-~--~~~---

[symfony-users] Re: Problem with datetime validation

2009-04-21 Thread Jacob Coby
daylight savings time. there is no 2am on 4/4/2004. http://www.timeanddate.com/time/dst2004a.html On Apr 21, 2009, at 2:27 PM, JPhilip wrote: > > I was wondering if anyone else can reproduce this error: > When I enter in a form the datetime 2004-04-04 2:00, sfValidatorDate > cleans it into 200

[symfony-users] Re: Why would I get a "Template not set" error message?

2009-04-21 Thread Lawrence Krubner
On Apr 21, 1:36 pm, Lawrence Krubner wrote: > So, I've been having some troubles. We just moved a new site (we'd > barely started work on it, really) from a server that had been running > Symfony 1.1 to a new server running 1.2. As Lee Bolding said, moving > and upgrading at the same time guara

[symfony-users] Problem with datetime validation

2009-04-21 Thread JPhilip
I was wondering if anyone else can reproduce this error: When I enter in a form the datetime 2004-04-04 2:00, sfValidatorDate cleans it into 2004-04-04 3:00 so that the datetime saved is incorrect. I traced it back to sfValidatorDate using mktime or strtotime to change the date to timestamp and d

[symfony-users] Re: Output Escaping, how the hack can I get RAW Config data?

2009-04-21 Thread Alistair Stead
I would suggest you assign the value returned by sfConfig to a php variable as part of the action. If the value is a string you should then be able to access it directly. If it is a complex data type you will need to use ESC_RAW. Regards Alistair 2009/4/21 Sam > > Fine $sf_data is my friend whe

[symfony-users] Output Escaping, how the hack can I get RAW Config data?

2009-04-21 Thread Sam
Fine $sf_data is my friend when it comes to raw data, but how can I retrieve config values unescaped? I have a call to sfConfig::get('sth') in a template since I need some config value there, but i get it escaped! So what can I do to get this value unescaped? The call occurs in a partial --~--~-

[symfony-users] Why would I get a "Template not set" error message?

2009-04-21 Thread Lawrence Krubner
So, I've been having some troubles. We just moved a new site (we'd barely started work on it, really) from a server that had been running Symfony 1.1 to a new server running 1.2. As Lee Bolding said, moving and upgrading at the same time guarantees some pain. But I've been reading tutorials and fo

[symfony-users] Re: Error: Unable to open PDO connection

2009-04-21 Thread Lawrence Krubner
On Apr 21, 4:57 am, Lee Bolding wrote: > On 21 Apr 2009, at 07:41, Lawrence Krubner wrote: > > > > > 500 | Internal Server Error | PropelException > > Unable to open PDO connection [wrapped: SQLSTATE[28000] [1045] Access > > denied for user 'lawrence'@'localhost' (using password: NO)] > > stack

[symfony-users] Re: user->getFlash() when the flash contain html tag

2009-04-21 Thread Dheeraj Kumar Aggarwal
Hi Ahmed, At my side this is working i have used in actions class $msg = "display msg"; and then set the flash message by $this->getUser()->setFlash('msg', $msg); then i am retrieving it in templates as $sf_user->getFlash('msg'); and it is working fine. On Tue, Apr 21, 2009 at 9:31 PM, Ahm

[symfony-users] Re: what kind of errors should I expect upgrading from Symfony 1.1 to 1.2?

2009-04-21 Thread Lawrence Krubner
On Apr 21, 10:53 am, Eno wrote: > On Mon, 20 Apr 2009, Lawrence Krubner wrote: > > Is that a problem because of the upgrade? What sort of problems should > > I expect? > > Did you read through the upgrade guide? > > http://www.symfony-project.org/installation/1_2/upgrade I did not know about

[symfony-users] Help files

2009-04-21 Thread Ghizlane Zinbi
Hi, How can i generate help files (chm or others) with Symfony? Thanks, Ghizlane --~--~-~--~~~---~--~~ 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@googlegroup

[symfony-users] user->getFlash() when the flash contain html tag

2009-04-21 Thread Ahmed
Hi all ; i have a simple message Where i store a html message with and tag . When i try to display it (in the layout ) with echo $sf_user->getFlash ('msg') ,she not recognize any html tag an display them as a string . How can i correct this ? . Cordialy Ahmed . --~--~-~--~~--

[symfony-users] Re: Help, how to install symfony running with windows XP

2009-04-21 Thread Alexandru-Emil Lupu
hi! is preety simple to install ... if you have a xampp or a wampp distribution, then all what you have to do is to open a "cmd" window, navigate into your installation dir\php and there run command "go-pear" and after that just follow regullar installation process. And also, after you have install

[symfony-users] Re: Help, how to install symfony running with windows XP

2009-04-21 Thread Eno
On Tue, 21 Apr 2009, cold_77 wrote: > well, for the first time i saw/read about how to install the symfony > tutorial, there is no availbale install symfony using windows xp, and > now i'm getting hopeless, actually i want to learn it but not in linux > based. Can you tell me how to install it ?

[symfony-users] Help, how to install symfony running with windows XP

2009-04-21 Thread cold_77
Hello everyone, well, for the first time i saw/read about how to install the symfony tutorial, there is no availbale install symfony using windows xp, and now i'm getting hopeless, actually i want to learn it but not in linux based. Can you tell me how to install it ? Please help me.. --~--~-

[symfony-users] Re: what kind of errors should I expect upgrading from Symfony 1.1 to 1.2?

2009-04-21 Thread Eno
On Mon, 20 Apr 2009, Lawrence Krubner wrote: > Is that a problem because of the upgrade? What sort of problems should > I expect? Did you read through the upgrade guide? http://www.symfony-project.org/installation/1_2/upgrade -- --~--~-~--~~~---~--~~ You r

[symfony-users] Re: tinyMCE not working

2009-04-21 Thread Eno
On Tue, 21 Apr 2009, Alexandru-Emil Lupu wrote: > on linux OS, you have to check permissions of sf directory in > /usr/share/php/data/ Or copy those files into web/js. -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[symfony-users] observe_form with no ajax call

2009-04-21 Thread Ido
Hi, I'm looking for something to observe changes in my forms, and a call a js function when something changes. It feels like LESS work than observe_form is actually doing (ajax), but I can't seem to figure a clean way of doing it. (All I want to do is manage a dirty bit for my form, so when the us

[symfony-users] Re: Symfony Extension: Sympal

2009-04-21 Thread Jonathan Wage
Hmm not any longer. I will try and put one back up soon. Until then you can see screenshots/screencasts http://www.sympalphp.org/preview/en - Jon On Tue, Apr 21, 2009 at 4:11 AM, cleve wrote: > > Hey Jonathan, > > Is there still a working demo for this some where? > > John > > On Apr 20, 7:52

[symfony-users] Re: myUser initialize, Doctrine strange issue.

2009-04-21 Thread FlyLM [ML]
I really not found any solution to do Doctrine requests after the "parent::initialize" of my "myUser.class.php". I don't understand what's happening with the user setCulture method. I bypassed the problem, but I would like to understand if I do something bad or if it's a bug ? Sincerely, Fabien

[symfony-users] Re: tinyMCE not working

2009-04-21 Thread Alexandru-Emil Lupu
on linux OS, you have to check permissions of sf directory in /usr/share/php/data/ On Tue, Apr 21, 2009 at 2:59 PM, Sumedh wrote: > > Hi Friends, > > I am using Symfony 1.0...just tried to create a simple rich text > textarea using tinyMCE as given in > > http://www.symfony-project.org/book

[symfony-users] tinyMCE not working

2009-04-21 Thread Sumedh
Hi Friends, I am using Symfony 1.0...just tried to create a simple rich text textarea using tinyMCE as given in http://www.symfony-project.org/book/1_0/10-Forms#Rich%20Text%20Editing But it's not working... I downloaded tinyMCE v 3.2.2.3 and create a textarea with rich=true option... But I ge

[symfony-users] Re: Does a facility for "plugin.yml"?

2009-04-21 Thread ProdigitalSon
Thts exactly what i need and much more elegant, anyhow. Thank you sir :-) On Apr 21, 4:32 am, naholyr wrote: > I'm not sure that it has existed, but what has always worked is > creating a "app.yml" in your plugin's config directory. It's merged > with global config (before your project's one, wh

[symfony-users] Re: How do I set a field value on a form?

2009-04-21 Thread Bernhard Schussek
Hi Mark, What exactly is it what you want to do? If you want to provide a default value for the field, there are several ways to do this: 1. You can pass the defaults to the form constructor $form = new sfForm(array('field' => 'value')); 2. You can set the defaults using setDefault()/setDefault

[symfony-users] How do I set a field value on a form?

2009-04-21 Thread Mark Smith
If I do $form[field]="value" An exception gets thrown with message "Cannot update form fields". If I try to use bind to rebuild the form values from scratch, the form won't validate with a _csrf_token [required] error, despite the fact that I have called $form->disableCSRFProtection()... I feel

[symfony-users] Doctrine utf8 encoding for plugins

2009-04-21 Thread Denis Fingonnet
Hi all, I'd like to create all tables using an utf8_unicode_ci collate and an utf8 charset for plugins (sfDoctrineGuardPlugin for exemple). Is there a way to do this. I added : - encoding: utf8 in the databases.yml file - options: type: INNODB collate: utf8_unicode_ci charset: utf8 in the

[symfony-users] Re: Symfony Extension: Sympal

2009-04-21 Thread cleve
Hey Jonathan, Is there still a working demo for this some where? John On Apr 20, 7:52 pm, Pablo Godel wrote: > I've been following the progress of this project, it looks really > nice. I hope to try it out pretty soon with one of my projects. > > Thanks for sharing. > > Pablo > > On Mon, Apr 2

[symfony-users] Re: Error: Unable to open PDO connection

2009-04-21 Thread Lee Bolding
On 21 Apr 2009, at 07:41, Lawrence Krubner wrote: > > > > 500 | Internal Server Error | PropelException > Unable to open PDO connection [wrapped: SQLSTATE[28000] [1045] Access > denied for user 'lawrence'@'localhost' (using password: NO)] > stack trace > If I ssh to the server, I can use the

[symfony-users] Re: Does a facility for "plugin.yml"?

2009-04-21 Thread naholyr
I'm not sure that it has existed, but what has always worked is creating a "app.yml" in your plugin's config directory. It's merged with global config (before your project's one, which is merged before your application's one, which means you can overwrite plugin's app.yml directives in project's o

[symfony-users] Re: Something I don't understand with form default values

2009-04-21 Thread Adrien Mogenet
I don't know if I was clear or not... but I DON'T want force values in the CLASS but in the FORM :-) Thx anyway lol -- Adrien On 21 avr, 09:02, Lawrence Krubner wrote: > On Apr 21, 2:45 am, Adrien Mogenet wrote: > > > Symfony 1.2 > > > As I said in my first message, YES, it works when I put `

[symfony-users] Re: Something I don't understand with form default values

2009-04-21 Thread Lawrence Krubner
On Apr 21, 2:45 am, Adrien Mogenet wrote: > Symfony 1.2 > > As I said in my first message, YES, it works when I put `setDefault` > in the action. But when you call this method from the form class, it > seems to not FORCE the value but just set it as a default value (ie: > if no other value has