[symfony-users] How to use custom params for caching ?

2007-06-21 Thread Nicolas CHARLOT
Hello, For instance, a component shows current culture. In template, I will just have to write : Since there are 3 cultures, there are 3 cached versions. To perform that, I have only found the way to pass current culture as a param : $sf_user->getCulture())) ?> This is juste an example.

[symfony-users] Re: How to use custom params for caching ?

2007-06-21 Thread Francois Zaninotto
Hi Nicolas, I'm not sure that it answers your request, but do you know the sf_cache_key parameter that you can call when you include a partial? http://www.symfony-project.com/book/trunk/12-Caching#Clearing%20Selective%20 Parts%20of%20the%20Cache François _ De : symfony-users@googleg

[symfony-users] Re: How to use custom params for caching ?

2007-06-21 Thread Nicolas CHARLOT
Francois Zaninotto a écrit : I'm not sure that it answers your request, but do you know the sf_cache_key parameter that you can call when you include a partial?   http://www.symfony-project.com/book/trunk/12-Caching#Clearing%20Selective%20Parts%20of%20the%20Cache   The sf_cache

[symfony-users] Routing and url stored in db

2007-06-21 Thread Nicolas CHARLOT
Another question about routing. I have in my model a field "clean_url" wich store the url related that display object. For instance, a table "page" : clean_url    | title  | content | Home   | ... heading1/page

[symfony-users] Re: Routing and url stored in db

2007-06-21 Thread Tristan Rivoallan
On 6/21/07, Nicolas CHARLOT <[EMAIL PROTECTED]> wrote: > Unfortunately, this is not working... Actually, I've exploded the clean_url > in getLink() method, wrote 1 route for each level, and concated url parts in > action to compare with the stored value. requirement: {.*} (or something approac

[symfony-users] Re: Routing and url stored in db

2007-06-21 Thread Francois Zaninotto
The slashes of the clean_url parameter will be escaped by the sfRouting::generate() command. A silly hack (but working very well) to fix this is to do: public function getLink() { $link= sfContext::getInstance()->getController()->genUrl('@page?clean_url=PLACEHOLD ER'); return str_replace('PLA

[symfony-users] Re: Routing and url stored in db

2007-06-21 Thread Nicolas CHARLOT
Francois Zaninotto a écrit : The slashes of the clean_url parameter will be escaped by the sfRouting::generate() command. A silly hack (but working very well) to fix this is to do:   public function getLink() {   $link= sfContext::getInstance()->getController()->genUrl('@page?clea

[symfony-users] Re: Routing and url stored in db

2007-06-21 Thread Nicolas CHARLOT
Francois Zaninotto a écrit : I strongly advise you to put this inside a helper rather than in your model, since it's breaking the MVC separation. I agree with U, but it's a bit particular since I'm implementing a CMS so I mean that link is like a real data. I've to get the link in a

[symfony-users] Permissions & Security

2007-06-21 Thread [EMAIL PROTECTED]
First, I have been using symfony for a number of applications including a medical data analysis and reporting application, health education training registration and some other more simple apps. I love it. All the features I have ever thought of are here in more thought out and robust versions a

[symfony-users] Is possible to generate admin for a plugin ?

2007-06-21 Thread Nicolas CHARLOT
Hi, Is it possible to generate admin for a plugin ? Thanks -- Nicolas --~--~-~--~~~---~--~~ 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@googlegroups.com

[symfony-users] Re: Is possible to generate admin for a plugin ?

2007-06-21 Thread Matthias Nothhaft
Nicolas CHARLOT wrote: > Hi, > > Is it possible to generate admin for a plugin ? I don't know.. but you can simply generate it in your application and then move it to the plugin. Regards, Matthias --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Re: Is possible to generate admin for a plugin ?

2007-06-21 Thread Nicolas CHARLOT
Matthias Nothhaft a écrit : I don't know.. but you can simply generate it in your application and then move it to the plugin. Yes, I've already mean about this way... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[symfony-users] Setting & Getting Variable Value

2007-06-21 Thread slinky66
Hi! Inside my actions class, I have a variable isError that gets set with an error message if there was an error. I want to read this variable inside my corresponding template so I can display an error message to the user. I'm trying to do it this way: //Inside actions class if(isset($errorMess

[symfony-users] Bypass routing for certain URLs?

2007-06-21 Thread Eno
What do I need to put in my .htaccess file so that certain NEVER hit Symfony's routing and are never rewritten or messed with in any way? I want mod_rewrite to ignore everything that starts with /js or /image under the web folder. Help? --~--~-~--~~~---~--~~ You

[symfony-users] Re: Setting & Getting Variable Value

2007-06-21 Thread Nathanael D. Noblet
slinky66 wrote: > Hi! > > Inside my actions class, I have a variable isError that gets set with > an error message if there was an error. I want to read this variable > inside my corresponding template so I can display an error message to > the user. I'm trying to do it this way: > > //Inside ac

[symfony-users] Re: Permissions & Security

2007-06-21 Thread Steve Lianoglou
Hi Steven, > The medical data application mentioned above is > created with the config files storing the usernames and passwords. [snip] Isn't it just kind of a bad idea in general to put the "live" passwords into the fixtures? Or, hmm ... maybe you're not storing the passwords in plain text?

[symfony-users] Re: Bypass routing for certain URLs?

2007-06-21 Thread Michael Nolan
I think something like: RewriteCond %{REQUEST_URI} !^/js Should do the trick. But the default rules exclude matching files so unless you're adding extra mod_rewrite rules then that should be enough. On Jun 21, 8:19 pm, Eno <[EMAIL PROTECTED]> wrote: > What do I need to put in my .htaccess f

[symfony-users] new language

2007-06-21 Thread gestadieu
Hi all, I am working on a project in East-Timor (ok you can go to Google Earth to find where it is!) for the government and I have setup my application (billing system for utilities) to work in english and portuguese (Portuguese and Tetum are both official languages) and I would like also to put

[symfony-users] I18N in sfGuardUser for a default I18N app does not work

2007-06-21 Thread gestadieu
Hi, I have enabled I18N in my application settings.yml because I use it everywhere. But when I try to access sfGuardUser (the standard one from the plugin), symfony complains: Fatal error: Cannot redeclare __() (previously declared in / Applications/MAMP/bin/php5/lib/php/symfony/helper/I18NHelpe