From http://symfony.com/doc/2.0/book/security/authentication.html
After a successful authentication, the user is redirected based on the
following algorithm:
* if always_use_default_target_path is true (false by default),
redirect the user to the default_target_path (/ by default);
* if
That doesn't make too much sense to me, although, it might work!!
public function load($em) -- $em
{
$user1 = new User();
$user1-setName('Cesar Hernandez');
$dm = $this-get('doctrine.odm.mongodb.document_manager'); --
$dm
$dm-persist($user);
from your command
Hi All,
In my routing i have used
setting_master:
url: /setting/master
class: sfPropelRoute
options: { model: master, type: list }
param: { module: setting, action: index }
requirements: { sf_method: get }
and in my action i am using
public function executeIndex(sfWebRequest
Hi,
I'm having an issue with the security component.
In the docs it says that when using a custom Role object you should not use
the ROLE_ prefix for the name of your roles.
But if I omit the prefix and call my role ADMIN instead of ROLE_ADMIN then
an AccessDenied exception is thrown on every
Le 28/03/2011 12:52, georg a écrit :
Hi,
I'm having an issue with the security component.
In the docs it says that when using a custom Role object you should
not use the ROLE_ prefix for the name of your roles.
But if I omit the prefix and call my role ADMIN instead of ROLE_ADMIN
then an
Quick caching question! I have an action that returns some JSON like this:
return $this-renderText(json_encode($results));
I've tried enabling caching for this action as I have done, successfully, with
other actions (using cache.yml at the module level), but it doesn't seem to be
cached.
Hi,
I'm new at symfony and im trying to do an admin that, besides the
creation/edition/deletion of data for the main table (person), would
input the data fro the relational data (pictures, videos, etc), alway
one to many.
I'm breaking my head with it and I still cant see a solution to
Wow, this is fantastic! Outstanding work! :D
--
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
Thank you for the suggestion.
I installed gedit but couldn't find the plugin for debugging.
Can you advise the plugin name?
On Mar 25, 3:53 am, oscar balladares liebegr...@gmail.com wrote:
Gedit out of the box is as good as notepad++. Gedit + plugins is way better
than notepad++.
Of course,
Have you verified that sfMessageSource.class.php exists in your install? It
should be located in lib/vendor/symfony/lib/i18n/. This is an abstract class
that all of the other sfMessageSource_* classes inherit from either directly
or indirectly. So if that's missing it would generate an error
Congrats, for a excelent work.
I would like to form a part of this group.
Thank you.
--
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
Thanks for this! I've been trying to get this to work for a while now
and I kept getting the default error page.
Unfortunately, the app/Resources/FrameworkBundle/views/Exception/
error.html.twig location doesn't seem to work for me either. Nor does
app/views/FrameworkBundle/Exception/
Nice. This will be a big help ^_^ Thanks
On Thu, Mar 24, 2011 at 11:28 AM, Tristan tristan.bessou...@gmail.comwrote:
Hello,
We've just released amazing stylesheets for Symfony2 and Doctrine2.
Don't hesitate to tell us what you think.
Tengo un problema con el entorno de producción, a ver si a alguien se
le ocurre algo.
Resulta que si ejecuto app_dev.php funciona correctamente, pero cuando
ejecuto app.php me da el siguiente error
Oops! An Error Occurred
The server returned a 500 Internal Server Error.
Something is broken.
Hi all, I'm with symfony PR8 and appear me the following problem:
I am creating a bundle with php app / console init:Bundle Name
\NameBundle src as the documentation says
This command create the bundle, but with the old configuration, that
is, files of routing and without the possibility of
Thanks for this! I've been having trouble with this very problem for days
and figured it was a bug.
I've tried placing the template in both locations mentioned and neither of
them seem to do the trick. I've made certain to clear my app/cache directory
too. I'm using PR8 at the moment.
(My
So, I tried to play this sample
http://www.doctrine-project.org/blog/doctrine2-batch-processing
class HelloWorldCommand extends DoctrineCommand
{
protected function configure()
{
$this
-setName('hello:world')
-setDescription('hello world')
Greetings,
I'm having some trouble with doctrine:generate:entities in Symfony2.0/PR7
(same in PR8).
Every time I run doctrine:generate:entities (type: annotation) an additional
entity is created in /Entity. For /Entity/User.php I get an additional
/Entity/~User.php.
The problem is: ~User.php
Awesome thanks Fabien, just saw that on github.
On Mar 26, 5:52 pm, Fabien Potencier fabien.potenc...@symfony-
project.com wrote:
On 3/26/11 5:55 PM, georg wrote:
Hi,
has this been solved or has a solution been found?
I'm also very interested in achieving the same thing as Mark.
/**
Hi,
I'm having problem with i18n records being saved into the db.
I have this schema:
Post:
connection: doctrine
tableName: post
actAs:
i18n:
fields: [title, content]
columns:
id:
type: integer(1)
primary: true
autoincrement: true
.
.
.
title:
Hi,
I'm using ahDoctrineEasyEmbeddedRelationsPlugin for an admin
form with the code that follow. In the creation of a company (empresa), the
relation many to many is saved ok, nut in th edition, the blank form always
is validated, or tries to input in the tababase null values,
On Thu, Mar 24, 2011 at 11:28 AM, Tristan tristan.bessou...@gmail.comwrote:
Hello,
We've just released amazing stylesheets for Symfony2 and Doctrine2.
Don't hesitate to tell us what you think.
http://www.elao.org/symfony-2/doctrine-2/symfony-2-doctrine-2-cheat-sheets.html
I've been
Hello!
I have no prior knowledge about symfony1 or 2. Now I am using CakePHP.
I decided to start learning symfony starting next week, and use it in
production in about 2-3 months.
As I saw, there is already a PR8 of Symfony2.
What do you suggest, shall I start learning Symfony2 directly,
Hello everyone,
I must say that this might be a stupid question, but I am stuck with
installing MediaBundle in Symfony2. I am using xampp on windows7 and Cygwin
as command line console.
According to the documentation on installation I must run this command *php
kooqit/console
Hi,
I’m using ahDoctrineEasyEmbeddedRelationsPlugin for an
admin form with the code that follow. In the creation of a company
(empresa), the relation many to many is saved ok, nut in th edition,
the blank form always is validated, or tries to input in the tababase
null values, anyone
Hi,
Please I would like to know if there is any way to use symfony 1.4.9
with CrystalRepots,thanks in advance
--
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
That did the trick. Huge thanks! :D And duly noted about the correct path
going forward after PR8.
--
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
Hola a todos,
He estoy intentando integrar PHPUnit 3.5 con algún IDE pero no soy
capaz por mucha información que busco.
Cuando ejecuto el PHPUnit directamente me funciona con phpunit -c
app/ por lo cual dudo que se deba a un error de PHPUnit o versión
Si alguien conoce de algún sitio donde
Very odd indeed. Whatever it was, I'm glad the problem vanished on its own.
:)
--
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
why don't you pass to the route an id of 0(assuming the id is an
index/incremental value), and from the generated route e.g. /user/0 replace
the last part in javascript. you would need only some kind of checking in
the action for the zero id.
hope it somehow helps.
2011/3/27 Dennis
Thank you for suggestion.
I have just installed gedit, but I couldn't find the plugin for step
by step debugging.
You have the link to the plugin?
On Mar 24, 9:45 pm, Alex Pilon alex.pi...@gmail.com wrote:
I dont know the answer to your question, but on linux you can get a ton of
plugins for
In English.
---
Dear all,
I try to use sfWidgetFormSelectDoubleList in order to save/edit some
data.
My model :
A group of permission contains some permissions and a permission is
associated to many group of permission (Relation Many-to-Many)
Greetings,
I'm having some trouble with doctrine:generate:entities in Symfony2.0/
PR7
(same in PR8).
Every time I run doctrine:generate:entities (type: annotation) an
additional
entity is created in /Entity. For /Entity/User.php I get an
additional
/Entity/~User.php.
The problem is: ~User.php
I've experienced the same problem. It simply refuses to use template
in the app/views/FrameworkBundle/Exception directory.
I've done all of the things you've done as well and the problem
persists. My guess is that this is a bug, they've changed the location
that Symfony2 is looking for the
Check this link out: http://tinyurl.com/68fnrgt
On Fri, Mar 25, 2011 at 09:16, Stanley stanley.darm...@gmail.com wrote:
Thank you for suggestion.
I have just installed gedit, but I couldn't find the plugin for step
by step debugging.
You have the link to the plugin?
On Mar 24, 9:45 pm,
Doesn't work either. I doubt that the type of authentication plays a role
here the question is why this authentication token is not set as it is
apparently required for is_granted() to work.
Regards,
Dennis
--
If you want to report a vulnerability issue on symfony, please send it to
Again this would be hacking around the issue rather than solving it. I've
already removed the requirement so I can use Jordi's approach for the time
being but that's not really a solution either.
--
If you want to report a vulnerability issue on symfony, please send it to
security at
I had written a JS route implementation for symfony 1.4 which should work
with minor modifications for Symfony2.
If it helps someone, the code is here (and it's actually unit-tested :)):
https://gist.github.com/3d39cf593ceb1ea63713
See the tests for how to use it.
Kind regards,
Johannes
On
On 27 mars 2011, at 11:12, seven seven wrote:
Hello everyone,
I must say that this might be a stupid question, but I am stuck with
installing MediaBundle in Symfony2. I am using xampp on windows7 and Cygwin
as command line console.
According to the documentation on installation I must run
i would go with symfony2 for sure
--
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
Hi,
I have a simple query like select name,owner from tests where id in
(1,2,3) .
Please let me know how to execute this in my action class. I have gone
through the symfony1.4 documentation but couldn't find answer.
Please help.
Thanks,
Sunil.
--
If you want to report a vulnerability issue on
Most of the time you want to submit an element to an page, maybe a
value in a li, an ID of a div or something else.
What I do is generate the url for each element and put in into a
data-url attribute so I can just access that. May be some overhead to
generate urls for all the items but I don't
I have an existing PHP project that uses Doctrine 2.0, and I want to
write a small web application to manage the entities in this existing
project. However releases mostly assume they'll be the bases for a new
project. Thus, here is my question:
If I have an existing project, already using
hi guys ,, i nedd help with this probleme
i'am making now a new form ,,i create a new class named loginform in
the directory lib/form ,,i create a loginSuccess and i create a new
methode in file action named executelogin ,,,so here is the
problem,,,
when i open my page an error occured
Fatal
Hi,
2011/3/28 Pepijn pepijn.ko...@gmail.com:
I have an existing PHP project that uses Doctrine 2.0, and I want to
write a small web application to manage the entities in this existing
project. However releases mostly assume they'll be the bases for a new
project. Thus, here is my question:
Anyone at all?
On Mar 10, 9:34 am, mavinman jnan...@gmail.com wrote:
Anyone?
On Mar 7, 2:50 pm,mavinmanjnan...@gmail.com wrote:
I would like to create a filter that runs before the routing system
does and am wondering if this is possible.
Specifically, I would like to parse and
Hello,
I am currently setting up my production server in order to support sf2
framework. My question is regarding the PHP accelerators, I have already
installed *eaccelerator *(http://eaccelerator.net/) on my server but I still
get the *Install and enable a PHP accelerator like APC (highly
On 28.03.2011 16:56, seven seven wrote:
Hello,
I am currently setting up my production server in order to support sf2
framework. My question is regarding the PHP accelerators, I have already
installed *eaccelerator *(http://eaccelerator.net/) on my server but I
still get the /Install and
Hey Moises-
Yes, you're right that the task currently creates a routing.yml file.
The issue is that the annotation routing is a feature only available
if you're using the FrameworkExtraBundle (it's not *actually* a core
feature). If you have that bundle installed and configured, then you'd
be
Hi Srivatsa-
You cannot setup pagination using this method. You need to setup the
pagination as you normally would - you can't make use of the
sfPropelRoute functionality with the pager as far as I know.
Thanks!
On Mar 28, 4:04 am, Srivatsa Prasad srivatsa6...@gmail.com wrote:
Hi All,
In my
Le 25/03/2011 14:30, Carl a écrit :
I've experienced the same problem. It simply refuses to use template
in the app/views/FrameworkBundle/Exception directory.
I've done all of the things you've done as well and the problem
persists. My guess is that this is a bug, they've changed the location
Le 28/03/2011 17:04, Jordi Boggiano a écrit :
On 28.03.2011 16:56, seven seven wrote:
Hello,
I am currently setting up my production server in order to support sf2
framework. My question is regarding the PHP accelerators, I have already
installed *eaccelerator *(http://eaccelerator.net/) on my
Hi,
I¹ve started using symfony 2 with eaccelerator and ran in some very time
consuming trouble with Doctrine 2 using annotations.
You¹ll find more info at:
http://wildlyinaccurate.com/eaccelerator-and-doctrine-2/
So eaccelerator didn¹t work out for me I deinstalled eaccelerator and
installed
Thanks !
Good to know !
I will check everything and install APC if still not working ...
On Mon, Mar 28, 2011 at 6:04 PM, Jordi Boggiano j.boggi...@seld.be wrote:
On 28.03.2011 16:56, seven seven wrote:
Hello,
I am currently setting up my production server in order to support sf2
please i need help please help me iam really stack
2011/3/28 mohamed sabri ben sassi mohamedsabri.bensa...@gmail.com
hi guys ,, i nedd help with this probleme
i'am making now a new form ,,i create a new class named loginform in
the directory lib/form ,,i create a loginSuccess and i create a
Hi there,
On Monday, March 28, 2011 4:25:26 PM UTC+2, mohamed sabri ben sassi wrote:
i'am making now a new form ,,i create a new class named loginform in
the directory lib/form
Are you extending any class. I'm not quite sure which form has to be
extended!
Oh, and please have a loog at
On Monday 28 Mar 2011 14:15:37 sunny4sfony wrote:
I have a simple query like select name,owner from tests where id in
(1,2,3) .
Please let me know how to execute this in my action class. I have gone
through the symfony1.4 documentation but couldn't find answer.
Welcome [?]
2011/3/25 Alfonso Martínez Arias fonsyma.poke...@gmail.com
Congrats, for a excelent work.
I would like to form a part of this group.
Thank you.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this
Hi Carlos, thanks for answering. I read that docs before asking here,
indeed. [?]
I already solve my problem. What I did to work around this issue was to set
a default_target_path to
a route named /loginredirect
that route calls to a controller named similar loginRedirectAction()
There I create
Maybe you haven't set your security.yml properly?
Here is mine, hope this help:
security:
encoders:
Comercio\PulperiaBundle\Entity\Cliente:
algorithm: sha512
encode-as-base64: true
iterations: 10
providers:
main:
entity: {
Le 28/03/2011 15:12, Dennis Jacobfeuerborn a écrit :
Doesn't work either. I doubt that the type of authentication plays a
role here the question is why this authentication token is not set
as it is apparently required for is_granted() to work.
Regards,
Dennis
You cannot use is_granted when
It's gone of the api.symfony-reloaded.org/master documentation. I see
it here now:
http://api.symfony.com/2.0/Symfony/Component/Form/EntityChoiceField.html
I take it the symfony-reloaded one is no longer being maintained. It
might be a good idea to take that site down if that's the case.
no the problem is not with user wright now ,,the problem that he is not
making my form
2011/3/28 Sebastian Göttschkes sebastian.goettsch...@googlemail.com
Hi there,
On Monday, March 28, 2011 4:25:26 PM UTC+2, mohamed sabri ben sassi wrote:
i'am making now a new form ,,i create a new class
Ok so if you hand fine object permissions over the ACL (which is quite well
done).
I understand the process by which one can add permissions, check
permissions.
How does one retrieve the user's objects (i.e. get all the users comments)?
Another example would be in a sales environment where
+1 Symfony2.
If you start studying hard, you could easily get the necessary knowledge in
1 month.
I suggest 3 hours a day at least.
To help you out deciding, I must remark some point:
S1 has some good features like generating forms, and CRUD files and
directories in one command
(you have to
On 3/28/11 10:36 PM, Roger Webb wrote:
It's gone of the api.symfony-reloaded.org/master documentation. I see
it here now:
http://api.symfony.com/2.0/Symfony/Component/Form/EntityChoiceField.html
I take it the symfony-reloaded one is no longer being maintained. It
might be a good idea to
+1 Thomas' answer
2011/3/28 Thomas Rabaix thomas.rab...@gmail.com
On 27 mars 2011, at 11:12, seven seven wrote:
Hello everyone,
I must say that this might be a stupid question, but I am stuck with
installing MediaBundle in Symfony2. I am using xampp on windows7 and
Cygwin
as
I have the same issue.
In the old days (S1) you had to extend the base entity class, so when
regenerating/updating your schema, your custom code remained intact.
Now, if you regenerate the entity, it will append the new code to the end of
the file.
I hate it, but it is ok for me now.
2011/3/28
About your issue, that is a unix behaviour, the ~user.php file is a backup
file.
I get those ~*.* files whenever I delete a file.
2011/3/28 oscar balladares liebegr...@gmail.com
I have the same issue.
In the old days (S1) you had to extend the base entity class, so when
I didn't get you [?]
Do you need the schema for that database requirements? or do you need the
code
to do it so in the admin application?
2011/3/25 PM tommymo...@gmail.com
Hi,
I'm new at symfony and im trying to do an admin that, besides the
creation/edition/deletion of data for the main
That's what I suspect but the question is how I got out of the scope of a
firewall?
security:
encoders:
Symfony\Component\Security\Core\User\User:
algorithm: sha1
encode-as-base64: false
iterations: 1
role_hierarchy:
ROLE_ADMIN:
Notice are not errror, nor Warnings
The severity level is very low, it is not even something that would break
your project.
Just check that you have uncoment the notice display commented in your
php.ini
If errors and warining and notices are not configured to be displayed in
your php.ini then
Is it maybe due to ACL heriarchy ?
I suggest you to try to inverse the ACL like:
access_control:
- { path: /.*, roles: ROLE_USER }
- { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
What I notice is that /*. match /login so they collide.
2011/3/28 Dennis Jacobfeuerborn
Hi everyone. [?]
I would like to implement something like the url_for() helper of S1 on S2.
I've been reading Twig docs, they have macros to declare some functions,
I could easily implement one to achieve a a/a tag with Javascript
embedded
to simulate a PUT/DELETE button.
But on S1, the
Hi, this is the best security tutorial for S2 I have read.
http://www.dobervich.com/2011/03/21/symfony2-blog-application-tutorial-part-v-intro-to-security/
2011/3/23 Vincent Lechemin vincent.leche...@gmail.com
Hi,
On Wed, Mar 23, 2011 at 4:34 PM, Sergi sergi.arger...@gmail.com wrote:
On Monday, March 28, 2011 11:24:32 PM UTC+2, Matador wrote:
Is it maybe due to ACL heriarchy ?
I suggest you to try to inverse the ACL like:
access_control:
- { path: /.*, roles: ROLE_USER }
- { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
What I notice is that /*.
Symfony2 is definitely stable enough to start a site with. I've had
one running since PR6. You must, however, keep up with the updates.
Each time I've updated I've had to spend about a half hour or so
updating the things that have changed. A little change in the
configuration here, they renamed
If your route is:
my_route:
pattern: /my/route
defaults { _controller: MyBundle:MyController:doSomething }
you would use path('my_route') to get a relative URL or simply
url('my_route') to get a fully qualified URL.
If you're using a slug:
my_route:
/my/route/{some_param}
You'd do
What about removing the login path??
access_control:
- { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
Symfony should grant anonymous access to the login path by default.
Im interested in this issue, I think this is a common escenario like making
the site's homepage,
the
Hi Roger thanks for anwering, but I must say I misstyped the helper,
the actually helper I meant is link_to.
Sorry, my fault. [?]
It is an a/a html tag that has an embedded form that post its data when
the event OnClick is triggered from the a tag.
I will repost this question :D
2011/3/28
The problem was the security: false for the login firewall.
This allows the user to visit the login page but because no security context
is established you cannot use is_granted() anywhere on that page.
If you want to do so you have to set security to true and then explicitly
allow anonymous
Hi,
I'm embarking on a project where I require one URL to provide multiple
formats of a document. The document should be served depending on the
Accept field of the HTTP header. HTML or RDF. I know this can be
done using apache mod_rewrite.
Just want to know if this functionality is supported
Good tip. I'll save it for further implementations.
Regards.
2011/3/28 Dennis Jacobfeuerborn djacobfeuerb...@gmail.com
The problem was the security: false for the login firewall.
This allows the user to visit the login page but because no security
context is established you cannot use
The documentation for the FrameworkExtraBundle seems to be outdated so I'm
struggling to get it to work.
In the config I put:
sensio_framework_extra: ~
And over one of my controllers I added:
/**
* @extra:Route(/, name=home)
*/
public function indexAction() {
When I call the
Right now I believe only html and xml responses are parsed for ESI
tags:
In the Esi class:
public function __construct(array $contentTypes = array('text/html',
'text/xml', 'application/xml'))
{
$this-contentTypes = $contentTypes;
}
Why not JSON? Since JSON is automatically escaped I assume
Even I have problems with ODM
src/MiEmpresa/MiPrimerNOSQLBundle/Document/Personas.php
?php
/**
* Personas Document
*/
namespace MiEmpresa\MiPrimerNOSQLBundle\Document;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ODM\MongoDB\PersistentCollection;
/**
Hi,
Thank you, you saved me a lot of time.
On Mon, Mar 28, 2011 at 8:38 PM, weaverryan weaverr...@gmail.com wrote:
Hi Srivatsa-
You cannot setup pagination using this method. You need to setup the
pagination as you normally would - you can't make use of the
sfPropelRoute functionality with
OK thanks ! Hmmm so far I was developing/testing all my projects with APC on
my localhost, but when moving to my current production server I had already
installed the eAccelerator (used for an old project) and I was about to make
an update.
Thanks allot for letting me know, as I don't have to go
So far I have been using session_start() for starting the session.
What is the way to start the session using symfony1.4 libraries ? Also
please point to the documentation on managing sessions, if available.
Thanks
--
If you want to report a vulnerability issue on symfony, please send it to
89 matches
Mail list logo