[symfony-users] Re: announce: sfMemcachePlugin-0.2
Ah ok! I ported this given sfMemcacheCache class a few weeks ago to a symfony 1.0.X project and so this naming problem came to my mind :) - Frank Am 31.08.2007 um 05:07 schrieb Myke Hines: Frank, The sfMemcacheCache class in the trunk is only for 1.1.x. It was on purpose that the naming be conflicting because the plugin is incompatable and unneccesary with symfony 1.1.x thanks tho On Aug 30, 2007, at 5:07 PM, Frank Stelzer [EMAIL PROTECTED] wrote: Just a small hint: Are you aware of, that a sfMemcacheCache class already exists? http://trac.symfony-project.com/trac/browser/trunk/lib/cache/ sfMemcacheCache.class.php This could cause naming problems, if one would use this plugin. - Frank Am 31.08.2007 um 01:10 schrieb Myke Hines: I just wanted to let everyone know of a new plugin available on the symfony site. sfMemcachePlugin allows you to use memcached for your caching layer (both function and view templates). It's definitely still beta but here you go: http://trac.symfony-project.com/trac/wiki/sfMemcachePlugin -- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- Myke Hines SurfShot Media, Inc. webHines Inc. [EMAIL PROTECTED] (858) 779-9623 Office (858) 784-1597 Cell http://www.surfshot.com SurfShot.com - Surf Reports, Digital Magazine more webHines - Professional Web Development --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Customize error 500 page for several applications
A symlink to a centralized error500 page should also work. On 8/30/07, David Brewer [EMAIL PROTECTED] wrote: This is a good question; I just ran into exactly the same issue. Here are the details of how this appears to work currently. You can customize the error500.php page for your project by creating a file in your web folder like so: web/errors/error500.php However, let's say you have multiple applications configured. In my case I have a website application called site (rooted at my.example.com/), and a web services application called srv (rooted at my.example.com/srv/). Uncaught exceptions thrown by both site and srv send the user to web/errors/error500.php. I'd prefer to have the option to either use a centralized file as it works now, or define a different file for each application. My workaround is to make a special web/errors/error500.php file that does its own routing for this situation. If SF_APP is defined, it builds a hypothetical path to a custom error500.php file for the application. In my case, I want them to live at web/APPNAME/errors/error500.php. If that file exists, it includes that file and exists. Otherwise it just displays the content of the error500.php file which follows. I hope that helps you! The code which I stuck at the top of web/errors/error500.php is below: ?php if (defined('SF_APP')) { $custom_500_file = sfConfig::get('sf_web_dir') . DIRECTORY_SEPARATOR . SF_APP . DIRECTORY_SEPARATOR . 'errors' . DIRECTORY_SEPARATOR . 'error500.php'; if (file_exists($custom_500_file)) { include($custom_500_file); exit(1); } } ? David Brewer On 8/27/07, Olivier Revollat [EMAIL PROTECTED] wrote: How can I customize error 500 page (symfony_core/data/web/errors/error500.php) for different applications in the same project ... ? Thanks ;) --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Cache misteriously deleted
Hi, I am having trouble with cache.. Sometimes, the cache misteriously is deleted, but only the files under cache/backend/dev/modules/ The directory structure under cache/backend/dev/modules/ remains intact (only the files are missing) and also the whole cache/backend/config remains (files) also. What happends then is that cache is not regenerated, probably because cache/backend/config is sitll there. What could trigger the deletion?? I am pretty sure that I do not delete anything myself Using sym1.0.2 -- Haris Zukanovic --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] URL rewriting problem
Hi ! I have a site powered by symfony (1.0.6) (wich was previously develop with .NET technology) I have a flash file (swf) in my site, and their is an http link in the flash file .. but the problem is that I can't recompile the flash with the symfony URL inside (I forgot the source of the flash) ... so in my flash file I have the old (.NET) url : http://localhost/fr/common/aires/carte/aires.aspx?carte=1 and I want this URL : http://localhost/fr/common/aires/carte/1 I try to use apache mod_rewrite with the following rule in the .htaccess : RewriteCond %{QUERY_STRING} carte=1 RewriteRule ^(.*)$ /fr/common/aires/carte/1 [R] But symfony append the query string (QSA flag see below) (?carte=1) RewriteRule ^(.*)$ index.php [QSA,L] So the URL match again my rule and their is an infinite loop !!! So it doesn't work ... Theire is mabe two solutions : 1) Rewrite the query string to erase carte=1 so symfony append nothing and the redirected URL does not match my rule again ... 2) Using the symfony URL routing, but I don't know how to do that Any ideas ? Thanks ;)) --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Routing Problem
Hi, I'm using Symfony 1.0.6 and i have a problem con routing if i define this rule: example: url: /:mode/:category1 param: { module: categories, action: show, mode: basic, category1: 1 } requirements: { mode: ^(basic|premium), category1: \d+ } with this url: /premium/2 i get next: $this-getRequestParameter(mode) - premium $this-getRequestParameter(category1) - premium (incorrect) Debugging sfRouting (parse method) i've found that : if (preg_match($regexp, $url, $r)) $regexp = #^(?:\/((basic|premium)))?(?:\/(\d+))?$# $url = /premium/2/ $r=Array ( [0] = /premium/2 [1] = ofertas [2] = ofertas [3] = 2 ) maybe regexp is not well defined?? any idea? Thanks. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: advanced caching
On Aug 31, 7:22 am, Oriol Mercadé [EMAIL PROTECTED] wrote: now the question: it would be very nice to set a lifetime of the cached results so we don't have to bother cleaning cache manually or via cron... We took a look into sfFunctionCache class and it's parents, but we don't find a way. Are we missing something or symfony really doesn't permit that? Can you not set that in the cache.yml file for the app or module you're using? --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: advanced caching
it seems that it doesn't look at the cache.yml of the app nor the module, remember that it is cache using php code... thank you anyway... On 8/31/07, Eno [EMAIL PROTECTED] wrote: On Aug 31, 7:22 am, Oriol Mercadé [EMAIL PROTECTED] wrote: now the question: it would be very nice to set a lifetime of the cached results so we don't have to bother cleaning cache manually or via cron... We took a look into sfFunctionCache class and it's parents, but we don't find a way. Are we missing something or symfony really doesn't permit that? Can you not set that in the cache.yml file for the app or module you're using? -- - Oriol Mercadé Figueras --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: advanced caching
The sfFunctionCache has been refactored in the trunk version, and it now allows not only to set a lifetime, but also to use various storage strategies (in memory, in a cache, in a database). So if you want this feature, I suggest you either wait for the 1.1 orelease or become one of the early beta testers! François 2007/8/31, Eno [EMAIL PROTECTED]: On Aug 31, 7:22 am, Oriol Mercadé [EMAIL PROTECTED] wrote: now the question: it would be very nice to set a lifetime of the cached results so we don't have to bother cleaning cache manually or via cron... We took a look into sfFunctionCache class and it's parents, but we don't find a way. Are we missing something or symfony really doesn't permit that? Can you not set that in the cache.yml file for the app or module you're using? --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: advanced caching
Oriol, No you will have to upgrade your entire symfony version to the 1.1 trunk. Many many things have been refactored in the trunk so you can't just take a few classes. It wouldn't be hard for you to hack together your own version of sfFunctionCache that accepts a lifetime parameter. myke On 8/31/07, Oriol Mercadé [EMAIL PROTECTED] wrote: That was exacly what i was expecting to hear! :) does that change have a lot of dependencies or i can try tu update the class and cross my fingers until 1.1 is released? thank you very much! On 8/31/07, Francois Zaninotto [EMAIL PROTECTED] wrote: The sfFunctionCache has been refactored in the trunk version, and it now allows not only to set a lifetime, but also to use various storage strategies (in memory, in a cache, in a database). So if you want this feature, I suggest you either wait for the 1.1 orelease or become one of the early beta testers! François 2007/8/31, Eno [EMAIL PROTECTED]: On Aug 31, 7:22 am, Oriol Mercadé [EMAIL PROTECTED] wrote: now the question: it would be very nice to set a lifetime of the cached results so we don't have to bother cleaning cache manually or via cron... We took a look into sfFunctionCache class and it's parents, but we don't find a way. Are we missing something or symfony really doesn't permit that? Can you not set that in the cache.yml file for the app or module you're using? -- - Oriol Mercadé Figueras -- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- Myke Hines SurfShot Media, Inc. webHines Inc. [EMAIL PROTECTED] (858) 779-9623 Office (858) 784-1597 Cell http://www.surfshot.com SurfShot.com - Surf Reports, Digital Magazine more webHines - Professional Web Development --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Zend Guard and Symfony can't work together?
Hi, For security issue, I tried use my Zend Guard v4 to encode my php file in Symfony. But so wired, the files don't work after encode by Zend Guard. These actions can't be executed... Does any one has the same situation like me? Please share your solution here. It will helpful for me. Or..Symfony doesn't execute encode files? --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Routing Problem
Try this variation on your routing rule: url: /:mode/:category1 param: { module: categories, action: show } requirements: { mode: ^(basic|premium), category1: \d+ } You don't need to define settings for the category1 or mode parameters under 'param' as since they are part of the URL, they will automatically get set. David Brewer On 8/31/07, Yeray Rodriguez [EMAIL PROTECTED] wrote: Hi, I'm using Symfony 1.0.6 and i have a problem con routing if i define this rule: example: url: /:mode/:category1 param: { module: categories, action: show, mode: basic, category1: 1 } requirements: { mode: ^(basic|premium), category1: \d+ } with this url: /premium/2 i get next: $this-getRequestParameter(mode) - premium $this-getRequestParameter(category1) - premium (incorrect) Debugging sfRouting (parse method) i've found that : if (preg_match($regexp, $url, $r)) $regexp = #^(?:\/((basic|premium)))?(?:\/(\d+))?$# $url = /premium/2/ $r=Array ( [0] = /premium/2 [1] = ofertas [2] = ofertas [3] = 2 ) maybe regexp is not well defined?? any idea? Thanks. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Routing Problem
Hi David, thanks for your answer. I defined category1 under param to give it a default value to avoid another routing rule when there isn't category1 on the url. On 8/31/07, David Brewer [EMAIL PROTECTED] wrote: Try this variation on your routing rule: url: /:mode/:category1 param: { module: categories, action: show } requirements: { mode: ^(basic|premium), category1: \d+ } You don't need to define settings for the category1 or mode parameters under 'param' as since they are part of the URL, they will automatically get set. David Brewer On 8/31/07, Yeray Rodriguez [EMAIL PROTECTED] wrote: Hi, I'm using Symfony 1.0.6 and i have a problem con routing if i define this rule: example: url: /:mode/:category1 param: { module: categories, action: show, mode: basic, category1: 1 } requirements: { mode: ^(basic|premium), category1: \d+ } with this url: /premium/2 i get next: $this-getRequestParameter(mode) - premium $this-getRequestParameter(category1) - premium (incorrect) Debugging sfRouting (parse method) i've found that : if (preg_match($regexp, $url, $r)) $regexp = #^(?:\/((basic|premium)))?(?:\/(\d+))?$# $url = /premium/2/ $r=Array ( [0] = /premium/2 [1] = ofertas [2] = ofertas [3] = 2 ) maybe regexp is not well defined?? any idea? Thanks. -- La imaginación puede llevarte a cualquier lado --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Zend Guard and Symfony can't work together?
Haha... I found some topic about this and tried out the solution by my self. The steps are below: 1. In Zend Guard setting subpage, Obfuscation, the Obfuscation Level can't be Strong. 2. Find or create autoload.yml in apps level config directory. (exp: project/apps/frontend/config/). and add setting in autoload.yml. for example: I have a encrypt file in /project/apps/frontend/lib/ abc.class.php . my autoload.yml setting should be autoload: myClass: name: myClass ext:.php files: abc: %SF_APP_LIB_DIR%/abc.class.php 3. Flush symfony cache ,reload your page and done. Why should we do these extra actions after we encrypt our symfony code? because symfony can't autoload these encrypt files. If you have thousands file to encryptcongratulation! --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---