Re: [symfony-users] Re: Highlighting menu based on controller called

2011-05-29 Thread oscar balladares
Oh! I forgot. For your actual request, yes, you can do the same for the controller, just toggle "_route" with "_controller" instead. app.request.attributes.get('_controller') I actually post a question about this, it was because '_controller' was not available when you call the 'render' helper to

Re: [symfony-users] Re: Highlighting menu based on controller called

2011-05-29 Thread oscar balladares
What I'm doing is to get the actual route in template, and if a route matchs a category (lets say), then print an "id='current'" for example: Home That's it. Of course it will become clumsy when you have many links cause it is hard to read through. I'll go with MenuBundle in my next project upda

Re: [symfony-users] [Symfony2] Deleting default security.yml file

2011-05-29 Thread oscar balladares
What I'm doing is to override the defaults, this is quicker/easier (for me at least) than option 2: Remove from appKernel any reference to "security": SecurityBundle, and SecurityExtraBundle, Also, comment out/remove reference to JMS in config.yml (The lasts lines of the file) and of course comme

Re: [symfony-users] [Symfony 1.4] SOLVED: How to customize the display of sfWidgetFormDoctrineChoice

2011-05-29 Thread Alex Potter
On Sunday 22 May 2011 18:50:50 Alex Potter wrote: > I've spent days trying to implement this but, despite having read all the > documentation I could find and googling extensively, I'm still no wiser. I finally found a clue here.

[symfony-users] Security - UserProvider with Web Service - Get the password

2011-05-29 Thread chafik
Hi, I am currently creating a UserProvider which retrieve the users from a web service. I am implementing the loadUserByUsername method, but I have a problem. The only thing that I can get from the login form is the username in this method but I also need to send the password provided by the user

Re: [symfony-users] render template inside template

2011-05-29 Thread sztart .pl
Hi Romain Unfortunately my template is in DB and is passed to template as a page.content variable. It is not a static file, so include is not working. 2011/5/29 Romain : > Hello, > > On Sun, May 29, 2011 at 11:30 AM, mrok wrote: >> >> Hi >> >> Is there any way to render twig template inside te

[symfony-users] Assetic FIlter Settings

2011-05-29 Thread Paul Dugas
Does AsseticBundle have a way to adjust Assetic filter settings from a {% stylesheets %} tag in a Twig template or from SF2 configs? The case I'm facing at the moment is with a client-side UI framework (ExtJS) that ships scss files with a few url()'s referencing missing files. I'd like to find a

Re: [symfony-users] [Assetic] on compass configuration file

2011-05-29 Thread Paul Dugas
FYI, MoOk is working on a way to use the compass executable and generate a config in /tmp. https://github.com/kriswallsmith/assetic/issues/43 Paul On Fri, May 27, 2011 at 11:59 AM, matteosister wrote: > Hi everybody. > I'm using compass and assetic to publish my assets... > After some day of

Re: [symfony-users] Enabling Symfony2 validator causes InvalidConfigurationException

2011-05-29 Thread Christophe COEVOET
Le 27/05/2011 10:34, Timo Paananen a écrit : Following Symfony2 book example http://symfony.com/doc/current/book/validation.html#configuration and adding setting 'validation: { enabled: true, annotations: true }' to config.yml gives me this error: 'InvalidConfigurationException: Unrecognized opt

Re: [symfony-users] FOS\UserBundle\ - How to use translations?

2011-05-29 Thread Christophe COEVOET
Le 28/05/2011 02:48, chesteroni a écrit : Hello! I am trying to use UserBundle, however I can't force it to send emails with content :/ What I do have is an email with empty content and subject: "user.email.confirmation" As far, as I understand, that is 'key' in translation file and I should ha

Re: [symfony-users] Re: Symfony Forms, specifically with sfDoctrineGuard

2011-05-29 Thread Hayden
Those I have, what I am looking for is to actually edit how it outputs. Everything I have seen so far has the form tags in the custom view but then a in between and everything else is generated from the classes and generator.yml. It still echoes the in tags. On Thu, May 26, 2011 at 8:48 AM, Pau

[symfony-users] auto logon

2011-05-29 Thread Katok
Hi. I'm trying to integrate LDAP authentication with symfony2. I have been able to use adldap to be able to authenticate with LDAP...what I would like to do now, is to auto logon the user into Symfony2..so as to get a session cookie. Idea is to authenticate through ldap, and to automatically cre

[symfony-users] Re: [symfony2] How to handle Assets the right way?

2011-05-29 Thread Corra
Alex, Have you had any luck with referencing images within CSS? cheers -- 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 this

[symfony-users] Strange routing

2011-05-29 Thread Michele Pierri
Hi, I have this routing file: # You can find more information about this file on the symfony website: # http://www.symfony-project.org/reference/1_4/en/10-Routing # default rules homepage:   url:   /   param: { module: campaign, action: index } # generic rules # please, remove them by adding more

[symfony-users] Doctrine build-model problem

2011-05-29 Thread Nabil Karous
Hi I have problem with symfony Doctrine : build-model help please -message ERREUR >> doctrine generating model classes >> file+ C:\Users\Nabil\AppData\Local\Temp/doctrine_schema_59434.yml No yml schema found in C:\Users\Nabil\AppData\Local\Tem

[symfony-users] Develop an app as an API

2011-05-29 Thread Filipe Dias
Hi all, I'm developping an application as an API: making requests returns simple xml or json files, but I need to save some properties in session. All available documentation is form login oriented. I got authentication getting a connection to a database, using doctrine ORM. If is a valid login, r

[symfony-users] Re: Filter: set options

2011-05-29 Thread chandi
I found the solution. There you get FormFilter classes for each admin module. And there, you can set, $this->widgetSchema['options_list']->setOption('expanded', true); That's it. On May 25, 10:19 pm, chandi wrote: > Hi, > > I'm new to symfony and started digging. > > I require to showsetof che

[symfony-users] Re: Highlighting menu based on controller called

2011-05-29 Thread FuzzyBird
I think a good way to do it is, in the controller : // first generate the menu structure // you may want to do the following in a loop for all your menu items if ($this->get('router')->generate('some-route') === $this- >get('request')->getRequestUri() ){ // highlight the link of this route

[symfony-users] [Assetic] on compass configuration file

2011-05-29 Thread matteosister
Hi everybody. I'm using compass and assetic to publish my assets... After some day of test I found two main things that I don't understand: 1. Why the CompassFilter is just a fallback to sass --compass instead of using the compass command line? 2. Is there a way to pass some "build variables" to t

[symfony-users] Enabling Symfony2 validator causes InvalidConfigurationException

2011-05-29 Thread Timo Paananen
Following Symfony2 book example http://symfony.com/doc/current/book/validation.html#configuration and adding setting 'validation: { enabled: true, annotations: true }' to config.yml gives me this error: 'InvalidConfigurationException: Unrecognized options "annotations" under "framework.validation"

Re: [symfony-users] render template inside template

2011-05-29 Thread Romain
Hello, On Sun, May 29, 2011 at 11:30 AM, mrok wrote: > Hi > > Is there any way to render twig template inside template? > I keep twig template code in DB (I need show something for customer > fast so it is a baypass) and now have a problem how render template > passed to template as variable (I

[symfony-users] Re: which is the correct way to deliver binary content?

2011-05-29 Thread Bart van Wissen
On 11 mei, 11:24, David Buchmann wrote: > hi, > > i have binary content that i have to deliver to the client. what is the > right way to do it? i found two solutions, but neither seems really good. > > //in my controller, i get a binary stream (its stored in the database) > > $picture = $this->met

[symfony-users] FOS\UserBundle\ - How to use translations?

2011-05-29 Thread chesteroni
Hello! I am trying to use UserBundle, however I can't force it to send emails with content :/ What I do have is an email with empty content and subject: "user.email.confirmation" As far, as I understand, that is 'key' in translation file and I should have the value from that file. But I can't fin

[symfony-users] Selective caching with edge side includes

2011-05-29 Thread Bart van Wissen
I want to use Edge Side Includes with Varnish in a website where users can view pages both unauthenticated and authenticated. Some of these includes have the same content regardless of the authentication state of the user, so I would like these responses to be cached by Varnish. Varnish by default

Re: [symfony-users] [SF2] Question on security password encoding

2011-05-29 Thread Alex
Thanks for your feedback. I have thought of using Form, but it still does not prevent someone from saving password without encryption directly with Entity (such as fixtures) or creating another form that does not enforce the business logic. So far, the only guarantee place that I can think of i

[symfony-users] [Symfony2] Deleting default security.yml file

2011-05-29 Thread Alessandro Desantis
Hi all, I'm new to Symfony2. I was wondering if it is possible to delete the default security.yml file without throwing any error. If I try to comment out the line which imports the file, a "ServiceNotFoundException" with the following message 'The service "security.access.method_interceptor" has

[symfony-users] Develop an app as an API

2011-05-29 Thread Filipe Dias
Hi all, I'm developping an application as an API: making requests returns simple xml or json files, but I need to save some properties in session. All available documentation is form login oriented. I got authentication getting a connection to a database, using doctrine ORM. If is a valid login, r

[symfony-users] Trabajar symfony en ubuntu con netbeans

2011-05-29 Thread Marlon
Al crear un proyecto symfony con netbens en ubuntu aparece un mensaje diciendo que el script de symfony esta mal -- 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] Re: [SF2] Question on security password encoding

2011-05-29 Thread Alex
Thanks Oscar, for your feedback. I have thought of using Form too, but it doesn't stop someone to create an User Entity and save the data without encrypting the password. For example, during loading data fixtures, no form is being used, so it is up to the developer to remember to encrypt the passw

[symfony-users] Strange Routing... Newbie

2011-05-29 Thread micsymfony
Hi, I have this routing file: # default rules homepage: url: / param: { module: campaign, action: index } # generic rules # please, remove them by adding more specific rules default_index: url: /:module param: { action: index } default: url: /:module/:action/* So, If in my browse

[symfony-users] PDF version of book

2011-05-29 Thread Symfonier
A PDF version of the book will be immensely helpful. Can someone please post this to the group and perhaps it is best if it is made available at symfony.com? Thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this me

[symfony-users] Re: how to update between 2.0 versions

2011-05-29 Thread mahm...@abdel-fattah.net
+1, Yes I'm using Beta2, and want to updated the modified files only to Beta3 cause am afraid of overwriting my config files On May 28, 12:37 pm, Dmitry Bykadorov wrote: > +1 > > i'm new in git and interested in solution > > On May 28, 2:18 pm, spider wrote: > > > > > > > > > Hello, > > > with 1

Re: [symfony-users] Inserting routed assets with Assetic from a Twig_Node

2011-05-29 Thread Kris Wallsmith
I never anticipated extending Assetic's twig integration by creating new TokenParsers… can you accomplish this by adding the asset to the DIC and tagging it assetic.asset? Also, are you aware Assetic includes a filter for Packager? Thanks, Kris On May 29, 2011, at 5:18 AM, dukeofgaming wrote: >

[symfony-users] Re: [symfony2] Generate url with a parameter from a variable in Twig

2011-05-29 Thread xaben
Thanks for the quick reply, i could swear that on my Windows laptop it was throwing a error requiring those ' ' around the parameter, but on my linux box i tested and indeed it works... I'll see later again on windows, don't think tho that the environment should matter really... I'll report if it

[symfony-users] Request::get() does not return POST parameters

2011-05-29 Thread Stefan Reek
hi all, I build a ParamConverter which implements the ParamConverterInterface, in this ParamConverter I implemented the function apply(Request $request, ConfigurationInterface $configuration). The paramconverter works perfectly fine, but calling the $request- >get() function only returns GET param

Re:[symfony-users] Re: Symfony / Symfony2 coding standards

2011-05-29 Thread sea
Execuse me, I have a project will build ,but i hope symfony 2 can on it! Now,have somebody could tell me ,what's time the symfony2 will release ? Thank You very much! -- Original -- From: "Dmitry Bykadorov"; Date: Thu, May 26, 2011 07:16 PM

[symfony-users] Generate proxies in Test mode ?

2011-05-29 Thread spike3111
Hello, I try to know how to generate proxies in test mode ? In dev and prod, proxies are generated in the cache folder. In config.yml I have this option for doctrine: doctrine: orm: auto_generate_proxy_classes: true auto_mapping: true But nothing happens with Test mode... Tha

[symfony-users] Inserting routed assets with Assetic from a Twig_Node

2011-05-29 Thread dukeofgaming
Hi, I'm trying to port my previous symfony MooTools plugin (https:// bitbucket.org/imbue/sfmootoolsplugin/src) to Symfony 2 (https:// bitbucket.org/imbue/mootoolsbundle/src). The tag itself (i.e. "{% mootools %}") is already working , however I've hit a wall while trying to import js and css with

Re: [symfony-users] Doctrine Extensions in Symfony2 Beta1

2011-05-29 Thread seven seven
Thanks allot ! You really saved my time ! I faced this issue in the past, but at that time I failed to upgrade to a higher version of Doctrine ORM; now everything is working . Again thank you for your great help ! On Sun, May 29, 2011 at 2:16 PM, Christophe COEVOET wrote: > Le 29/05/2011 13:08

Re: [symfony-users] Doctrine Extensions in Symfony2 Beta1

2011-05-29 Thread Christophe COEVOET
Le 29/05/2011 13:08, seven seven a écrit : Hi Stof, Yes that is correct ! I did a better debugging and followed the /Update/ from github on symfony2 and some of the problems were gone. But I am still having some troubles with my repositories . It might be that I didn't follow the update instr

Re: [symfony-users] Doctrine Extensions in Symfony2 Beta1

2011-05-29 Thread seven seven
Hi Stof, Yes that is correct ! I did a better debugging and followed the *Update* from github on symfony2 and some of the problems were gone. But I am still having some troubles with my repositories . It might be that I didn't follow the update instructions very well as I am upgrading from beta1 t

[symfony-users] render template inside template

2011-05-29 Thread mrok
Hi Is there any way to render twig template inside template? I keep twig template code in DB (I need show something for customer fast so it is a baypass) and now have a problem how render template passed to template as variable (I would like to avoid create tmp file). Code: {% block content %}