[symfony-users] Re: Re : Re: Doctrine2 cache with Symfony2

2011-05-05 Thread Marc MacLeod
@roger The ArrayCache will not store data from one request to another request. It should, however, store data for a single request. Two identical SQL requests that are cached should result in 1 query with ArrayCache on. @winzou FOS/Userbundle is not symfony - it's an independently maintained symfo

[symfony-users] Re: Symfony2 ACL Performance Question

2011-05-03 Thread Marc MacLeod
l having a hard time wrapping my head around getting good performance out of the ACL system. I have not looked at the Tims work on the comment bundle yet - will do that soon. Marc On May 2, 9:41 am, Gediminas Morkevicius wrote: > I think when user logs in, his ACL tree should be stored in his se

[symfony-users] Re: Symfony2 ACL Performance Question

2011-04-15 Thread Marc MacLeod
Btw I plan to use the comment bundle in one of my projects in the next month so looking forward to what you come up with. Regards, Marc On Apr 14, 6:19 pm, Tim Nagel wrote: > I'm working on editing and deletion functionality for CommentBundle at the > moment. I expect to have something

[symfony-users] Symfony2 ACL Performance Question

2011-04-14 Thread Marc MacLeod
can edit or delete a post. I feel like this is a typical use case, any guidance would be much appreciated. Thanks, Marc -- 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 Goo

[symfony-users] Re: ajax in symfony 2

2011-04-14 Thread Marc MacLeod
In your controller: public function fooAction() { // Is this an ajax request? if ($this->container->get('request')->isXmlHttpRequest()) { // do stuff and return ajax content } // return normal response } On Apr 13, 5:16 am, symfonyM

[symfony-users] How to: Enable parsing of JSON responses for ESI tags / inclusion?

2011-03-28 Thread Marc MacLeod
Right now I believe only html and xml responses are parsed for ESI tags: In the Esi class: public function __construct(array $contentTypes = array('text/html', 'text/xml', 'application/xml')) { $this->contentTypes = $contentTypes; } Why not JSON? Since JSON is automatically escaped I assume w

[symfony-users] Re: AJAX and ESI problems

2011-03-26 Thread Marc MacLeod
Can anyone shed some light on this? It's quite a problem for anyone that wants to build an ajax application and use the Symfony2 caching system (ESI). If it can't be done I need to re-assess how I build this Symfony2 app. Thanks On Mar 25, 8:04 pm, Marc MacLeod wrote: > Hi Guys, &

[symfony-users] AJAX and ESI problems

2011-03-25 Thread Marc MacLeod
e load, but do not work when I try to use the method above to return parts of the page via JSON. It simply returns the json structure with the tags without replacing the ESI tags with their actual content. Any thoughts on how to fix this or the best way to go about doing this? If anyone needs any cl

[symfony-users] How to build an ESI caching strategy and minimize ACL database queries with Symfony 2.

2011-03-24 Thread Marc MacLeod
Hi All, I'm working on performance and have a few questions: 1. What is the best way to build caching into an application with ESI? For instance, imagine a page with a feed of news stories like Reddit. I think one would want to include each news story item in the feed as an ESI in order to cache

[symfony-users] How to debug 'LogicException' with Circular Reference?

2011-03-17 Thread Marc MacLeod
te sure how to do this and avoid the circular reference error described above? I'm probably missing something here, and would appreciate any help. Thanks! Marc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

Re: [symfony-users] Re: Production environment

2011-03-15 Thread Marc A. Torres Baix
Hi Federico, just put: error_reporting(E_ALL); init_set('display_errors','on'); on top of app.php When you find what's not working, just drop those lines again. Luck, Marc. On Mon, Mar 14, 2011 at 6:44 PM, Federico Bernardin < federico.bernar...@gmail.com> wro

[symfony-users] [Symfony2] How to use the remember_me option in user authentication

2011-03-03 Thread Marc Cerrato
: /member, role: IS_AUTHENTICATED_FULLY } - { path: /user/edit.*, role: IS_AUTHENTICATED_FULLY } - { path: /.*, role: IS_AUTHENTICATED_ANONYMOUSLY } --- Why isn't it working properly? Any kind of help will be appreciated! Regards, Marc Cerrato -- If you want to re

[symfony-users] individual User layouts?

2010-09-17 Thread marc
tyle. So i wonder how i could get this in symfony. The system has to be able to change the layout and the module templates by user authentication and the different Styles should be easy to maintain. Just some ideas would be great. Thank you, Marc Eilhard -- If you want to report a vulnerabilit

Re: [symfony-users] memory error and question about data loading (newbie)

2010-08-27 Thread Marc Van Craesbeeck
2010/8/27 Gustavo Adrian > You need to extend your memory_limit for PHP. Check your php.ini (for CLI) > and put 128MB as memory_limit (or something like that). > It was it. the doctrine:data-dump is now correct. Thanks. -- Marc Van Craesbeeck http://www.amnestygr33.be -- If yo

[symfony-users] Re: Symfony 2 : Ready for new projects?

2010-05-19 Thread Jean-Marc Fontaine
Thanks for your answer Michal! I have been told similar things so we are going to use Symfony 1.4 but the choice between Doctrine 1 and 2 is not made yet. We have got some questions to be answered before we could make a decision. Regards, Jean-Marc -- If you want to report a vulnerability

[symfony-users] Symfony 2 : Ready for new projects?

2010-05-18 Thread Jean-Marc Fontaine
used Symfony nor Doctrine, is it worth making them learn how to use Symfony 1 and Doctrine 1 when we know many things will change with the next major versions? What do you think about that? Regards, Jean-Marc -- If you want to report a vulnerability issue on symfony, please send it to security

[symfony-users] Redirecting urls with final /

2010-04-20 Thread Marc Dos Santos
www.test.com/cat1/ to the correct ones, www.test.com/cat1/product or www.test.com/cat1 ? If not, i will have to make it via .htaccess . Any clue on how to do that ? Thanks in advance Marc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

Re: [symfony-users] Override some sfConfig params

2010-03-17 Thread Marc Weistroff
book) Happy hacking On Wed, Mar 17, 2010 at 10:30 AM, Marc Weistroff wrote: > If you look at the code of sfConfig > (http://trac.symfony-project.org/browser/branches/1.4/lib/config/sfConfig.class.php), > there is no way to save the changed value to the yaml or elsewhere. > > Als

Re: [symfony-users] Override some sfConfig params

2010-03-17 Thread Marc Weistroff
If you look at the code of sfConfig (http://trac.symfony-project.org/browser/branches/1.4/lib/config/sfConfig.class.php), there is no way to save the changed value to the yaml or elsewhere. Also, if you change the app.yml config file in the prod env, you might have to clear the cache each time you

Re: [symfony-users] Unescaping HTML content

2010-03-11 Thread Marc Weistroff
It's because objects and variable are escaped before being passed to the view. Are you echoing your content inside a slot (or partial?) that might be automatically or manually escaped after that? On Thu, Mar 11, 2010 at 4:52 PM, Romain Pouclet wrote: > It does not change anything, I really don

[symfony-users] Re: Tweaking generated routes with the admin generator

2009-08-26 Thread Marc
I just checked in other projects and I figured that I override the generated route with a custom one... It's a bit messy but it works. I got it to work in frontend using "normal" modules. Hope it works with generated admin modules. -- board: class: sfDoctrineRouteCollection

[symfony-users] Re: Tweaking generated routes with the admin generator

2009-08-26 Thread Marc
I already gave a small answer on twitter but I repost here... If I correctly understand the problem you have: You can add custom parameters (ex: myParameter) to routes as long as there is a method in your model named (in this case) getMyParameter(). Please tell me if it does fix your problem :

[symfony-users] Re: Memory leaks symfony + doctrine

2009-08-07 Thread Marc
It's a common problem with PHP < 5.3. Try to switch with 5.3 and it might magically solve your issues. Marc Le 7 août 09 à 10:43, Ken Golovin a écrit : > > Thomas, > > I know very well how to parse XML and load it into the DB > > However for this import I need a

[symfony-users] Re: Symfony Deployment

2009-07-28 Thread Marc
Hello, It seems that you have a conflict with your apache configuration & your .htaccess file! Maybe mod_rewrite isn't enable on your production server... Have fun ;) Marc Le 28 juil. 09 à 10:49, Gre Taguran a écrit : > Hi Guys, > > We're trying to deploy our projec

[symfony-users] sfGuard + LDAP

2009-04-28 Thread Marc
Hi! I am trying to implement an authentication in my Symfony project over a domain controller. I found a library called 'adLDAP' and I can authenticate on the domain controller using a php script, but I can not integrate it into my project with sfGuardPlugin. I set the settings.yml file: all:

[symfony-users] Re: Translate validators defaults errors messages

2009-02-05 Thread Marc Torres
You should take care of Martio's advice, but be more carefully writing your dictionary file: Required Requis ^^^ it's not targer, it's target :-D (I guess you've it correct in your file and it's a typo on this message but, take care of it!) Good luck, M

[symfony-users] Problem with affiliate-backend (jobeet day 16)

2009-01-20 Thread Marc van Leyen
Hello people, I have a problem with the jobeet tutorial - day 16. I generated the backend for the affiliate as described. Everything seems to work. But I have one problem: for the different affiliate which I want to activiate I only see two actions "edit" and "delete" and not "activate" and

[symfony-users] Re: Problems with Regex Validator

2008-11-29 Thread Marc Logghe
new sfValidatorRegex(array('pattern' => '/^[A-Za-z]+$/')) HTH, Marc On Sat, Nov 29, 2008 at 4:47 PM, Samir van de Sand <[EMAIL PROTECTED] > wrote: > I tried to modify the validator according the regexp you posted, but it > still doesn't work no

[symfony-users] Re: Problems with Regex Validator

2008-11-29 Thread Marc Logghe
. Try something like '^[A-Za-z]+$' Remark that this pattern will not match first name containing spaces nor dashes, so it won't match 'Jean-Claude' or 'Jean Claude'. Cheers, Marc On Sat, Nov 29, 2008 at 3:34 PM, Samir van de Sand <[EMAIL PROTECTED] > w

[symfony-users] propel:data-load DateTime issue

2008-11-16 Thread Marc Logghe
b/model/om/BaseBlogPost.php on line 279 Is that a bug or am I doing something wrong ? I find it strange that no complains whatsoever happen about DateTime when date are entered via the CRUD interface. DateTime seens to be found. But not anymore using the

[symfony-users] Extending sfActions

2008-06-11 Thread Marc Torres
/forum/index.php/m/47197/?srch=sfActions#msg_47197 - http://www.symfony-project.org/forum/index.php/m/46322/?srch=sfActions#msg_46322 Any clues? Marc. -- "I'm unique, just like everyone else". Read it out there --~--~-~--~~~---~--~~ You received t

[symfony-users] Re: Using an other theme

2007-11-29 Thread Marc Torres
, not the symfony installation one. So you've to create a ´generator/sfPropelAdmin/theme_name]/template/´ tree directory under your 'data' project directory. I guess this is for not delete your theme when updating symfony installation. Cheers, Marc. -- "I'm unique, j

[symfony-users] Re: Askeet source?

2007-11-25 Thread Marc Torres
tible to symfony 1.0 !? > For example there is no apps dir in the project.. > > Regards, > Matthias There's a trac site for askeet: http://trac.askeet.com/browser/trunk, I guess you could do a svn co from there. Cheers, Marc. > > -- "I'm unique, just like ev

[symfony-users] display date field in sfDatagrid

2007-11-14 Thread Marc
st way ? I think it will be done with something like "content_getter" parameter but without partial.. i hav no idea how ..? Thanks, Marc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users&q

[symfony-users] Re: Propel doSelectJoin*() not actually doing joins?!

2007-09-28 Thread Marc Torres
inBar method? Anyway, I agree with Dan, the default join is a inner join, so it's normal that the Foo objects that don't have any Bar_ID set, are descarted. If you want them, you've to do a LEFT JOIN explicitly. Moreover, this is not a directly related symfony question, it's

[symfony-users] Re: symfony 404 & trailing slashes

2007-08-21 Thread Marc Torres
Try adding this rule to your .htacces: RewriteRule ^(.+)/$ $1 Cheers, Marc. 2007/8/21, Mat <[EMAIL PROTECTED]>: > > Hey we are currently running a new symfony website and having just > checked the logs, I noted that a fair few people are now linking to the site > with

[symfony-users] Re: set culture

2007-08-16 Thread Marc Torres
I think you should set to on the i18n in settings.yml: all: .settings: i18n: on Cheers, Marc. 2007/8/15, Marco Catunda <[EMAIL PROTECTED]>: > > > Hi, > > In i18n file config I set default culture like this: > > all: > default_

[symfony-users] Re: Insert done 5 time by model

2007-08-09 Thread Marc Torres
2007/8/9, Tchinkatchuk <[EMAIL PROTECTED]>: > > > Yes, I thought it was that too because of the 5 time but I took a look > and no forward are done to this action in any code. > Thanks for your suggestion. I will take a look again this morning. You should clear the log file, and then execute the

[symfony-users] Re: [Doubts] Input Date Tag

2007-08-05 Thread Marc Torres
g/i18n.yml add: all: default_culture: es_ES < well, use yours ;-D then you should see the dates in the correct format. Actually you've to restart the user session (simply restart your web browser) For more information abou i18n, you know, read the book's chapter. Cheers,

[symfony-users] Re: [Doubts] Input Date Tag

2007-08-04 Thread Marc Torres
I solve this using i18n and setting my default culture correctyl (it seems symfony don't accept ca_ES which is perfectly valid, so I've to use es_ES) 2007/8/2, Jonathan Moreira Cardozo < [EMAIL PROTECTED]>: > > > Guys, > > Hello, i'm having a problem with a input data tag at my admin, i set > in g

[symfony-users] Re: Error in Symfony 1.0.6? [SOLVED]

2007-08-01 Thread Marc Torres
2007/8/1, Alexander Deruwe <[EMAIL PROTECTED]>: > > > On 01 Aug 2007, at 16:57, Marc Torres wrote: > > I've just installed symfony from pear, and it installs version > > 1.0.6, but when I run the symfony command I get: > > > > Parse error: parse

[symfony-users] Error in Symfony 1.0.6?

2007-08-01 Thread Marc Torres
Hello all, I've just installed symfony from pear, and it installs version 1.0.6, but when I run the symfony command I get: Parse error: parse error in /Applications/xampp/xamppfiles/bin/symfony on line 34 is it something break? Anyone out there has tried the 1.0.6 version? Cheers -- "Beware o

[symfony-users] Re: Handling Foreign Key Constraints in the applcation

2007-08-01 Thread Marc Torres
Wouldn't be better to make use of validators [1]? This way you can assure that all foreign key constrains are fulfilled [1] http://www.symfony-project.com/book/trunk/10-Forms#Form%20Validation Cheers, Marc 2007/8/1, Michael Smith <[EMAIL PROTECTED]>: > > > You have to

[symfony-users] Re: setting user culture at login

2007-07-17 Thread Marc Torres
orm, under Win, tools -> preferences, under Linux Edit -> preferences, under MacOS, Firefox -> preferences), then open the advanced options, under general tab, click on the Choose... button (on the bottom right). Then add all your languages, and restart firefox. This firefox options are

[symfony-users] Admin generator question

2007-07-11 Thread Marc Torres
Hi, Maybe this is a simple question, but here it goes. I'm trying to view the primary key in the edit mode and I'm doing (in generator.yml): display: [num, titular_id, poblacio] but when I try to create a new entry, the num field (primary key) isn't there. I read the chapter 14 of the book (

[symfony-users] Re: Symfony development on a Mac

2007-07-10 Thread Marc Torres
2007/7/9, Steve Lianoglou <[EMAIL PROTECTED]>: > > > Hi Marc, > > Although I don't think it'll cause a huge problem (since I doubt any > part of the system really uses php), in general I'd say it's a bad > idea to change anything in /usr/bin -- the

[symfony-users] Re: Symfony development on a Mac

2007-07-09 Thread Marc Torres
t (c) 1998-2007 Zend Technologies $ Now symfony is 100% working on my box. Thanks! Marc. -- "Beware of bugs in the above code; I have only proved it correct, not tried it." Donald Knuth --~--~-~--~~~---~--~~ You received this message because you are subscr

[symfony-users] Symfony development on a Mac

2007-07-09 Thread Marc Torres
Hello all, I used to work with symfony under a linux box without any problem. Now I've bought a mac and I get Apache+php+mysql running with XAMPP, and I could install symfony with pear without problems (well, more or less without any problem ;-D). I've tried a simple "hello world" with a previuos

[symfony-users] Path problems running symfony as CGI

2007-07-05 Thread TecLliure - Marc Montañés
I'm trying to run a symfony project in a shared host that has php4 and php5 support (php5 as cgi). It runs perfectly in my house using apache php5-module. The symfony aplication is this local directory: /users/pangea/marc/alt-ong and the web /users/pangea/marc/alt-ong/web And URL'

[symfony-users] Re: Validators

2007-03-14 Thread Marc Torres
I think there are no more options for this validator in particular: * From: [1] # sfNumberValidator: sfNumberValidator verifies a parameter is a number and allows you to apply size constraints. From: [2] Number Validator sfNumberValidator verifies if a parameter is a number and allows

[symfony-users] Re: Re : [symfony-users] Re: Problem with yaml and arrays

2007-03-13 Thread TecLliure - Marc Montañés
trange thing is that it reads the array but put variables in strange format: one variable (app_langs_0, app_langs_1, app_langs_2) for each array element instead of putting all inside an array. Thanks for all. > - Message d'origine > De : TecLliure - Marc Monta��s <[EMAIL

[symfony-users] Re: Problem with yaml and arrays

2007-03-13 Thread TecLliure - Marc Montañés
ar. Ahora debes construir los cimientos debajo de él." - George Bernard Shaw, escritor irlandés Marc Montañés * mail/jabber: [EMAIL PROTECTED] * telf: 653182738 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

[symfony-users] Problem with yaml and arrays

2007-03-13 Thread TecLliure - Marc Montañés
es allí donde debería estar. Ahora debes construir los cimientos debajo de él." - George Bernard Shaw, escritor irlandés Marc Montañés * mail/jabber: [EMAIL PROTECTED] * telf: 653182738 --~--~-~--~~~---~--~~ You received this message because you are sub