[symfony-users] Re: Bug using MongoDB?

2011-03-10 Thread HiDDeN
port: 11211 instance_class: Memcache On 10 mar, 17:36, Jonathan Wage jonw...@gmail.com wrote: Hi, Can I see your configuration? - Jon On Wed, Mar 9, 2011 at 11:17 AM, HiDDeN davidmoralesmoj...@gmail.comwrote: It seems this is occuring when using Memcache

[symfony-users] [PR7] Bug using MongoDB?

2011-03-09 Thread HiDDeN
I have just downloaded the PR7 version of Symfony2, and tried to create a schema for MongoDB, and I got this error: php app/console doctrine:mongodb:schema:create PHP Fatal error: Class 'm' not found in /var/www/symfony/app/cache/ dev/appDevDebugProjectContainer.php on line 458 Fatal error:

[symfony-users] Re: Bug using MongoDB?

2011-03-09 Thread HiDDeN
It seems this is occuring when using Memcache as the metadata cache. On 9 mar, 11:43, HiDDeN davidmoralesmoj...@gmail.com wrote: I have just downloaded the PR7 version of Symfony2, and tried to create a schema for MongoDB, and I got this error: php app/console doctrine:mongodb:schema:create

[symfony-users] Symfony as a webservice for an iPhone app

2011-02-22 Thread HiDDeN
Hello. I'm building a simple iPhone app that synchronizes to a webservice served by Symfony 1.4. This app requires the user to be logged in. My question is, how can the user log in Symfony from the iPhone app? And how can I keep the session opened through the next petitions? Is this secure?

[symfony-users] Backend works on dev but not on prod

2010-11-23 Thread HiDDeN
I have a strange problem. In my development machine I have no problems running all my application, but in production the backend doesn't work well on the production environment. When in development environment, there's no problem. But when I switch to prod environment, routes seem not to work.

[symfony-users] Re: Backend works on dev but not on prod

2010-11-23 Thread HiDDeN
, but the backend does not? On 23 nov, 18:31, HiDDeN davidmoralesmoj...@gmail.com wrote: I have a strange problem. In my development machine I have no problems running all my application, but in production the backend doesn't work well on the production environment. When in development environment

[symfony-users] Re: Backend works on dev but not on prod

2010-11-23 Thread HiDDeN
? ;-) Cheers, Daniel On 23.11.2010, at 18:51, HiDDeN wrote: I have identified the responsible of this behaviour: the no_script_name option (in settings.yml). When no_script_name is set to false all routes work correctly, but when it is set to true they don't work. My question

[symfony-users] Re: URL with accents

2010-07-25 Thread HiDDeN
. AFAIK apache cannot handle these characters... Greetings Ben Am 20.07.2010 12:14, schrieb HiDDeN: I have this URL that works well (camion means truck in spanish): http://www.example.com/s/all-site/camion But if I add an accent to the word, it will not work (it doesn't find the route

[symfony-users] URL with accents

2010-07-20 Thread HiDDeN
I have this URL that works well (camion means truck in spanish): http://www.example.com/s/all-site/camion But if I add an accent to the word, it will not work (it doesn't find the route, so it gives a 404 error): http://www.example.com/s/all-site/camión It's strange, because if I add

[symfony-users] Setting Doctrine attributes in a task

2010-06-25 Thread HiDDeN
I'm trying to set a Doctrine attribute in a task, but it doesn't seem to work. What I'm trying to set, is an attribute to disable Doctrine validation: $databaseManager = new sfDatabaseManager($this-configuration); $connection = $databaseManager-getDatabase('doctrine')- getConnection();

[symfony-users] How to filter by ID in the admin generator

2010-06-03 Thread HiDDeN
The question is simple: how do I SHOW the ID field in the filter area, when using the admin generator? I'm trying to include id in the display option, inside the filter section, but it is not appearing. I have no problem with the other fields. I'm using Symfony 1.4.5 -- If you want to report a

[symfony-users] Re: How to filter by ID in the admin generator

2010-06-03 Thread HiDDeN
I think it's obvious, but to clarify, I'm talking about the generator.yml file. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to

[symfony-users] Admin generator and i18n

2010-06-03 Thread HiDDeN
I have read lots of questions about i18n, but I haven't found any about performance. I have a simple backend app listing the contents of an ads table. These ads have a category, that is translated in some languages (it's defined as i18n in the Doctrine schema). So, when I add a table_method in

[symfony-users] Admin generator and i18n

2010-06-03 Thread HiDDeN
I have read lots of questions about i18n, but I haven't found any about performance. I have a simple backend app listing the contents of an ads table. These ads have a category, that is translated in some languages (it's defined as i18n in the Doctrine schema). So, when I add a table_method in

[symfony-users] sfFormLanguage displaying languages in their respective language

2010-05-12 Thread HiDDeN
Is there a way to display languages using sfFormLanguage, but in their respective language? I mean, instead of this: English, French, Spanish I want this: English, Français, Español -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] sfGuardDoctrine with external database

2010-04-21 Thread HiDDeN
Is there some way to use the sfGuardDoctrine plugin against an external database? What I mean is to make the plugin query its tables in another server. I have thought to replicate the plugin tables in another database and use the callable feature, although I'm not sure if this is the best

[symfony-users] sfWidgetFormChoice rendered as an unordered list

2010-03-25 Thread HiDDeN
Hello. Is there some way to render a sfWidgetFormChoice as an unordered list? In the API there is an option called 'renderer_class' but I can't find any documentation or example about it. Thanks! -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Re: sfValidatorDoctrineChoice and i18n

2010-03-24 Thread HiDDeN
' = 'getSlug', 'query' = $query_categories, 'add_empty' = '')), On Mar 24, 8:13 am, Tom Ptacnik to...@tomor.cz wrote: How does the DoctrineChoice widget for this validator look? On 22 bře, 15:16, HiDDeN davidmoralesmoj...@gmail.com wrote: Yes, it is defined as a i18n table: Category

[symfony-users] Re: Accessing user session from a custom routing class

2010-03-24 Thread HiDDeN
: Context is available as an attribute in sfRoute::$context. On Wed, Mar 24, 2010 at 2:59 AM, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: +1 On Tue, Mar 16, 2010 at 1:17 PM, Jose Antonio Pio Gil joseto...@gmail.com wrote: I have the same question about it! 2010/3/16 HiDDeN

[symfony-users] sfValidatorDoctrineChoice and i18n

2010-03-22 Thread HiDDeN
I'm using Symfony 1.4.3 + Doctrine 1.2, and a typical i18n category table (the ids are in category, and the name and slug in category_translation). I have this Doctrine validator defined in my form: $this-setValidators(array( 'category' = new sfValidatorDoctrineChoice(array('model' =

[symfony-users] Re: sfValidatorDoctrineChoice and i18n

2010-03-22 Thread HiDDeN
} On Mar 22, 2:53 pm, Tom Ptacnik to...@tomor.cz wrote: Have the model Category a slug attribute?, or better, has it a getSlug() method? On 22 bře, 12:19, HiDDeN davidmoralesmoj...@gmail.com wrote: I'm using Symfony 1.4.3 + Doctrine 1.2, and a typical i18n category table (the ids

[symfony-users] [i18n] format_currency and symbol position

2010-03-17 Thread HiDDeN
I'm from Spain, and here prices have the currency symbol AFTER the number, but Symfony insists in placing it before... Is there any way to move it after the number? Thanks! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Accessing user session from a custom routing class

2010-03-16 Thread HiDDeN
Is there some way to acces the user object from a custom routing class? I'd like to add a parameter when generating a url, and that parameter is inside the user session, so I need to access it. The only way I found to access is using the sfContext::getInstance()- getUser(), but it's known to be

[symfony-users] form's i18n and add_empty

2010-03-15 Thread HiDDeN
I have this widget: $this-setWidget('slug', new sfWidgetFormDoctrineChoice(array('model' = 'MyTable', 'method' = 'myMethod', 'key_method' = 'myMethod', 'add_empty' = 'Select option'))); Ok, what should I do to translate the Select option? I can't use the __() helper inside the form, and adding

[symfony-users] Adding a validator to a Doctrine Form

2010-03-04 Thread HiDDeN
I defined validators to my Doctrine model, so it generated automatic validators (such as maxlength, required, etc). Now I would like to add a validator directly in my form, but without losing the ones defined by Doctrine, is this possible? How could I achieve it? Thanks! -- If you want to

[symfony-users] Re: Adding a validator to a Doctrine Form

2010-03-04 Thread HiDDeN
Thanks! On 4 mar, 18:22, Gábor Fási maerl...@gmail.com wrote:   $this-validatorSchema['email'] = new sfValidatorAnd(array(     $this-validatorSchema['email'],     new sfValidatorEmail(),   )); On Thu, Mar 4, 2010 at 17:56, HiDDeN davidmoralesmoj...@gmail.com wrote: I defined validators

[symfony-users] link_to2 and query_string

2010-02-08 Thread HiDDeN
I have this route: category_listing_pag: url: /:slug/:num_products_page/:page.html class: sfDoctrineRoute param: { module: listing, action: category } options: { model: Category, type: object } And I'm trying to display this link: ?php echo link_to('Previous',

[symfony-users] Route making automatic database calls

2010-02-07 Thread HiDDeN
I have this route: product: url: /:slug-:id.html param: { module: info, action: index } options: { model: Product, type: object, segment_separators: ['/', '.', '-'] } And I'm using this link_to inside a foreach (it's a list of products urls): ?php echo link_to($product['title'],

[symfony-users] Re: sfRoute::serialize() must return a string or NULL

2010-02-06 Thread HiDDeN
Solved! This is due to the segment separator. By default, the separators are / and ., so the - has to be added. I just added this to options: segment_separators: [/,.,-] On 5 feb, 18:24, HiDDeN davidmoralesmoj...@gmail.com wrote: I'm having this error when I call this kind of route

[symfony-users] Re: Question about a variable in the URL

2010-02-06 Thread HiDDeN
, HiDDeN davidmoralesmoj...@gmail.com wrote: Adrianrz, look again my question please. The problem I have is in literal:variable3. On Feb 5, 7:20 pm, adrianrz adrianrz2...@hotmail.com wrote: Hi, the .html must be defined on setting.yml as suffix and then the route would be my_route

[symfony-users] [Routing] Question about a variable in the URL

2010-02-05 Thread HiDDeN
Hello, I have a question, is there some way to define a variable in the url part of the routing joined to a literal? An example: my_route: url: /:variable1/:variable2/literal:variable3.html When Symfony reads this, it prints literal:variable3.html as it is. Is there some other way to do it?

[symfony-users] [Routing] sfRoute::serialize() must return a string or NULL

2010-02-05 Thread HiDDeN
I'm having this error when I call this kind of route: my_route: url: /:variable1-:variable2.html param: { module: my_module, action: index } The error: 500 | Internal Server Error | Exception sfRoute::serialize() must return a string or NULL I'm using Symfony 1.4.1 (I have also tried

[symfony-users] Re: Question about a variable in the URL

2010-02-05 Thread HiDDeN
Adrianrz, look again my question please. The problem I have is in literal:variable3. On Feb 5, 7:20 pm, adrianrz adrianrz2...@hotmail.com wrote: Hi, the .html must be defined on setting.yml as suffix and then the route would be my_route:   url: /:variable1/:variable2/literal/:variable3

[symfony-users] Simple routing not woking well

2010-02-01 Thread HiDDeN
Hello. I have defined this homepage route in my routing.yml : homepage: url: / param: { module: home, action: index } I have defined the logo in my site to be pointing to that route this way: a href=?php url_for('@homepage') ?img id=logo src=http:// www.example.com/images/logo.jpg //a

[symfony-users] Re: Simple routing not woking well

2010-02-01 Thread HiDDeN
Ouch! Thanks... On 1 feb, 19:33, Alexandru-Emil Lupu cont...@alecslupu.ro wrote: No echo of the url directive sent via htc magic On Feb 1, 2010 5:40 PM, HiDDeN davidmoralesmoj...@gmail.com wrote: Hello. I have defined this homepage route in my routing.yml : homepage:  url:   /  param

[symfony-users] Re: Development infrastructure

2009-12-22 Thread HiDDeN
What I use is VMware Server. It is free, fast, and runs the VM in the background (it can be configured to start and stop with Windows). By the way, somebody using Netbeans? In project properties, inside the run configuration category, you can specify the index file for the running function. As

[symfony-users] Re: Development infrastructure

2009-12-22 Thread HiDDeN
I think cygwin is the same: Windows, but giving the chance to use unix commands. If you create a new file (touch newfile) it will not be utf-8. Of course everything you create inside Eclipse/Netbeans/whatever in Windows will be UTF-8 (if you configured it properly), but when you execute symfony

[symfony-users] Development infrastructure

2009-12-20 Thread HiDDeN
Hey guys. How is your development infrastructure? I like to develop against a Linux machine. I create my symfony project there and then with Eclipse PDT + Remote System Explorer I edit the files remotely. Now I discovered Netbeans 6.8 with PHP + Symfony support natively, it's smaller and faster,

[symfony-users] Re: Development infrastructure

2009-12-20 Thread HiDDeN
Fási maerl...@gmail.com wrote: Not sure about other distributions/X interfaces, but on ubuntu you can mount a remote filesystem via ssh at Places/Connect to server. Never used it for developing, but the performance should be ok. On Sun, Dec 20, 2009 at 15:57, HiDDeN sombrasdepa...@gmail.com

[symfony-users] Re: Development infrastructure

2009-12-20 Thread HiDDeN
delimiter (win, linux, mac). Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Sun, Dec 20, 2009 at 4:47 PM, HiDDeN sombrasdepa...@gmail.com wrote: I'm using Windows. So I think I should use something like Red

[symfony-users] Jobeet Day 19, Doctrine version. Confusion.

2009-11-05 Thread HiDDeN
Reading the Jobeet Day 19 (Doctrine version), I get to this paragraph: As the category route is tied to the JobeetCategory model class and because the slug is now part of the JobeetCategoryTranslation, the route is not able to retrieve the Category object automatically. That's saying that these

[symfony-users] Re: Jobeet Day 19, Doctrine version. Confusion.

2009-11-05 Thread HiDDeN
Also, he says: Due to a bug in symfony 1.2.1, you need to comment the title in the edit section That's true, if not commented, the backend crashes with this error: Notice: Undefined index: name in /var/www/prueba/lib/vendor/symfony/ lib/generator/sfModelGeneratorConfiguration.class.php on line

[symfony-users] Re: Unknown method JobeetJob::getDateTimeObject

2009-10-30 Thread HiDDeN
Oh never mind, I did not run the upgrade task. Anyway, it is not working with 1.3, as some other errors are coming up. Will Jobeet be tested with 1.3? It would be fantastic if we can download it adapted to that version :) On 29 oct, 23:49, HiDDeN sombrasdepa...@gmail.com wrote: Ok, I have seen

[symfony-users] Unknown method JobeetJob::getDateTimeObject

2009-10-29 Thread HiDDeN
I'm following the Jobeet tutorial, and in the Day 11, just before the Forms Security section, in the last portion of code, there is a line that says $job-getDateTimeObject('expires_at')-format('y/m/d'). When running that code, I get this error: Unknown method JobeetJob::getDateTimeObject Is the

[symfony-users] Re: Unknown method JobeetJob::getDateTimeObject

2009-10-29 Thread HiDDeN
Nope, I'm using the version that comes with Jobeet (it's 1.2.9-DEV). On 29 oct, 22:28, Jonathan Wage jonw...@gmail.com wrote: Are you using Symfony 1.3? - Jon On Thu, Oct 29, 2009 at 5:17 PM, HiDDeN sombrasdepa...@gmail.com wrote: I'm following the Jobeet tutorial, and in the Day 11

[symfony-users] Re: Unknown method JobeetJob::getDateTimeObject

2009-10-29 Thread HiDDeN
, 23:39, HiDDeN sombrasdepa...@gmail.com wrote: Nope, I'm using the version that comes with Jobeet (it's 1.2.9-DEV). On 29 oct, 22:28, Jonathan Wage jonw...@gmail.com wrote: Are you using Symfony 1.3? - Jon On Thu, Oct 29, 2009 at 5:17 PM, HiDDeN sombrasdepa...@gmail.com wrote: I'm

[symfony-users] [sfDoctrineGuardPlugin] Why Remember Me stores info in the database?

2009-10-20 Thread HiDDeN
I have a simple question: why is the remember me feature storing information in the database? It works well because it is storing the user login in a cookie, so I think that the sf_guard_remember_key table is completely unnecessary. It is just storing the user id, some dates, and his IP. If I

[symfony-users] Why Remember Me stores info in the database?

2009-10-20 Thread HiDDeN
I have a simple question: why is the remember me feature storing information in the database? It works well because it is storing the user login in a cookie, so I think that the sf_guard_remember_key table is completely unnecessary. It is just storing the user id, some dates, and his IP. If I

[symfony-users] Re: sfGuard remember me does not quite work

2009-10-20 Thread HiDDeN
But why is the filter storing the IP if it is not using it to authenticate the user? On 11 oct, 11:06, Alexandru-Emil Lupu gang.al...@gmail.com wrote: use just the cookie ... not the ip itsself ... On Fri, Oct 9, 2009 at 5:46 PM, Charles Bernard bernardchar...@gmail.comwrote: Hi

[symfony-users] Why Remember Me stores the IP in the database?

2009-10-19 Thread HiDDeN
I have a simple question: why is the remember me feature storing the user IP in the database? If I logout, change my IP, and login again, it is yet working well, so... why is it storing the IP?? I can't understand it. Any idea? --~--~-~--~~~---~--~~ You received

[symfony-users] Re: Why Remember Me stores the IP in the database?

2009-10-19 Thread HiDDeN
is it saving the IP... On 19 oct, 14:38, Eno symb...@gmail.com wrote: On Mon, 19 Oct 2009, HiDDeN wrote: I have a simple question: why is the remember me feature storing the user IP in the database? If I logout, change my IP, and login again, it is yet working well, so... why is it storing the IP

[symfony-users] sfDoctrineGuardPlugin and shema.yml

2009-10-19 Thread HiDDeN
When I'm working on a project, I usually make modifications directly to the database, and then I run the doctrine:build-schema and doctrine:build-model tasks. Doing this with the sfDoctrineGuardPlugin installed, the sf_guard tables will be replicated from plugin/sfDoctrineGuardPlugin/config/

[symfony-users] Re: Why Remember Me stores the IP in the database?

2009-10-19 Thread HiDDeN
It is the Doctrine version. On 19 oct, 18:37, Andrei Dziahel trickster...@gmail.com wrote: Hi. Well, IP check *should* work. It looks like a bug. Which version? For Propel or Doctrine? 2009/10/19 HiDDeN sombrasdepa...@gmail.com I have tested this: - I logged in marking

[symfony-users] Re: Remove whitespace from the output

2009-06-21 Thread HiDDeN
Yes, but it would remove ALL spaces (including the ones inside the content). So, all the page sentences will be affected too. On 20 jun, 13:00, Bernhard Schussek bschus...@gmail.com wrote: Hi, You could always use a filter that removes the whitespace from the response

[symfony-users] Re: Remove whitespace from the output

2009-06-20 Thread HiDDeN
, 2009 at 3:07 PM, HiDDeN sombrasdepa...@gmail.com wrote: Hello, I have my php files structured with spaces and tabs, but I would like to not show that space to the user. Is there any way to delete all whitespace automatically? Thanks. -- Gareth McCumskeyhttp

[symfony-users] Remove whitespace from the output

2009-06-19 Thread HiDDeN
Hello, I have my php files structured with spaces and tabs, but I would like to not show that space to the user. Is there any way to delete all whitespace automatically? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[symfony-users] Doctrine with persistent connection

2009-05-17 Thread HiDDeN
Hello, Are persistent connections working with the Doctrine plugin? Adding persistent: true to databases.yml would do the trick? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] Forcing routing to be only characters and numbers

2009-05-09 Thread HiDDeN
I'd like to define a route as characters and numbers only. I mean something like this: /section-this-is-the-title-123.htm How would I do this? I know I can define a '.*' requirement, but if I do that, it will be incompatible with some other route beginning with section-. So, how? I tried

[symfony-users] Re: Forcing routing to be only characters and numbers

2009-05-09 Thread HiDDeN
Oops, I don't know what I was thinking about, this is the solution: requirements: { slug: ([0-9a-z-]+) } On May 9, 7:03 pm, HiDDeN sombrasdepa...@gmail.com wrote: I'd like to define a route as characters and numbers only. I mean something like this: /section-this-is-the-title-123.htm

[symfony-users] Unable to connect to the memcache server

2009-05-05 Thread HiDDeN
I'm experiencing a problem with the sfMemcacheCache for the view_cache. Sometimes it seems to have problems connecting to memcache. This is what I find in the Apache log: [Tue May 05 13:18:01 2009] [error] [client 62.57.11.51] Unable to connect to the memcache server (10.12.16.102:1508).,

[symfony-users] Re: Customize created_at field in Propel

2009-05-01 Thread HiDDeN
Maybe it is not possible? On 30 abr, 21:31, HiDDeN sombrasdepa...@gmail.com wrote: How can I customize the name of the created_at field? I mean, I'd like to have a field named, for example, created_date, that has the same behavior as the default created_at. How could accomplish

[symfony-users] Customize created_at field in Propel

2009-04-30 Thread HiDDeN
How can I customize the name of the created_at field? I mean, I'd like to have a field named, for example, created_date, that has the same behavior as the default created_at. How could accomplish that? Thanks! --~--~-~--~~~---~--~~ You received this message

[symfony-users] Package http://plugins.symfony-project.org/get/sfPropelPlugin/sfPropelPlugin -1.3.0.tgz is not valid

2009-04-30 Thread HiDDeN
I'm using Symfony 1.1.7 When I try to install the sfPropelPlugin with this command: php symfony plugin:install sfPropelPlugin I get this error message: Plugin sfPropelPlugin installation failed: Package http:// plugins.symfony-project.org/get/sfPropelPlugin/ sfPropelPlugin-1.3.0.tgz is not

[symfony-users] Re: Package http://plugins.symfony-project.org/get/sfPropelPlugin/sfPropelPlugin -1.3.0.tgz is not valid

2009-04-30 Thread HiDDeN
Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of HiDDeN Sent: 30 April 2009 21:51 To: symfony users Subject: [symfony-users] Package http://plugins.symfony-project.org/get/sfPropelPlugin/sfPropelPlugin -1.3.0.tgz is not valid I'm using

[symfony-users] Re: Updating the session in a cached action

2009-04-27 Thread HiDDeN
... On Fri, Apr 24, 2009 at 6:18 PM, HiDDeN sombrasdepa...@gmail.com wrote: Yes, I know that. I did read the book. But that action makes heavy queries to the database, so, if I just cache the listing of the data I'm getting, I will be executing always those heavy queries

[symfony-users] Re: we are going to convert a site from Propel to Doctrine. What are the pain points?

2009-04-27 Thread HiDDeN
Why are you changing to Doctrine? It is a bit tricky when doing some things. For example, if you want to write a custom SQL, or if you want to write a Full-Text search, or just work with the backend (because the Doctrine pager is slow...) On Apr 25, 9:16 pm, Alexandru-Emil Lupu

[symfony-users] Re: Updating the session in a cached action

2009-04-27 Thread HiDDeN
Ok. But there is another problem: I use memcache as my cache. Will this be a problem? On Apr 27, 11:40 am, Thomas Rabaix thomas.rab...@gmail.com wrote: It should be compatible; there is no much changes in filter/cache between 1.1 and 1.2. On Mon, Apr 27, 2009 at 11:32 AM, HiDDeN

[symfony-users] Re: Updating the session in a cached action

2009-04-27 Thread HiDDeN
the in the module. So, I can create my own filter just for that module. That is what I was searching for. Thanks anyway :) On Apr 27, 11:51 am, HiDDeN sombrasdepa...@gmail.com wrote: Ok. But there is another problem: I use memcache as my cache. Will this be a problem? On Apr 27, 11:40 am, Thomas Rabaix

[symfony-users] How to know if memcache is caching

2009-04-27 Thread HiDDeN
How would I know if memcache is caching? I have configured my cache through memcache (using the sfMemcacheCache class in factories.yml), and in my development server it's noticeable that it's caching (because it's fast), but in my production server is not as fast, it seems to be processing the

[symfony-users] Updating the session in a cached action

2009-04-24 Thread HiDDeN
Hello. I have a little problem in Symfony. The short question is: how could I update the user session inside a cached action? And the long question is: I have an action that is cached. Inside this action I have a portion of code that updates the user session. The solution I have found is

[symfony-users] sfDoctrineBaseTask

2009-04-24 Thread HiDDeN
Have you tried to create a task extending from sfDoctrineBaseTask? I have made it, and in order to access my database, I typed this line at the beginning of the execute method: $databaseManager = new sfDatabaseManager($this-configuration); So, when calling the task I got this error:

[symfony-users] Re: sfDoctrineBaseTask

2009-04-24 Thread HiDDeN
Because if I use that call, then I just don't need to extend from sfDoctrineBaseTask, just sfBaseTask. So, what's the point using sfDoctrineBaseTask ? On Apr 24, 5:05 pm, Eno symb...@gmail.com wrote: On Fri, 24 Apr 2009, HiDDeN wrote: Why isn't it working? (I want to avoid

[symfony-users] Re: Updating the session in a cached action

2009-04-24 Thread HiDDeN
: On Fri, 24 Apr 2009, HiDDeN wrote: Eno, what you are recommending is to cache parts of the template. I need to cache the action as well. But you need the action to run as well. You can't have it both ways - either you run the action or you dont. The only way you can get the action to run

[symfony-users] Re: Updating the session in a cached action

2009-04-24 Thread HiDDeN
create a executeView_UserContext action. This method will be always called. So you can perform user specific code in that action. http://trac.symfony-project.org/browser/plugins/swToolboxPlugin/sf1.2... On Fri, Apr 24, 2009 at 6:18 PM, HiDDeN sombrasdepa...@gmail.com wrote: Yes, I know