Hi.
This is a great S2 security tutorial.
It should fill your needs.
http://www.dobervich.com/2011/03/21/symfony2-blog-application-tutorial-part-v-intro-to-security/
2011/4/2 bitgandtter yasman...@gmail.com
first i´m really new in symfony 2.0.
I am developing an application using symfony
Hi,
I've got the exact same issue. Andreas, have you found the solution?
PS: I'm using PR9.
Cheers,
On Feb 16, 9:34 pm, Andras are...@epiac.hu wrote:
Hi,
A bit shorter version of my question: I have aformwith a subform
called enterprise.
How can I print the field validationerrorswith
This should be working. Show us the relevant parts of both files.
On Tue, Apr 5, 2011 at 03:34, Laxmi laxmipsa...@gmail.com wrote:
I tried to include footer below ?php echo $sf_content ? using
include_slot('footer'), Where i defined slot in a module called home/
indexsuccess.php. but i did
You must define the route as far as I know.
Did you try it already?
Regards.
2011/4/4 Christian Schaefer cae...@gmail.com
no. and why would I?
there is no controller to handle that route. instead the security
component provides a listener that intercepts. or did that change as
well?
On
no as there is no controller to jump to. the SecurityBundle intercepts
an event and handles it in a listener not a controller. it always
returns 403 or a RedirectResponse.
On 5 Apr., 09:20, oscar balladares liebegr...@gmail.com wrote:
You must define the route as far as I know.
Did you try it
Le 05/04/2011 09:53, Christian Schaefer a écrit :
no as there is no controller to jump to. the SecurityBundle intercepts
an event and handles it in a listener not a controller. it always
returns 403 or a RedirectResponse.
No. When the credentials are wrong the request is not blocked by the
Hello all,
I would like to use strong apache openssl certificate authentication for an
API accessible in a specific symfony application.
I have 3 applications : frontend, backend and soap
So I want to add apache directives for the soap app.
Can I do it ? If yes, how ?
Thanks a lot for the
Yes I posted both the routing definition (which is exactly like the one you
posted) and the security configuration in the first posting of this thread.
Both haven't changed since the update from PR8 except for the added ^'s in
the firewall patterns for the changes in PR9.
Regards,
Dennis
--
On Tuesday, April 5, 2011 10:04:37 AM UTC+2, Christophe COEVOET wrote:
Le 05/04/2011 09:53, Christian Schaefer a �crit :
no as there is no controller to jump to. the SecurityBundle intercepts
an event and handles it in a listener not a controller. it always
returns 403 or a
Note: I'm not sure if this is a tinyMCE or symfony bug, but the
resulting behavior is very strange :
I want to add this:
Files somefile.png
DefaultType application/x-httpd-php
/Files
This gets saved ok (as lt; and gt; in the html), but when I reopen
my form for editing, it gets
I want to use the Doctrine function addCustomDatetimeFunction on my
EntityManager.
I tried this :
$config = new \Doctrine\ORM\Configuration();
$config-addCustomDatetimeFunction('MONTH',
'Doctrine\ORM\Query\AST\Functions\Month'); // My custom function
$em =
No, I finally decided not to use a subform (see below).
Originally I wanted to use a subform because 'termsAccepted' was not a
property of the class Enterprise. 'termsAccepted' and the class
Enterprise were both properties of the Registration class. Now both
Enterprise and Registration have the
Hey Antonio-
This is a common exception, and one that I hope we'll be improving in
certain places to be more clear. First, follow Carl's advice and see
which version of Symfony you're using - there was a few recent changes
in how you reference your bundles.
This error means that you're
Le 05/04/2011 15:03, Christophe Beyer a écrit :
I want to use the Doctrine function addCustomDatetimeFunction on my
EntityManager.
I tried this :
$config = new \Doctrine\ORM\Configuration();
$config-addCustomDatetimeFunction('MONTH',
'Doctrine\ORM\Query\AST\Functions\Month'); // My custom
Ok, if it's Entity, sure, then it's bad practice. In his example,
it is clearly a PageModel, so he can inject whatever dependencies he
needs for his domain model to work as expected:
?php
class PageModel
{
public function __construct($layoutManager)
{ ...
Obviously, the problem here is
The system still needs to know the path of the route, it doesnt need to
direct to a controller:
See FOS\UserBundle:
https://github.com/FriendsOfSymfony/UserBundle/blob/master/Resources/config/routing/security.xml
and
Hi,
I'm using Extjs librarie with symfony,but I have a big problem with
the TabPanel,everytime I click on a Tab,the content is loaded out of
the panel!
Does any one of you had this problem before?
have a good time.
--
If you want to report a vulnerability issue on symfony, please send it to
Conceptually it's bad practice because entities are just meant to *store*data.
The only methods they should have are simple set and get methods.
Nothing more. If you start adding other logic to them, then you're changing
the purpose of entities and it can start to make your code more difficult
Hi,
Im running sf prerelease9, i have this weird problem.. when i generate
my entities in a bundle.. i dont get all the mappings, example:
Here is my yml file, it will only generate mappings in my entity file
to the last mapping, beer_price, its like shot_price doesnt even
exists.. does somebody
hello, i receive too many email from this group ... how can i stop that?
regards.
Mamadou Aliou Bobo Diallo
De : Dennis Jacobfeuerborn djacobfeuerb...@gmail.com
À : symfony-users@googlegroups.com
Envoyé le : Mar 5 avril 2011, 14h 19min 56s
Objet : Re:
Hi all,
i have just installed sf2 pr10 using mongodb and got the FOS
UserBundle. All seems properly installed, I can successfully create a
user in the command line. But when I try to access any of the FOS
routes I get redirected to /login and see the 310 too many redirects
http error...
Even if I
Hello again,
I have migrated to SF2 PR9 and the error I have is the same is this:
*Fatal error*: Declaration of
Stof\DoctrineExtensionsBundle\Listener\LoggableListener::getLogEntryClass()
must be compatible with that of
Gedmo\Loggable\AbstractLoggableListener::getLogEntryClass() in*
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
until there is a doc up, i just post findings about assetic here.
we have now lessphp working if you want a less filter. you can update
your vendors.sh to get lessphp from git://github.com/leafo/lessphp.git
and put it into vendor/lessphp/
to make it
Hey everyone,
I'm starting to get my Symfony2 project off the ground and need to
migrate the 1000's (100,000's) of rows from my old DB into the new
schema created by Doctrine2.
I came here because I was getting this error on doctrine:data:load:
C:\Website\3.0\Symfonyphp app/console
Hi all,
I have a question related to the DoctrineExtensions... I was trying to use
DoctrineExtensionsBundle in sf2 PR8 and I get some errors when I try
schema:create.
It seems that the Doctrine 2.0.x will not work with DoctrineExtensionsBundle
? Am I correct ? I should put the Doctrine 2.0 ?
Hi Antonio,
Which version of Symfony2 are you using? Also, how do you reference your
bundles? There was a recent change to the codebase that removed the word
Bundle when referencing bundles internally:
https://github.com/symfony/symfony/commit/ade83e2e80a605ec4a23bed1d3862cf5adebd33e
However,
Hello,
make sure that you (and apache user) have physical access to your
bundle. Try chown chmod on your bundle.
Peter
--
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
Le 05/04/2011 16:47, Conrad a écrit :
Hi all,
i have just installed sf2 pr10 using mongodb and got the FOS
UserBundle. All seems properly installed, I can successfully create a
user in the command line. But when I try to access any of the FOS
routes I get redirected to /login and see the 310 too
Le 05/04/2011 17:09, seven seven a écrit :
Hello again,
I have migrated to SF2 PR9 and the error I have is the same is this:
*Fatal error*: Declaration of
Stof\DoctrineExtensionsBundle\Listener\LoggableListener::getLogEntryClass()
must be compatible with that of
Just what I said. There must be a route defined for _security_check
As Tim Nagel pointed.
2011/4/5 mamadou aliou diallo bobova...@yahoo.fr
hello, i receive too many email from this group ... how can i stop that?
regards.
Mamadou Aliou Bobo Diallo
--
*De :*
Hi,
I have run into a problem that I can't figure out how to fix. I was
using the validation framework to test that certain values were being
correctly flagged as invalid, and it was working fine in PR9, but
after updating to PR10, I'm getting errors.
Here's a small test that can recreate my
Le 05/04/2011 19:35, Donald a écrit :
Hi,
I have run into a problem that I can't figure out how to fix. I was
using the validation framework to test that certain values were being
correctly flagged as invalid, and it was working fine in PR9, but
after updating to PR10, I'm getting errors.
Thanks a lot. I'll be sure to read that with each update from now on.
On Apr 5, 12:42 pm, Christophe COEVOET s...@notk.org wrote:
Le 05/04/2011 19:35, Donald a crit :
Hi,
I have run into a problem that I can't figure out how to fix. I was
using the validation framework to test that
On Tuesday, April 5, 2011 10:01:43 AM UTC+2, merk wrote:
The system still needs to know the path of the route, it doesnt need to
direct to a controller:
See FOS\UserBundle:
https://github.com/FriendsOfSymfony/UserBundle/blob/master/Resources/config/routing/security.xml
and
On Tuesday, April 5, 2011 6:52:08 PM UTC+2, Matador wrote:
Just what I said. There must be a route defined for _security_check
As Tim Nagel pointed.
There is. See the first post of this thread.
Regards,
Dennis
--
If you want to report a vulnerability issue on symfony, please send it to
This looks fine to me, it should be working. Make sure you're seeing
error messages (if any), so access it via your dev front controller.
On Tue, Apr 5, 2011 at 08:55, Laxmi laxmipsa...@gmail.com wrote:
in the layout i added
include_slot('footer');
This is what I added in footersuccess.php
Nevermind Stof, I found (yes, lol) the security configuration at the
bottom of the documentation and now I have the login field :)
Thanks
On Apr 5, 6:25 pm, Christophe COEVOET s...@notk.org wrote:
Le 05/04/2011 16:47, Conrad a crit : Hi all,
i have just installed sf2 pr10 using mongodb and
Good Question... to be honest: I don't know..
After re-reading the installation guide (like the hundredth time) I
recognized the little paragraph for the routes to be avaiable for
unauthorized users..
But I don't know how and where I need to set those routes public..
I tried this and similar
I've been playing around with sf2 lately and been looking at code from
the various github projects but I'm still not really sure what (and
more importantly *why*) is going on with the Model classes.
I've picked up on the concept that Entities should remain fairly
untouched from complex (business)
Ok, that was weird, because my DoctrineExtensions wasn't up to date and I
know that yesterday I had downloaded it from github. Anyway that fixed the
issue .
And I am using SF2 - PR10.
Thanks allot !
On Tue, Apr 5, 2011 at 7:29 PM, Christophe COEVOET s...@notk.org wrote:
Le 05/04/2011 17:09,
Hi again !
Well everything worked great till I tried to run *php app/console
doctrine:schema:create* and it gives the following error:
*$ ../../php/php.exe app/console doctrine:schema:create*
*PHP Catchable fatal error: Argument 1 passed to
Gedmo\Mapping\MappedEventSubscr*
Hi Dennis,
I had similar problems and made these mistakes:
- the login-form has to post the content (not method=get)
- instead of pattern: ^/login now I use pattern ^/login$ (don't know
why)
regards
Peter
On 4 Apr., 22:27, Dennis Jacobfeuerborn djacobfeuerb...@gmail.com
wrote:
I just
Hi,
In the acme demo (PR 9) I saw: {{ app.user ? app.user.username :
'Anonymous' }}
In my php-template I found out there was a session attribute
_security_profile that contains the username and password when the
user is looged in but I can't find the correct way to get it
unserialized. The
On Tuesday, April 5, 2011 9:48:25 PM UTC+2, pzwosta wrote:
Hi Dennis,
I had similar problems and made these mistakes:
- the login-form has to post the content (not method=get)
- instead of pattern: ^/login now I use pattern ^/login$ (don't know
why)
The fix is to remove the login
Le 05/04/2011 21:48, pzwosta a écrit :
Hi Dennis,
I had similar problems and made these mistakes:
- the login-form has to post the content (not method=get)
- instead of pattern: ^/login now I use pattern ^/login$ (don't know
why)
Because /login_check matches the ^/login regex but not
Le 05/04/2011 21:58, pzwosta a écrit :
Hi,
In the acme demo (PR 9) I saw: {{ app.user ? app.user.username :
'Anonymous' }}
In my php-template I found out there was a session attribute
_security_profile that contains the username and password when the
user is looged in but I can't find the
Le 05/04/2011 21:22, seven seven a écrit :
Hi again !
Well everything worked great till I tried to run *php app/console
doctrine:schema:create* and it gives the following error:
*$ ../../php/php.exe app/console doctrine:schema:create*
*PHP Catchable fatal error: Argument 1 passed to
Le 05/04/2011 19:59, Ruben de Vries a écrit :
I've been playing around with sf2 lately and been looking at code from
the various github projects but I'm still not really sure what (and
more importantly *why*) is going on with the Model classes.
I've picked up on the concept that Entities should
Ok I think I have an idea about this case. I'd appreciate if you can give me
your opinion about this. Having the scenario commented before I'd do the
following:
. First, I'd need to implement my own SecurityIdentityRetrievalStrategy,
since I have my own user - department tree. So I'd override the
Thanks $app-getUser() and the security.context exist in the container
but doesn't return the username though authentication was successful.
The username only exists in the _security_profile token of the session
which I don't know how to unserialize.
regards Peter
On 5 Apr., 22:21, Christophe
Le 05/04/2011 22:51, pzwosta a écrit :
Thanks $app-getUser() and the security.context exist in the container
but doesn't return the username though authentication was successful.
The username only exists in the _security_profile token of the session
which I don't know how to unserialize.
hello, I have to save my documents (css, images, js) in a different
domain, but when I use the tinymce editor the popups doesn't load
information, those windows are blank. Who can I to resolved it?
--
If you want to report a vulnerability issue on symfony, please send it to
security at
Hello,
i got this error when i try to submit my form. The CSRF token is
invalid. Please try to resubmit the form
it worked good in PR8 and when i updated to PR10 ...
thanks
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You
You must render the hiddens fields.
twig:
form
{{ form_hidden(form) }}
.
input type='submit' /
/form
2011/4/5 symfonyMan ezziani.cha...@gmail.com
Hello,
i got this error when i try to submit my form. The CSRF token is
invalid. Please try to resubmit the form
it worked good in
This is not especific to PR10,
if you do {{ form_field(form) }} it will output everything needed (errors,
hiddens, labels, and fields)
But if you access each filed like:
{{ fom_field(form.somePropertyName) }}
{{ form_error(form.somePropertyName) }}
etc...
then you must explicity render the
55 matches
Mail list logo