[symfony-users] Re: generating url in task

2010-11-09 Thread hribo
that's not the case. i am able to generate url also with url_for. in my script i am using loaded helpers. but the case is that when i am using these helpers, the LINK IS GENERATED BADLY. helpers prefixes: "symfony/symfony/" in front of each well generated url. when i am using this url helpers in ac

Re: [symfony-users] Re: generating url in task

2010-11-09 Thread Gareth McCumskey
A quick google search found something that can explain it for you. Basically, url_for uses the $_SERVER variables which in command line obviously does not exist: https://groups.google.com/group/symfony-users/msg/f71d8c3f819060f9?hl=fr&pli=1 On Tue, Nov 9, 2010 at 12:10 PM, hribo wrote: > that's

[symfony-users] Re: Defining an object [alias]?

2010-11-09 Thread xpanshun
I'm sorry if some of you feel I don't belong here because I ask for help on things that are basic to you. I am not a developer pro. I am doing a project for school that is due at the end of the month. If I could find help elsewhere I would not be here. None of my teachers at school will help me an

[symfony-users] Re: generating url in task

2010-11-09 Thread hribo
well, still doing the same. never mind. i used str_replace() to get it away. i just wanted to make it cleaner. On Nov 9, 11:30 am, Gareth McCumskey wrote: > A quick google search found something that can explain it for you. > Basically, url_for uses the $_SERVER variables which in command line >

Re: [symfony-users] Re: Defining an object [alias]?

2010-11-09 Thread Alex Pilon
Lol, dude, this is a group of symfony professionals. If you need to ask basic php questions you should check out sitepoint.com. That entire board is a more or less an entry level board that would be the appropriate place to ask. Its great that you are trying to learn, but part of that is where and

[symfony-users] Re: Defining an object [alias]?

2010-11-09 Thread xpanshun
Thanks Alex. I was not aware this was a strictly professional board. I will definitely have to check out that site. Again, thanks for being understanding about it. I never meant to upset anyone with my presence. On Nov 9, 10:53 am, Alex Pilon wrote: > Lol, dude, this is a group of symfony profess

Re: [symfony-users] Re: Defining an object [alias]?

2010-11-09 Thread Alex Pilon
Dude we arent upset about your presence and we don't wish you off this board. The point is, that this is a symfony user group. In general if one is using symfony, one already has a very good knowledge of php. When I say its a professionals board I guess what I mean is be professional. If you need t

[symfony-users] [Symfony 2] Security: after login still not logged

2010-11-09 Thread gordonslondon
Hi, After successfully login with the security component, i dump $container->get('security.context')->getUser(); wich return null, in the debug toolbar the user is still "anon.". What i've checked: - Nothing interesting in logs. - There's no error message, all went fine. - The user is found an

[symfony-users] Re: Defining an object [alias]?

2010-11-09 Thread xpanshun
I perfectly understand what you are saying about the integrity of the board. Again, I just did not know the whole protocol. But now that I know I will definitely evaluate any questions before I post here. Thank you for the heads up. On Nov 9, 11:01 am, Alex Pilon wrote: > Dude we arent upset abou

Re: [symfony-users] Password fields

2010-11-09 Thread Martin Ibarra Cervantes
Please read the form on symfony or the chapter ... read the book jobeet , you can :-) On Sun, Nov 7, 2010 at 9:22 PM, Gareth McCumskey wrote: > erm ... HTML 101 > > On Mon, Nov 8, 2010 at 12:09 AM, xpanshun wrote: >> >> How can I make the input of a certain field in a generated form (on >> t

[symfony-users] Re: Security: after login still not logged

2010-11-09 Thread Florian
Hi, I think you missed the third part of security config: the access_control list ( Authorization ) http://docs.symfony-reloaded.org/master/guides/security/index.html try adding this in your config: access_control: - { path: /admin/.*, role: ROLE_ADMIN } - { path: /.*, role:

[symfony-users] Re: Security: after login still not logged

2010-11-09 Thread Florian
It could come from an issue with the session read/write, plese see: http://groups.google.com/group/symfony-devs/msg/794ede4676fca362? On Nov 9, 5:15 pm, gordonslondon wrote: > Hi, > > After successfully login with the security component, i dump > $container->get('security.context')->getUser(); w

[symfony-users] Javascript onLoad event in a symfony context.

2010-11-09 Thread Parijat Kalia
Hey people, I am trying to have an onLoad event in one of my webpages. But as we know, the body tag appears in the layout and not the template pages. So I am unable to understand how this can be done in symfony. If this is a little out of context, I am sorry, but it's typically straight forward. O

[symfony-users] Re: Javascript onLoad event in a symfony context.

2010-11-09 Thread Parijat Kalia
Actually nevermind. I just put a body tag right at the top of the template page I require the onload event on and it did execute itself. A quesxtion that can spur off this is ...did including a body tag supersede the existing body tag in the symfony layout page??? Clearly it did not supersede, beca

Re: [symfony-users] Javascript onLoad event in a symfony context.

2010-11-09 Thread Gareth McCumskey
You don't need to use the body tag as Using JQuery you can include your Javascript in your template and use JQuery to do stuff onload for you. On Wed, Nov 10, 2010 at 1:34 AM, Parijat Kalia wrote: > Hey people, > > I am trying to have an onLoad event in one of my webpages. But as we know, > the

Re: [symfony-users] Javascript onLoad event in a symfony context.

2010-11-09 Thread Gareth McCumskey
And to answer your question, if you look at the layout file it has a section labelled $sf_content. Everytiem you load a page, symfony runs your action, processes the view associated to that action and "catches" the HTML that view produces then takes your layout and inserts the generated HTML it cau

[symfony-users] Re: RESTFul & etag

2010-11-09 Thread Shihab KB
When the settings are In the settings.yml prod: .settings: no_script_name: on logging_enabled:off cache: on etag: on In the cache.yml default: enabled: on with_layout: true lifetime: 86400 client_lifetime: 0 then in th

[symfony-users] sfDoctrineMasterSlavePlugin and I18n

2010-11-09 Thread Janaksinh Jadeja
I trying to use sfDoctrineMasterSlavePlugin for replication with symfony 1.4 and PHP 5.3. But I am facing problem while selecting I18n records and getting "Unknown relation alias Translation". Which was working without using sfDoctrineMasterSlavePlugin. Does anyone faced such problem with sfDo