[symfony-users] Override / ignore sf_prototype_web_dir

2009-06-22 Thread Steve Sanyal
Hi, I'm using Google's Ajax libraries for get my prototype libraries. But it seems the Javascript helpers in Symfony automatically tries to get a local copy. What's the best way to deal with this? I don't see a way to turn this off. I guess I can just create a location that doesn't exist, but

[symfony-users] Re: Criteria with date compare issue

2009-06-22 Thread Arkan
Hi Ahmed, I did some similar things today. I let you check if my code replied to your question. $c = new criteria(); $c->add(MandatsPeer::ACTIF, TRUE); $c->add(MandatsPeer::DATE_FIN, 'DATE_SUB('. MandatsPeer::DATE_FIN .',INTERVAL 31 DAY) <= CURDATE()', Criteria::CUSTOM); $mandats = MandatsPeer

[symfony-users] Re: Multiple Exentds myUser requests.

2009-06-22 Thread a...@speedypin.com
Perhaps a solid A.O.P. solution in the framework looks like what's needed here. http://en.wikipedia.org/wiki/Aspect-oriented_programming So plugin developers get their functionality running without stepping on eachothers feet. So Does that mean Symfony needs or is lacking an AOP component? [So

[symfony-users] Re: Using '+' in slugs

2009-06-22 Thread Gábor Fási
Php takes care of this, even before symfony gets the parameters, so there's no way to preserve them. On Mon, Jun 22, 2009 at 18:17, AureL wrote: > > Hello, > > I'm trying to use a '+' as separator in a slug. > > The problem is that this '+' is removed in controller : > > // in routing.yml > myRou

[symfony-users] Using '+' in slugs

2009-06-22 Thread AureL
Hello, I'm trying to use a '+' as separator in a slug. The problem is that this '+' is removed in controller : // in routing.yml myRoute: url: /:slug param: { module: default, action: index } // in view $mySlug = 'this+is+my+slug'; echo url_for('@myRoute?slug='.$mySlug); // in controlle

[symfony-users] i18n:extract : where are the generated dictionary files ?

2009-06-22 Thread AureL
Hello, I just tried the i18n:extract task : php symfony i18n:extract --auto-save frontend fr As a result, I get a 'message.xml' file in '$sf_root_dir/apps/frontend/ i18n/fr/'. http://www.symfony-project.org/book/1_2/13-I18n-and-L10n#cha pter_13_sub_using_dictionary_files The documentation say

[symfony-users] Routing : using 'requirements' for all rules

2009-06-22 Thread AureL
Hello, Is there a way to define 'requirements' for all routing rules ? Instead of repeating it for each rule... For example, I have : rule1: url: /:sf_culture/page param: { module: default, action: page } requirements: { sf_culture: '(fr|en)' } rule2: url: /:sf_culture/page2 param: {

[symfony-users] Can anyone tell me how to use i18n helper in task - Thanks in advance

2009-06-22 Thread xhe
I wan to use format_country function in my cron task, but unfortunately, the CLI throw exception as "Fatal Error: call to undefined function format_country" I know format_country should be used in template, but are there any way to use this function in the Task which is not a template. If not, how

[symfony-users] Re: Link and html options trouble

2009-06-22 Thread Thomas Dedericks
Hello melchior, The behaviour varies depending on the second argument ; If you use a named route defined in your routing.yml file (i.e. a string starting with '@') or a module/action string, symfony recognizes them as internal URLs. If you want to create a link to another website, you have

[symfony-users] Re: i18n tables with foreign references

2009-06-22 Thread Maerlyn
For future reference: after doublechecking the documentation, the generated base classes and some googling, I was sure Propel had no support for this, so I created my own doSelectJoinAllWithI18n() peer method, by using some common sense and combining the ~JoinAll() and ~WithI18n() functions. The m

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread dziobacz
Thomas you have right :D I didn't enabled 'Remember me' - in filters.yml so it should look: rendering: ~ security: ~ # insert your own filters here security: class: sfGuardBasicSecurityFilter #it is very important !!! cache: ~ common:~ execution: ~ Now we don't need session_cooki

[symfony-users] Link and html options trouble

2009-06-22 Thread melchior
i just found something strange, i try different ways to use link_to helper with the same options and i don't have the same output result, if the url is not the same it work correctly but the class parameter isn't converted into html attributes in the first case, did the first case a wrong call of

[symfony-users] Re: mime type detection

2009-06-22 Thread Johannes Heinen
Hi Juan, this is exactly what i actually trust in, namely that such cases won't occure really often. But i heard about similar problems with microsoft office document formats and so it did not set my mind on rest about it. The thing with if/else is problably a robust solution. But i am merely lo

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread Thomas Dedericks
Hi, did you enable the "Remember me" option in your filters.yml file ? Everything you need to know is explained on the readme page of sfGuardPlugin : http://www.symfony-project.org/plugins/sfGuardPlugin. Le Mon, 22 Jun 2009 13:36:56 +0200, Nickolas Daskalou a écrit: > What happens when y

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread Nickolas Daskalou
What happens when you make every page "secure" (in view.yml)? Does it work as expected then? 2009/6/22 Sid Bachtiar > > But did you check the settings?? Most browser would kill the session, > because it is a privacy issue. > > On Mon, Jun 22, 2009 at 11:09 PM, dziobacz > wrote: > > > > Remember

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread Sid Bachtiar
But did you check the settings?? Most browser would kill the session, because it is a privacy issue. On Mon, Jun 22, 2009 at 11:09 PM, dziobacz wrote: > > Remember me doesn't work in Firefox, IE8, Opera and Chrome. > > On 22 Cze, 12:50, Sid Bachtiar wrote: >> If you are using Firefox then check

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread dziobacz
Remember me doesn't work in Firefox, IE8, Opera and Chrome. On 22 Cze, 12:50, Sid Bachtiar wrote: > If you are using Firefox then check the Firefox settings. Make sure > session is not made expired on closing the browser. > > > > On Mon, Jun 22, 2009 at 10:45 PM, dziobacz wrote: > > > But checke

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread Sid Bachtiar
If you are using Firefox then check the Firefox settings. Make sure session is not made expired on closing the browser. On Mon, Jun 22, 2009 at 10:45 PM, dziobacz wrote: > > But checked 'remember me' checkbox doesn't work. > > > On 22 Cze, 12:30, Sid Bachtiar wrote: >> But I think there is a 're

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread dziobacz
But checked 'remember me' checkbox doesn't work. On 22 Cze, 12:30, Sid Bachtiar wrote: > But I think there is a 'remember me' checkbox option that warns them about it. > > It is a dangerous arrangement, so you need to be very careful here. > > > > On Mon, Jun 22, 2009 at 10:25 PM, dziobacz wrot

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread Sid Bachtiar
But I think there is a 'remember me' checkbox option that warns them about it. It is a dangerous arrangement, so you need to be very careful here. On Mon, Jun 22, 2009 at 10:25 PM, dziobacz wrote: > > But in 99% forums user is still loged on after closed and opened > browser. For example here: h

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread dziobacz
But in 99% forums user is still loged on after closed and opened browser. For example here: http://www.dbforums.com/ So this solution is normal and very popular. I think I have found a solution: user: class: myUser param: timeout: 2592000 storage: class: sfSessionStorage

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread Gareth McCumskey
Here's an example scenario. Your user goes to an Internet cafe. He logs into your web application and does what he wants to do then closes the browser (without logging out first) then walks out the door. If the session was not killed on browser exit then the next person that comes along and opens t

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread Sid Bachtiar
Hi, That's just how browser usually setup, to kill session when it is closed. The timeout is for if user has the browser window opened, but inactive (e.g.: not making any request to server) for x amount of time. You need to think about the security aspect when setting the timeout. The longer th

[symfony-users] after closed browser user is log out why ?

2009-06-22 Thread dziobacz
User should be log in 30 days = 2592000 seconds. In factories.yml I have: all: user: class: myUser param: timeout: 2592000 But after closed browser user is log out and he must log in again, why ? What should I do ? --~--~-~--~~~---~--~~ You received