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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
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
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
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
19 matches
Mail list logo