Re: [symfony-users] Re: Too many redirects error on symfony.

2010-06-16 Thread Bruno Reis
yes... it happens on a non logged page. 2010/6/16 pghoratiu : > It may be related to user sessions timing out and the framework doing > an internal forward to the login page, > did you consider that option? > >   gabriel > > > On Jun 16, 6:50 pm, Bruno Reis wrote: >

Re: [symfony-users] Re: Too many redirects error on symfony.

2010-06-16 Thread Bruno Reis
; } > elseif($secureRequest && ImNotOnHTTPS) { >  redirect to https > } > > On 14 čvn, 17:56, Bruno Reis wrote: >> Hi, >> >> I´m using a filter with the following code to change from http to https and >> back from https to http. Sometimes when l

[symfony-users] Re: Too many redirects error on symfony.

2010-06-16 Thread Bruno Reis
any hints? 2010/6/14 Bruno Reis : > Hi, > > I´m using a filter with the following code to change from http to https and > back from https to http. Sometimes when leaving from a https page, the > browser gives a "too many redirects" error. I cannot reproduce the error &

[symfony-users] Too many redirects error on symfony.

2010-06-14 Thread Bruno Reis
Hi, I´m using a filter with the following code to change from http to https and back from https to http. Sometimes when leaving from a https page, the browser gives a "too many redirects" error. I cannot reproduce the error easily. It´s not all the time that it happens. Normaly it still happening

[symfony-users] How to show an object_action based on a specific condition (admin generator)?

2010-06-13 Thread Bruno Reis
Hi, Is there a way to specify a specific condition required to show one "object_action" in a list? I want to show the action link only if a field on my record is true. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

[symfony-users] Routing cache and memory usage

2010-03-17 Thread Bruno Reis
Hi all, we´ve experienced a hard time here using the routing cache because we have a lot of "sluggified" items. The httpd child processes were consuming almost 100m of memory. We found that it was due to a 20m routing cache file. Is there a way to keep using the routing cache, but to exclude some

[symfony-users] Memory usage...

2010-03-10 Thread Bruno Reis
Hi all... how much memory a normal sf + doctrine thread uses? We are having serious problems here with an application. I seems like it´s leaking memory, we updated php to 5.3 but had no success at all. Apache threads start with 16 MB and soon get to 50MB. Does anyone know what might be happening?

Re: [symfony-users] Re: Error on Exception Handling using Event Notifications

2010-02-26 Thread Bruno Reis
I found some threads saying it´s related to a bug on a windows component. Since we only use windows on dev environments, I´ve tested on other envs and it worked. So it´s ok now. Thanks. 2010/2/26 Tom Ptacnik > Try to show us the exception.. > > > On 24 ún, 17:59, Bruno Reis

Re: [symfony-users] Re: Does 1.4 or any plugin allow to configure Javascript (view.yml) by environment ?

2010-02-26 Thread Bruno Reis
hecks for sf_debug config > variable (that's even better than rely on environments) > > cheers > Massimiliano > > On 26 Feb, 00:43, Bruno Reis wrote: > > Hi all, > > > > We are working here to deploy a new site done with symfony. We still > working > >

[symfony-users] Does 1.4 or any plugin allow to configure Javascript (view.yml) by environment ?

2010-02-25 Thread Bruno Reis
Hi all, We are working here to deploy a new site done with symfony. We still working with 1.2, but plan to upgrade soon. One thing that is being hard to do here is to config different javascripts for production ( to use a minified one ). Does 1.4 or any plugin allow this to be done in a clean and

[symfony-users] Re: Error on Exception Handling using Event Notifications

2010-02-24 Thread Bruno Reis
I figured out it has nothing to do with the event handler. I´s happening on every page. On my "error_404_action", I redirect to the homepage and it shows the uncaught exception message. Anybody knows why? 2010/2/24 Bruno Reis > Hi, > > I´m connecting the "application.t

[symfony-users] Error on Exception Handling using Event Notifications

2010-02-24 Thread Bruno Reis
Hi, I´m connecting the "application.throw_exception" event to my exception handler class. public function configure() { $this->dispatcher->connect( 'application.throw_exception', array('MyExceptionHandler', 'listenToApplicationException') ); } On the e

Re: [symfony-users] Symfony 2 - "Extremly Configurable"

2010-02-19 Thread Bruno Reis
Yes, That feeling of "knowing where things are" is also one of the reasons I´ve choosen symfony for my team. 2010/2/19 michael.pie...@googlemail.com > Very very very impressive Symfony 2 ... ! > > I watched parts of the conference (thanks to Ben Haines), i read the > blogs, i watched the slid

Re: [symfony-users] Re: Identify the module in the referer URL.

2010-01-20 Thread Bruno Reis
st filter checking the > request object to see what the module is that was called. > > > http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_filters > > On Wed, Jan 20, 2010 at 2:13 PM, Bruno Reis > wrote: > > Thanks, but how can I use i

Re: [symfony-users] Re: Identify the module in the referer URL.

2010-01-20 Thread Bruno Reis
the module name from an URL? * 2010/1/20 Stéphane > sfRouting::parse() > http://www.symfony-project.org/api/1_4/sfRouting > > Before Printing, Think about Your Environmental Responsibility! > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > > On We

[symfony-users] Re: Identify the module in the referer URL.

2010-01-20 Thread Bruno Reis
Any ideas on this? 2010/1/15 Bruno Reis > Hi, > > I have a referer url and I want to identify what is the module from that > url. So I will need to parse this url the same way symfony does it on it´s > routing or front controller. How can I parse a string containing a URL to >

[symfony-users] Identify the module in the referer URL.

2010-01-15 Thread Bruno Reis
Hi, I have a referer url and I want to identify what is the module from that url. So I will need to parse this url the same way symfony does it on it´s routing or front controller. How can I parse a string containing a URL to know what is the module in it considering the actual defined routing con

[symfony-users] How to disable sfBrowser output to use tests with phpUnit?

2009-11-09 Thread Bruno Reis
I´m using phpunit with symfony. For functional tests, we set up a "bootstrap" to use the sfBrowser. It is working fine, but I need to use only the output from phpdoc. How is that possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[symfony-users] Re: environment specific service configuration for dependency injection

2009-10-05 Thread Bruno Reis
tion > > > On Mon, Oct 5, 2009 at 6:04 PM, Bruno Reis wrote: >> >> I´m looking at the symfony DI containers. I see I can import some >> definitions from another xml or yml. >> >> Is there a way import definitions based on actual environment? >> >&

[symfony-users] environment specific service configuration for dependency injection

2009-10-05 Thread Bruno Reis
I´m looking at the symfony DI containers. I see I can import some definitions from another xml or yml. Is there a way import definitions based on actual environment? I need to have some specific configurations for my services that "extends" some general configuration. I want do define general co

[symfony-users] Re: Separating Presentation from Symfony

2009-09-28 Thread Bruno Reis
Sorry, but it is hard to understand what you need without asking... Why to use symfony only to manage API calls? Symfony strength, IMO, is the controller / context / configuration layer. And there is also the view layer. But there is no standard Facade or Service layer and the DB is managed by doc

[symfony-users] Re: Call For Information Re-organization [opinions needed]

2009-09-28 Thread Bruno Reis
For me, there is one major reason for the popularity and spread of the php in the word: comments on the manual pages! Nobody can make a documentation as good as the whole comunity can make together. There is allways a different point of view, way of teaching and learning a specific subject. Thats t

[symfony-users] Open source and "private funding". What are the benefits to a company to sponsor an open source lib?

2009-08-14 Thread Bruno Reis
know the experience from other companies about the benefits they are getting from this. Can anyone here help me on this? Thanks, Bruno Reis Project Manager Gradua Networks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[symfony-users] Re: Best way to learn Symfony

2009-08-12 Thread Bruno Reis
++ to James advice I´ve only learned design patterns on demand. I´ve read all the book and did not understand anything before, but when I need a pattern and find it there, then I learn it. 2009/8/12 James Cauwelier > > The 'Gang of Four' book seems as overkill to me. First play with > symfony

[symfony-users] Re: How do I get a module path?

2009-07-31 Thread Bruno Reis
Hi all, Is there a way to retrieve a module "absolute path" or "real path" using symfony api? I need to get the path to template files too. Is there a way to do it passing only action and template/partial name? 2009/7/29 Bruno Reis > Hi all, > > how do I get a molu

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-31 Thread Bruno Reis
vide "default > values". Of course the user needs to overwrite some of those in the > app.yml of the respective app that uses the plugin. That's how most of > the other plugins do it. > > Daniel > > > On Jul 30, 11:07 am, Bruno Reis wrote: > > Thanks Da

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-30 Thread Bruno Reis
on the plugin´s config.php file. And that is it! it will work with any json_services.yml defined. Very nice. 2009/7/30 Bruno Reis > Thanks Daniel, > > but, if I do that, the config will be packed with the plugin, commited to > svn, etc.. I need application specific code in a way I do no

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-30 Thread Bruno Reis
-Files. If I have success I will post it here. 2009/7/30 Richtermeister > > Hey Bruno, > > just include a /yourplugin/config/app.yml file that contains your > settings. > This file will be included in the configuration automatically. > > Daniel > > > On Jul 30, 10:16

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-30 Thread Bruno Reis
Thanks Eno, but that does not shows what I am looking for. It explains the configurations and yaml reading process, but I need to register a custom handler to use in a plugin. 2009/7/30 Eno > > On Thu, 30 Jul 2009, Bruno Reis wrote: > > > I have a plugin that needs to be configur

[symfony-users] How do I create a plugin specific configuration file?

2009-07-30 Thread Bruno Reis
Hi, I have a plugin that needs to be configurated with a yml config file. How do I register this configuration file so that I can read the values with sfConfig::get? And what is the appropriate place to put this file? config/pluginName ? Is there a way to auto-generate this file on plugin instalat

[symfony-users] How do I get a module path?

2009-07-29 Thread Bruno Reis
Hi all, how do I get a molude path using symfony classes? I have only the module name and it can be a plugin module. Today I loop trought all the plugins, but I believe sf has a better way to do that: $pc = sfProjectConfiguration::getActive(); $paths = $pc->getPluginPaths(); $bas

[symfony-users] Re: How to return response slots content as JSON data ?

2009-07-29 Thread Bruno Reis
Łukasz, I use ajax on an "inverse logic" where the php tells the js what to do on each response, using a type of RPC or RMI. When I call PHP I have a class that forges a response like: {"commands":[ {"controller":"auth", "action":"displayMainMenu" , "params":{ "menuItems":[{"href":"j

[symfony-users] How do I get the instance of the sfWebDebug on a filter?

2009-07-20 Thread Bruno Reis
Hi all, I want to get some info from the debugger on a filter. How do I get it on a filter? Thanks, Bruno --~--~-~--~~~---~--~~ 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] module assets?

2009-07-20 Thread Bruno Reis
Hi, I´m learning to use sf 1.2 and I like the new features. One nice thing to keep things organized is the plugin publish assets capability. Is there a similar feature to modules, so that we can keep the css and js related to a specific module on it´s folder? Thanks Bruno --~--~-~--~---

[symfony-users] Plugin to visual security configurations.

2009-07-17 Thread Bruno Reis
Hi all, Is there a plugin that shows all actions and security settings and allow a visual configuration of these settings? Thanks, Bruno --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To pos

[symfony-users] Re: How to include a js tag from a plugin on the main layout?

2009-07-16 Thread Bruno Reis
Thanks Eno, thats a good approach, but my layout should have the placeholder and so I have to alter the layout. I was thinking about something using the of tags... 2009/7/16 Eno : > > On Thu, 16 Jul 2009, Bruno Reis wrote: > >> Is there a way to include a specific js in the m

[symfony-users] Is there a way to define factories and filters from plugins?

2009-07-16 Thread Bruno Reis
Hi, Is there a way to define factories and filters from plugins? --~--~-~--~~~---~--~~ 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 unsubscr

[symfony-users] How to include a js tag from a plugin on the main layout?

2009-07-16 Thread Bruno Reis
Hi there, Is there a way to include a specific js in the main layout from inside a template. I want to do this without touching the layout to keep my plugin with "low coupling" Thanks, Bruno --~--~-~--~~~---~--~~ You received this message because you are subscrib

[symfony-users] Re: How to link to a js plugin using view.yml?

2009-07-16 Thread Bruno Reis
I got it working with: "../riaPlugin/js/ria.js", is this the right way to do it? 2009/7/16 Bruno Reis : > Hi, > > I have a plugin called riaPlugin. This plugin creates the > web/riaPlugin/js dir when I use the publish-assets task. How do I > configure my view.yml

[symfony-users] How to link to a js plugin using view.yml?

2009-07-16 Thread Bruno Reis
Hi, I have a plugin called riaPlugin. This plugin creates the web/riaPlugin/js dir when I use the publish-assets task. How do I configure my view.yml to acces this dir that is outside web/js ? --~--~-~--~~~---~--~~ You received this message because you are subscri

[symfony-users] 1.2 plugins

2009-07-02 Thread Bruno Reis
Hi all I´ve installed symfony 1.2.7 (sandbox) to test on my machine. When I run "symfony plugin-list", it only lists symfony 1.2.7-stable # pear.symfony-project.com (symfony) ... althought I have some plugins installed and even was able to make a ... sym

[symfony-users] Re: Where is the trunk of the sfDoctrine?

2009-07-02 Thread Bruno Reis
That was fast! Thks Jonathan. I had looked only on the project plugin, now I see there is a plugin folder on symfony dir either. Very nice! 2009/7/2 Jonathan H. Wage : > > The plugin comes with sf 1.2. > > Sent from my iPhone > > On Jul 2, 2009, at 7:03 AM, Bruno Reis wrote:

[symfony-users] Where is the trunk of the sfDoctrine?

2009-07-02 Thread Bruno Reis
I can only find "tags" and "branches" on http://svn.symfony-project.com/plugins/sfDoctrinePlugin/ no trunk. We plan to migrate sf to 1.1, since it will be soon be discontinued. What doctrine plugin version should we use with sf 1.2 ? --~--~-~--~~~---~--~~ You rec

[symfony-users] Re: what is wrong with this bug?

2008-11-17 Thread Bruno Reis
t; sensiolabs.com | symfony-project.com | aide-de-camp.org > Tél: +33 1 40 99 80 80 > > > Bruno Reis wrote: >> Hi there, >> >> I´m facing a critical issue with the forms framework for some time >> now. I have asked here more than once, but could get a good answer. At >

[symfony-users] what is wrong with this bug?

2008-11-17 Thread Bruno Reis
Hi there, I´m facing a critical issue with the forms framework for some time now. I have asked here more than once, but could get a good answer. At least I could not understand if it is not a bug or what. Then, I opened a bug: http://trac.symfony-project.org/ticket/4916#comment:1 but it was mar

[symfony-users] Re: Decimal separator not working on custom widget when form does not validate.

2008-10-13 Thread Bruno Reis
# return $this->renderTag('input', array_merge(array('type' => $this->getOption('type'), 'name' => $name, 'value' => $value), $attributes)); } 2008/10/13 Bruno Reis <[EMAIL PROTECTED]>: > Hi there, >

[symfony-users] Decimal separator not working on custom widget when form does not validate.

2008-10-13 Thread Bruno Reis
Hi there, I made the following class to render my decimal numbers with commas instead of dots. But if the form does not validate, then the render function is called with the user entered value. So the first time, for instance, its called with 14.54(dot) to show the form. It is shown as 14,54(comm

[symfony-users] Using forms in a list

2008-10-09 Thread Bruno Reis
Hi there, Does anyone has examples on how to create a list of (sf1.1) forms (iterate throught a collection and fill several forms) ? thks, Bruno --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group

[symfony-users] Re: structure advices

2008-09-24 Thread Bruno Reis
one module per section 2008/9/23 julien Bessiere <[EMAIL PROTECTED]>: > Hi, > I'm new to symfony and I wonder how I should structure the website I'm > working on. > I plan to have to apps: frontend and backend. > But within this apps, should I create one module per section (i.e. home, > publicati

[symfony-users] Re: is the 1.1 form framework missing conversion from data to view?

2008-09-08 Thread Bruno Reis
with the values, all things are messy. > > So, we back to Validators and Forms, that has to do the right thing > and I believe they are the right "layer" for doing this. > > []'s > > Rafael > > On 28 jul, 11:19, "Bruno Reis" <[EMAIL PROTECTED]>

[symfony-users] JS - Ajax Helper - Update a Select Tag

2008-05-20 Thread Bruno Reis
Hi, is there in symfony an ajax helper to update the values of a select tag? Bruno --~--~-~--~~~---~--~~ 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@googlegro

[symfony-users] Re: fillin:true through code

2008-05-20 Thread Bruno Reis
Sometimes I get weird errors on fillin when I use non xhtml code. In this cases my html code gets changed without my permission. There was a situation where the kept changing place and then some parameters were not sent. 2008/5/20 Sumedh <[EMAIL PROTECTED]>: > > Can we set fillin as true through

[symfony-users] Reports

2008-05-09 Thread Bruno Reis
Hi all, What are you using to integrate reports generation with symfony? Does anyone knows good apis or tools to make pdf reports? It might be open source or not. Thks, Bruno --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[symfony-users] Re: [doctrine-user] Re: How is sfDoctrinePlugin and SF 1.1?

2008-05-08 Thread Bruno Reis
gt; The Doctrine website is running symfony 1.1 and sfDoctrinePlugin. > > - Jon > > > On Thu, May 8, 2008 at 8:26 AM, Bruno Reis <[EMAIL PROTECTED]> wrote: > > > Hi there, > > > > Does anyone knows if the sfDoctrinePlugin is going to support SF 1.1? > &

[symfony-users] How is sfDoctrinePlugin and SF 1.1?

2008-05-08 Thread Bruno Reis
Hi there, Does anyone knows if the sfDoctrinePlugin is going to support SF 1.1? Is it going to have form generator either? Thanks, Bruno --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post

[symfony-users] Re: Redirect AND https

2008-04-10 Thread Bruno Reis
can do : > > $host = $request->getHost(); > $uri = url_for('module/action[...]'); > > $this->redirect(sprintf('%s://%s/%', 'https', $host, $uri) > > Thomas > > > > > On Wed, Apr 9, 2008 at 11:58 PM, Bruno Reis <[EMAIL PRO

[symfony-users] Redirect AND https

2008-04-09 Thread Bruno Reis
Hi, I´m using symfony 1.0.0 When I try to redirect an action that is in a https request with $this->redirect symfony redirects to the http protocol instead of the https. Does anyone knows what is happening? Is there a bug on the redirect method? thanks, Bruno ps: I dont know what it means bu we

[symfony-users] Re: messages on the login and security modules...

2008-04-04 Thread Bruno Reis
the login/index view : > > has('message')) echo $sf_flash->get('message') ?> > > Don't know if this is the best way to do it, but it should work. > > > Thomas > -- > http://tequila-studio.com/ > > > Le jeudi 03 avril 2008 à 10:16

[symfony-users] messages on the login and security modules...

2008-04-03 Thread Bruno Reis
Hi, when a user does not have acess he is redirected as configured in settings.yml: all: login_module: login login_action: index secure_module: login secure_action: index it is working fine. But, how do I show a message to the user on the login telli

[symfony-users] parse a formated number acording with the culture

2008-03-27 Thread Bruno Reis
Hi, I format a number with a format_number method to show the number in my form. How can I parse the number received from the web in my action? Is there a method on symfony to do it? The date_format accepts a input_format parameter and with this parameter it can be used to parse dates from the fo

[symfony-users] configurating validation options with sfDoctrinePlugin

2008-03-27 Thread Bruno Reis
Hi, In sfDoctrinePlugin the doctrine validation can be turned on and off in the doctrine.yml configuration of the plugin. But the parameters I have to use are just true and false. How can I configurate the validation to be more specific? in "pure" doctrine I can do it like Doctrine_Manager::getI

[symfony-users] Re: Session problems with....Symfony + Windows 2000 + virtual host + Internet Explorer

2008-03-26 Thread Bruno Reis
how? 2008/3/26, Luciano A. Andrade <[EMAIL PROTECTED]>: > > > Maybe the domain names of the apache and the windows are not matching > and ie gets confused? maybe if you set the domain name in apache may > work. > > > On Tue, Mar 25, 2008 at 5:59 PM, Bruno Reis <[

[symfony-users] Session problems with....Symfony + Windows 2000 + virtual host + Internet Explorer

2008-03-25 Thread Bruno Reis
Hi there, I have Symfony + Windows 2000 + apache virtual host (xampp) running. It works fine in IE and mozilla, but the session do not work on IE. If I set a parameter like $this->getUser()->setAuthenticated(true); or even $_SESSION['X'] on the next request the session looks empty. nothing is s

[symfony-users] Re: error instaling sfSimpleCMSPlugin - SfcmsPlatform.php not found

2008-02-25 Thread Bruno Reis
never mind... I´ve found I had set a wrong propel.database configuration Bruno 2008/2/25, Bruno Reis <[EMAIL PROTECTED]>: > > Hi there, > > I want to run the sfSimpleCMSPlugin... > > I installed the SFGuardPlugin and SFActAsNestedSet... all right > > When

[symfony-users] error instaling sfSimpleCMSPlugin - SfcmsPlatform.php not found

2008-02-25 Thread Bruno Reis
Hi there, I want to run the sfSimpleCMSPlugin... I installed the SFGuardPlugin and SFActAsNestedSet... all right When I tried to run a propel-build-model command I got the following error propel > om: [echo] +--+ [echo] |