Hello,
If you use a form to generate CSRF token, juste put a method="get" attribute in
your form opening tag.
Otherwise I think you could use a specific route with named parameter, and use
a form only to generate and validate the token.
Benoit
-Original Message-
From: Super-OTR.de
Hi,
during the last days I again had the chance to take a look at Symfony2
again. After some search through the mailing list and the
documentation I have some questions that came to my mind and the
answers may be helpful for others, too.
The console script is always located in a specific applicat
The left join with Doctrine works on the Relation defined in the schema.yml
(or not, depending if you're using this way to define your model). In a
doctrine query like this, you need to use that relation name and use the
prefix of the class you're already querying to it. So for example:
model =
c
Hi,
I'm creating my own admin generator with heavy use of AJAX. Every CRUD
action works fine, except with the batch actions. I've tried to use the same
code that is used on the original admin generator but it keeps throwing
"CSRF attack detected". I have a form that wraps a table, with each row
ha
Hello,
is it possible to use the CSRF Protectionf or GET Links ? So its just
another variable /protection/ .
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
I have in my schema:
project:
...
owner: { type: varchar, size: 128, foreignTable:sf_guard_user,
foreignReference: username, required: true, onDelete: cascade }
...
If I include in the unset owner, I have an error.
But if I don't include owner, how I put the owner in the documents.
The user can pu
Hi Paulo,
if you understand portuguese you can check this:
http://augustomorais.wordpress.com/2010/02/01/symfony-cli-colorido-cygwin/
Bye
Augusto Morais
2010/8/30 Paulo Ribeiro
> Hi!
>
> I forgot to mention that in some cases you must follow the steps in
>
> http://www.symfony-zone.com/
Hi,
I have created an object method called getContenidoParcial(). When i
call it, i get the error "Unknown record property / related component
"contenido_parcial" on "Mensaje""
I created the method I say inside the Mensaje class this way:
class Mensaje extends BaseMensaje
{
public func
Hello,
got some problem with understanding what the options "method" and
"type" do in the routing.yml.
Espacially the type:list.
Could some1 explain that to me ?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this mes
You are right but login page is defined in settings.yml, for example:
login_module: sfGuardAuth
login_action: signin
On 30 ago, 07:44, Tom Ptacnik wrote:
> I think you can, because login page is unsecured action in the secured
> app...
>
> On 28 srp, 03:28, Alvaro Ga
Hello.
In my project I've some tables with the doctrine I18N behavior.
When I create the initial migration everything is fine but at the
first change Symfony also add a drop for the table "language" in the
"up" method.
Due there are no model "languages" when I run doctrine:migrate I get
an error
Russ, is it possible to move the plugin to git?
- Jon
On Mon, Aug 30, 2010 at 1:32 AM, Maxim Oleinik wrote:
> > Have you even tried to contribute to the original plugin first?
> > It would be nice if the changes can be made in the original
> sfDoctrine2Plugin instead of having 2 of them.
>
> Rig
Hi!
I forgot to mention that in some cases you must follow the steps in
http://www.symfony-zone.com/wordpress/2009/10/15/colorize-your-windows-console-output/
.
Cheers!
Paulo
On 29 ago, 10:19, Paulo Ribeiro wrote:
> Hello!
>
> for you guys that like me until yesterday had no fun looking at the
I checked out the current PR3 Branch from symfony-sandbox and tried to
build a Form with it (since it didnt work for me with PR2).
My controller contains a register action:
public function registerAction()
{
$user = new User();
$form = new Form('user', $user, $this->conta
This seems to have changed from the tutorial. Try this:
get('router')->generate('register',array()) ?>
On 28 Aug., 12:09, Stephan Ebelt wrote:
> Hello,
>
> I am trying to get the sandbox HelloKernel.php file adopted to the latest HEAD
> of Symfony2 (271b9637). It took a number of things to fix a
Hello,
I am using Symfony Version 1.4.1 together with the
dfDoctrineGuardPlugin.
Everything worked fine out of the box.
My question: How can I make the Email field optional.
I want the users to be able to login without using their email-
address.
Also I want to create new users which don't have em
try JetBrains PhpStorm
--
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.co
this works, thanks. Didnt notice that branch in the first place.
stephan
On Sat, Aug 28, 2010 at 02:49:14PM +0200, Fabien Potencier wrote:
> Use the sandbox PR3 tag.
>
> Fabien
>
> --
> Fabien Potencier
> Sensio CEO - symfony lead developer
> sensiolabs.com | symfony-project.org | fabien.potenci
Hello:
I am trying to paginate a query on a debate with a lot of records.
Paginating the table works fine, but when I add the query, even with a
limit, the script times out. Here is the code:
$query=Doctrine_Query::create()
->select('c.name, d.phone')
->from('company c, companyDetails d')
->where(
Hello:
I am trying to run a query on two tables and paginate the results. My
db is massive and will crash the server if all results are pulled.
sfDoctrinePager seems to limit the results when I just pull straight
from a table, but when I try to set a query it lags and then crashes.
Do I need to put
I got the error reported in subject when tryng to do something like
this:
public function addWithUserQuery (DoctrineQuery $q = null)
{
if (is_null($q))
{
$q = $this->createQuery();
}
$q->leftJoin('sfGuardUser s');
return $q;
}
in a tabl
You mean you are writting HTML within actions ?
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
On Mon, Aug 30, 2010 at 3:18 PM, bibob wrote:
> Hi,
> If I write "return sfView::NONE;" at the end of the function
Hi,
If I write "return sfView::NONE;" at the end of the function, the
problem is solved, but I'm not sure that it is very clean and elegant.
I rather think that I have to rewrite the functions and expurgate all
the HTML instructions from them.
Thank you all for your help.
On 25 août, 19:11, Floria
Hi,
Could you help me about DAY 3, The ORM? After generated the PHP
Classes, they put the codes below that can be manipulated, but how do
I proceed? Should I insert this codes into the class codes? Which
classes?
"The column values of a record can be manipulated with a model object
by using some a
24 matches
Mail list logo