[symfony-users] Re: Form helper problems in Twig templates: Twig was looking for the "with" or "from" keyword

2011-04-22 Thread Ville Mattila
Thank you, this did the trick. After I posted my question here, I
managed to track down the problem to the translation part of the form
template and commented appropriate lines out, whichafter it apparently
started to work fine again.

Ville

On 22 huhti, 01:53, Michael  wrote:
> seehttps://github.com/symfony/symfony/pull/609

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Change templates extension

2011-04-22 Thread coviex
Hi,

I'd like to give all our template files .phtml extension so that
template code can be found easier.
Is there a sane way to do it?

And the second problem is that I have sf 1.4.8, dev environment and I
still have to add "web_debug: true" to dev settings to see debug
panel. But docs say that web_debug is true by default in dev. And even
when debug panel is shown there is no sql queries section there.

Thanks,
Kostia

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Content Encoding Error with forward404()

2011-04-22 Thread charanjeet
Hello all,


forward404() works perfectly in prod mode, but in dev mode it gives
Content Encoding Error. Are error_404_module and error_404_action not
configured by default for dev mode as well?


Regards
Charanjeet Kaur


-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Content Encoding Error with forward404()

2011-04-22 Thread Roman Sichny
forward404 in dev gives you error page   (this action was forwarded to 404), 
and not forwarding to error_404_action.

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] R: Functional test: how to set JSON data in a POST method?

2011-04-22 Thread Massimiliano Arione
Il giorno giovedì 21 aprile 2011 17:48:41 UTC+2, Javier Garcia ha scritto:

> I want to create a functional test for an action that receives a POST 
> method with data in JSON format. 
>
> This is what I have: 
>
>   info('set car')-> 
>   post('/user/'.$user->getId().'/set-car/'.$car->getId()'-> 
>
>   with('request')->ifFormat('json')->begin()-> 
> isParameter('module', 'myModule')-> 
> isParameter('action', 'myAction')-> 
>   end()-> 
>
> But..where should I set the receiving json data? 
>
> sf 1.4 
>

You should pass data as second argument to post()

cheers
Massimiliano 

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Symfony2 extends twig -> creating a new filter

2011-04-22 Thread Vincent Lechemin
On Thu, Apr 21, 2011 at 3:41 PM, melopoeia  wrote:
>            'my_filter'   => new
> \Twig_Filter_Function('twig_my_new_filter'),

Try this instead:
'my_filter'  => new \Twig_Filter_Method($this, 'my_filter'),

-- 
Vincent Lechemin

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: how to use ahDoctrineEasyEmbeddedRelations to embed a form for each record in a related table?

2011-04-22 Thread Robert Speer
This probably is not the best thing to do with this plugin

I ended up adapting the info in this tutorial to make it happen:
http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: [Symfony2] Overriding Services

2011-04-22 Thread Carl
No one has any idea how to do this or if this is possible?

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: [Symfony2] Overriding Services

2011-04-22 Thread ryan weaver
Hey Carl!

I'm not familiar with the FOSUserBundle, but if I say anything wrong, people
will definitely correct me. Here's how it works:

First, each bundle allows you to configure a lot of different things. For
the most part, it should allow you to customize just about everything you'd
ever need to customize. However, if there *is* something else you want to
customize, you can do this.

In your case, it sounds like you just need to override a service. You're
right that, to do this, you *can* just create a new service of the same name
in your application configuration. I believe that this service definition
just needs to be below the FOSUserBundle configuration so that the bundle
configuration is loaded first (and then your service overrides it). If I'm
wrong, someone please correct me.

If you have any questions on the services part, take a look at the docs on
that and let me know if it doesn't answer any of your questions. We
will/need a cookbook on more advanced ways (like what you need to do here)
of overriding things in a bundle.

http://symfony.com/doc/2.0/book/service_container.html

Thanks!

Ryan Weaver
US Office Head & Trainer - KnpLabs - Nashville, TN
http://www.knplabs.com 
http://www.thatsquality.com
Twitter: @weaverryan


On Fri, Apr 22, 2011 at 3:23 PM, Carl  wrote:

> No one has any idea how to do this or if this is possible?
>
>  --
> 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 group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] commit

2011-04-22 Thread ryan weaver
Hey Luis-

I think you're mixing a few terms - I'm not sure what you're asking. Can you
explain to us again what you're trying to accomplish from a high level?

Thanks!

Ryan Weaver
US Office Head & Trainer - KnpLabs - Nashville, TN
http://www.knplabs.com 
http://www.thatsquality.com
Twitter: @weaverryan


On Thu, Apr 21, 2011 at 8:58 PM, Luis Cordova  wrote:

> I did a branch and pulled someone else's pull request
> now i am trying to pull request original repo, that is UserBundle
> wonder how do I do to pull request these files...
>
> #   modified:   Resources/views/Group/edit_content.html.twig
> #   modified:   Resources/views/Group/new_content.html.twig
> #   modified:   Resources/views/Group/show_content.html.twig
> #   modified:   Resources/views/Security/login.html.twig
> #   modified:   Resources/views/User/changePassword_content.html.twig
> #   modified:   Resources/views/User/checkConfirmationEmail.html.twig
> #   modified:   Resources/views/User/checkResettingEmail.html.twig
> #   modified:   Resources/views/User/confirmationEmail.txt.twig
> #   modified:   Resources/views/User/confirmed.html.twig
> #   modified:   Resources/views/User/edit_content.html.twig
> #   modified:   Resources/views/User/new_content.html.twig
> #   modified:   Resources/views/User/passwordAlreadyRequested.html.twig
> #   modified:
> Resources/views/User/requestResetPassword_content.html.twig
> #   modified:   Resources/views/User/resetPassword_content.html.twig
> #   modified:   Resources/views/User/resettingPasswordEmail.txt.twig
> #   modified:   Resources/views/User/show_content.html.twig
> #   modified:   Resources/views/form.html.twig
> #   modified:   Resources/views/layout.html.twig
>
> --
> 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 group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Symfony2 orm problems with FOSUserBundle

2011-04-22 Thread JC
I'm using the following annotation to try to drive the Doctrine schema
setup but as documented it won't go through.

I get the following exception:

[Doctrine\ORM\ORMException]
Column name 'id' referenced for relation from myCo\MyBundle\Entity
\User towards FOS\UserBundle\Entity\Group does not exist


My User object is as follows:


use FOS\UserBundle\Entity\User as BaseUser;

/**
 * @orm:Entity
 */
class User
{
/**
 * @orm:Id
 * @orm:Column(type="integer")
 * @orm:generatedValue(strategy="AUTO")
 */
protected $id;

/**
 * @orm:ManyToMany(targetEntity="FOS\UserBundle\Entity\Group")
 * @orm:JoinTable(name="fos_user_user_group",
 *  joinColumns={@orm:JoinColumn(name="user_id",
referencedColumnName="id")},
 *  inverseJoinColumns={@orm:JoinColumn(name="group_id",
referencedColumnName="id")}
 * )
 */
protected $groups;
}

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] [symfony2]default bundle doc

2011-04-22 Thread ryan weaver
Hey Sam-

Everything is found at http://symfony.com/doc/2.0/, which is organized by
topics that relate to bundles (e.g. there's a "Security section" that
relates to the Security bundle).

Unfortunately, there aren't docs for assetic yet, which is why you can't
find them. We'll bootstrap them soon - if anyone else has worked with
assetic and would like to write up a quick doc and submit a pull request to
https://github.com/symfony/symfony-docs, I'll buy you a beer :)

There is one blog resource that I think you'll find helpful on the topic:
http://sftuts.com/using-assetic-in-symfony2-for-css-compression

Thanks and good luck!

Ryan Weaver
US Office Head & Trainer - KnpLabs - Nashville, TN
http://www.knplabs.com 
http://www.thatsquality.com
Twitter: @weaverryan


On Thu, Apr 21, 2011 at 4:43 PM, sam  wrote:

> Hello,
> I'm searching the doc for the bundles integrated in the symfony framework,
> specialy the asseticBundle's documentation.
> Does anyone know where I can found it ?
>
> Thanks
>
> --
> 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 group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] R: Change templates extension

2011-04-22 Thread ftassi


> And the second problem is that I have sf 1.4.8, dev environment and I 
> still have to add "web_debug: true" to dev settings to see debug 
> panel. But docs say that web_debug is true by default in dev. And even 
> when debug panel is shown there is no sql queries section there. 
>
>
Are you using propel or doctrine ? 
Can you post your database.yml ?

For propel check this out 
http://symfony.com/blog/using-propel-1-4-detailed-logging (search for 
DebugPDO)

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: [Symfony2] Overriding Services

2011-04-22 Thread Carl
Hi Ryan,

Thank you for your response! That's pretty much exactly what I was looking 
for. And it's more or less what I figured I'd have to do (it's the way 
Symfony2 seems to approach overriding other stuff) but I wanted to make sure 
I was doing it right and using means intended by developing the framework. 
I've been looking at lots of other bundles to see how things that aren't 
well documented yet are done but so far none of the bundles I've found do 
something quite like this. Nor should they in most cases since they're just 
meant to provide general functionality, with individual applications making 
further customizations. The problem of course comes in when trying to make 
more advanced customizations...

I'll give your suggestions a try and see what happens. :) At the very least, 
it should get me on the right track. Thanks again! I really appreciate it.

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] R: symfony: trying to run all the tests of an app.

2011-04-22 Thread ftassi


> Failed 10/10 test scripts, 0.00% okay. 10/0 subtests failed, 0.00% 
> okay. 
>
> No problem if I run the tests separatelly. 
>
> Any idea? 
>
> sf 1.4 
>
>
Are you using lime ? 
try using ./symfony test:functional frontend -t

"If some tests fail, you can use the --trace option to have more
 information about the failures:"

You're probably having failures becouse multiple functional tests are 
sharing the same memory space. 
Phpunit has an option called "processIsolation" to solve this kind of 
issues. 
Maybe you should give 
http://www.symfony-project.org/plugins/sfPHPUnit2Plugin a try.

Cheers 

---
Francesco

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: [Symfony2] Overriding Services

2011-04-22 Thread Carl
Oops, I meant...

"and using the means intended by those developing the framework."

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] R: How to get Modules list dynamically in symfony

2011-04-22 Thread ftassi


Il giorno giovedì 21 aprile 2011 12:32:47 UTC+2, Muhammad Majid Saleem ha 
scritto:
>
> Hello All - I hope you all are doing your best. 
>
> I am new to symfony and I am learning it. I want to get all working 
> modules and their methods dynamically to bulild a list to implement 
> ACL. 
>
>
Symfony can manage ACL out of the box.

Check 

http://www.symfony-project.org/reference/1_4/en/08-Security
http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin

I don't know how to get a list of enabled modules but you won't need it to 
build and ACL engine, should not at least.

Cheers 

---
Francesco

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Symfony2 orm problems with FOSUserBundle

2011-04-22 Thread Carl
I ran into the same problem when trying to use groups with that bundle. I 
tried a lot of different approaches and it kept incorrectly detecting my 
schema. I first noticed a problem when I tried to run the 
doctrine:schema:update command (with --dump-sql) and discovered that it 
wasn't generating the right queries. So there's definitely an issue with 
either the documentation or the implementation of groups. When looking at 
the source code and the service definitions, it didn't look like groups were 
finished yet. I may be wrong but pieces seemed like they were missing.

I'm afraid that I don't have a solution yet. For now I've abandoned using 
groups and will just be using the event dispatcher 
(http://symfony.com/doc/2.0/book/internals/event_dispatcher.html) to 
add/remove roles from users. I'd prefer to use groups since they're 
conceptually easier to manage but they were just causing me to waste far too 
much time trying to get them to work at this point.

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] commit

2011-04-22 Thread Luis Cordova
Hi Ryan

first time in touch with you, thanks

i solved the problem, but thanks

I was just correcting the broken UserBundle twig format according to
fabien trans change...
no probs

looking for more mentors out there, love learning sf2, encouragements,

Luis

On Fri, Apr 22, 2011 at 4:37 PM, ryan weaver  wrote:
> Hey Luis-
> I think you're mixing a few terms - I'm not sure what you're asking. Can you
> explain to us again what you're trying to accomplish from a high level?
> Thanks!
> Ryan Weaver
> US Office Head & Trainer - KnpLabs - Nashville, TN
> http://www.knplabs.com
> http://www.thatsquality.com
> Twitter: @weaverryan
>
>
> On Thu, Apr 21, 2011 at 8:58 PM, Luis Cordova  wrote:
>>
>> I did a branch and pulled someone else's pull request
>> now i am trying to pull request original repo, that is UserBundle
>> wonder how do I do to pull request these files...
>>
>> #       modified:   Resources/views/Group/edit_content.html.twig
>> #       modified:   Resources/views/Group/new_content.html.twig
>> #       modified:   Resources/views/Group/show_content.html.twig
>> #       modified:   Resources/views/Security/login.html.twig
>> #       modified:   Resources/views/User/changePassword_content.html.twig
>> #       modified:   Resources/views/User/checkConfirmationEmail.html.twig
>> #       modified:   Resources/views/User/checkResettingEmail.html.twig
>> #       modified:   Resources/views/User/confirmationEmail.txt.twig
>> #       modified:   Resources/views/User/confirmed.html.twig
>> #       modified:   Resources/views/User/edit_content.html.twig
>> #       modified:   Resources/views/User/new_content.html.twig
>> #       modified:
>> Resources/views/User/passwordAlreadyRequested.html.twig
>> #       modified:
>> Resources/views/User/requestResetPassword_content.html.twig
>> #       modified:   Resources/views/User/resetPassword_content.html.twig
>> #       modified:   Resources/views/User/resettingPasswordEmail.txt.twig
>> #       modified:   Resources/views/User/show_content.html.twig
>> #       modified:   Resources/views/form.html.twig
>> #       modified:   Resources/views/layout.html.twig
>>
>> --
>> 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 group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>
> --
> 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 group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en