Re: [symfony-users] Re: Is there any way to see all the functions that have been executed?

2010-02-12 Thread Javier Garcia

On 02/11/2010 10:02 PM, Stéphane wrote:

So you must have xdebug installed to have a usable stack trace.



I installed xdebug. I tried to follow the way the app is executed 
using Step into/over/out in NB, but i find _very difficult and tedious_ 
to follow all the way since send the request till it finishes. It would 
be easier if i know ALL the functions and lines (with the file which 
belongs to) that are executed during that process.


Javi


--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] Edit form with a plain text input + save action : incorrect routing under Apache

2010-02-12 Thread NOOVEO - Christophe Brun
Autoreply to this post, in case the tip could help other developpers stuck on 
this. 

I eventually gained access to the Apache logs on the sever and spotted this 
line : 
[Fri Feb 12 09:52:05 2010] [error] [client 193.251.184.33] ModSecurity: Access 
denied with code 501 (phase 2). Pattern match ^(?:ht|f)tp:/ at 
ARGS:phrase_jour[lien]. [file 
/etc/modsecurity/modsecurity_crs_42_tight_security.conf] [line 32] [id 
950117] [msg Remote File Inclusion Attack] [severity CRITICAL] [hostname 
nooveo.atelierjmd.fr] [uri /backend_dev.php/phrasejour/1] [unique_id 
S3UWtVPzFKkAAEnVLsoL]

After some search on the Web, this bug seems to be related to the Apache + 
mod_security combination, and to the rules used by this firewall. Some 
references here if needed : 

http://www.linuxquestions.org/questions/linux-server-73/apache-modsecurity-fixing-false-positives-613609/
http://beginlinux.com/blog/2009/05/getting-started-with-modsecurity/
http://www.mighty-studio.net/wp-content/uploads/2008/12/securiser-les-applications-web-de-l-entreprise.pdf
The later for french speakers. 

Regards, 
CB


-Message d'origine-
De : symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] De 
la part de NOOVEO - Christophe Brun
Envoyé : mardi 9 février 2010 17:22
À : symfony-users@googlegroups.com
Objet : [symfony-users] Edit form with a plain text input + save action : 
incorrect routing under Apache

I'm working on the backend side of a web application. The backend has been 
generated via doctrine:generate-admin. I have a simple objet with a plain url 
attribute declared as : 
url: { type: string(128) }
in schema.yml. 

On the edit page, if the user type any text not begining by 'http:/' and clicks 
the SAVE button, the data is saved and the user is redirected to
: 
http://mysite/backend.php/mymodule/1/edit
That's OK. 

But if he types and saves a text begining by 'http:/', no data is saved and he 
is redirected to : 
http://mysite/backend.php/mymodule/1
This incorrect route launches a 'Method Not Implemented, POST to
/backend.php/mymodule/1 not supported.' error. 

This behaviour shows under Linux (Debian) + Apache. On my local PC (windows XP 
+ Apache), I don't have such errors. 
I don't have a single idea about a way to fix that... 


--
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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.



-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: Is there any way to see all the functions that have been executed?

2010-02-12 Thread Alvaro Videla
try:

http://cn.php.net/debug_backtrace

Xdebug is not required for that function



On Feb 12, 2010, at 5:11 PM, Javier Garcia wrote:

 On 02/11/2010 10:02 PM, Stéphane wrote:
 So you must have xdebug installed to have a usable stack trace.
 
 
 I installed xdebug. I tried to follow the way the app is executed using 
 Step into/over/out in NB, but i find _very difficult and tedious_ to follow 
 all the way since send the request till it finishes. It would be easier if i 
 know ALL the functions and lines (with the file which belongs to) that are 
 executed during that process.
 
 Javi
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.
 

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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] UML diagram of Symfony

2010-02-12 Thread Benoit Montuelle
Hi,

I found this
http://trac.symfony-project.org/attachment/wiki/WikiStart/symfony_uml.zip .
 It has 1 year old, so I think it is 1.0 or 1.2 framework.



2010/2/12 Maxim Tsepkov azrael@gmail.com

 Does anyone have any sort of UML diagram of Symfony internals, interfaces,
 etc.
 It would be very helpful, if there is exist step-by-step execution scheme.

 --
 You received this message because you are subscribed to the Google Groups
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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] FREE ticket to sflive2010

2010-02-12 Thread Lee Bolding
Yes, that's right.

Unfortunately, I'm snowed under at work, so can't go.

If anybody would like my ticket instead give me a shout and you can have mine

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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] url_for with extra parameters

2010-02-12 Thread HAUSa
I'm using the url_for helper to generate a link in my template. The
link has to go to an object detail page (sfPropelRoute) and has send
some GET parameters as well.

This is my route:
article_route:
  url: /:sf_culture/article/:id/:slug/*
  class:   sfPropelRoute
  options: { model: Article, type: object }
  param:   { module: article, action: show }
  requirements:
sf_method:  [get, post]
sf_culture: (?:en|nl|de|fr)

The correct use for an object detail page is url_for('article_route',
$oArticle) in which $oArticle ofcourse is the correct article object.
But not I have to create some additional GET parameter which, as far
as I can see, is not possible with this helper. I tried
url_for('article_route?param=test', $oArticle), but then I receive an
exception.
I also checked the API to see if I could use a third parameter, but
that also is not possible.

I know I could use url_for('@article_route?id=' . $oArticle-getId() .
'slug=' . $oArticle-getSlug() . 'param=test'), but that would give
me quite some work if I wanted to change the route (an extra object
parameter in the url for example).

Has someone found a workaround?

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: url_for with extra parameters

2010-02-12 Thread wissl
In UrlHelper.php of symfony core lib there is a list of optional
parameters supported by link_to():

 * bOptions:/b
 * - 'absolute' - if set to true, the helper outputs an absolute URL
 * - 'query_string' - to append a query string (starting by ?) to the
routed url
 * - 'anchor' - to append an anchor (starting by #) to the routed url
 * - 'confirm' - displays a javascript confirmation alert when the
link is clicked
 * - 'popup' - if set to true, the link opens a new browser window
 * - 'post' - if set to true, the link submits a POST request instead
of GET (caution: do not use inside a form)
 * - 'method' - if set to post, delete, or put, the link submits a
request with the given HTTP method instead of GET (caution: do not use
inside a form)

So query_string should be the parameter that will fit your needs. But
as the comments are quite incomplete I do not know if this is working
with url_for()... You should be able to write your own my_url_for()
function though by adapting the solution of link_to().


On 12 Feb., 11:49, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
 I'm using the url_for helper to generate a link in my template. The
 link has to go to an object detail page (sfPropelRoute) and has send
 some GET parameters as well.

 This is my route:
 article_route:
   url:     /:sf_culture/article/:id/:slug/*
   class:   sfPropelRoute
   options: { model: Article, type: object }
   param:   { module: article, action: show }
   requirements:
     sf_method:  [get, post]
     sf_culture: (?:en|nl|de|fr)

 The correct use for an object detail page is url_for('article_route',
 $oArticle) in which $oArticle ofcourse is the correct article object.
 But not I have to create some additional GET parameter which, as far
 as I can see, is not possible with this helper. I tried
 url_for('article_route?param=test', $oArticle), but then I receive an
 exception.
 I also checked the API to see if I could use a third parameter, but
 that also is not possible.

 I know I could use url_for('@article_route?id=' . $oArticle-getId() .
 'slug=' . $oArticle-getSlug() . 'param=test'), but that would give
 me quite some work if I wanted to change the route (an extra object
 parameter in the url for example).

 Has someone found a workaround?

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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] about secure login page

2010-02-12 Thread prakash saud
hi,
 i am new to symfony framework. I was going through the practical
symfony tutoril , i came through the secure the job page section of
six day, i added the  retrieveActiveJob() method in
lib/model/doctrine/JobeetJobTable.class.php file  and added the
line  method_for_query: retrieveActiveJob in apps/frontend/config/
routing.yml  as given in tutorial but it not working it is giving
error Unknown method JobeetJobTable::getActiveJobs in the home page
and the expired job is also displaying, can anyone help?


-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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] Hi guys! Im looking for 2x PHP Symfony developers full time to work remotely for a UK company!

2010-02-12 Thread Bravo
If you are interested please email me at berna...@bravomedia.co.uk

Many thanks

Bernardo

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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] doctrine: build database with constraints from schema.yml

2010-02-12 Thread Maxime Lepreux
Hi.

French developper, I 'm new to symphony.

Trying to understand how doctrine works, i've been using
doctrine:commands (buid-schema or  build-model/build-sql)

environment :
WAMPSERVER (Apache 2, PHP 5, Mysql 5)
Symfony 1.4 stable
db generated via MYSQL Workbench

CREATE  TABLE IF NOT EXISTS `myjobsearch`.`table1` (
  `id` INT NOT NULL AUTO_INCREMENT ,
  `field01` VARCHAR(45) NOT NULL ,
  PRIMARY KEY (`id`) )
ENGINE = InnoDB;

CREATE  TABLE IF NOT EXISTS `myjobsearch`.`table2` (
  `id` INT NOT NULL ,
  `field01` VARCHAR(45) NOT NULL ,
  PRIMARY KEY (`id`) ,
  INDEX `fk_table2_table1` (`id` ASC) ,
  CONSTRAINT `fk_table2_table1`
FOREIGN KEY (`id` )
REFERENCES `myjobsearch`.`table1` (`id` )
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;

on first attempt :
- first i've used build-schema from mysql to get a correct schema.yml
file

Table1:
  connection: doctrine
  tableName: table1
  columns:
id:
  type: integer(4)
  fixed: false
  unsigned: false
  primary: true
  autoincrement: true
field01:
  type: string(45)
  fixed: false
  unsigned: false
  primary: false
  notnull: true
  autoincrement: false
  relations:
Table2:
  local: id
  foreign: id
  type: many
Table2:
  connection: doctrine
  tableName: table2
  columns:
id:
  type: integer(4)
  fixed: false
  unsigned: false
  primary: true
  autoincrement: false
field01:
  type: string(45)
  fixed: false
  unsigned: false
  primary: false
  notnull: true
  autoincrement: false
  relations:
Table1:
  local: id
  foreign: id
  type: one

Question 1: why has doctrine generated a one-to-many relation instaed
of one-to-one?

Going on ,ignoring this question, using build-model command:.

the result is that BaseTable1 has in setup() :
...
 $this-hasMany('Table2', array(
 'local' = 'id',
 'foreign' = 'id'));

has many()  not matching the db !


on second attempt :
modifiing schema.yml on relation table1-table2 to match on db model
Table1:
...
  relations:
Table2:
  local: id
  foreign: id
  type: many
Table2:
...
  relations:
Table1:
  local: id
  foreign: id
  type: one

and rebuild model files : great ! i've got to hasone() on both base
classes.

so now , using build-sql command  to generate schema.sql:

CREATE TABLE table1 (id INT AUTO_INCREMENT, field01 VARCHAR(45) NOT
NULL, PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE table2 (id INT, field01 VARCHAR(45) NOT NULL, PRIMARY
KEY(id)) ENGINE = INNODB;


Question 2 :h... Dude, were's my FK constraint ?

this  tiny example demonstrates i definitly don't understand
doctrine( or yaml) works
is there any tuto explaining basics of yaml syntax for relations
( 1-1, 1-n, n-n)
with WORKING db-build-schema-build-model-build-sql-insert sql ?
thanks

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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] doctrine schema.yml

2010-02-12 Thread Maxime Lepreux
Hi.

French developper, I 'm new to symphony.

Trying to understand how doctrine works, i've been using
doctrine:commands (buid-schema or  build-model/build-sql)

environment :
WAMPSERVER (Apache 2, PHP 5, Mysql 5)
Symfony 1.4 stable
db generated via MYSQL Workbench

CREATE  TABLE IF NOT EXISTS `myjobsearch`.`table1` (
  `id` INT NOT NULL AUTO_INCREMENT ,
  `field01` VARCHAR(45) NOT NULL ,
  PRIMARY KEY (`id`) )
ENGINE = InnoDB;

CREATE  TABLE IF NOT EXISTS `myjobsearch`.`table2` (
  `id` INT NOT NULL ,
  `field01` VARCHAR(45) NOT NULL ,
  PRIMARY KEY (`id`) ,
  INDEX `fk_table2_table1` (`id` ASC) ,
  CONSTRAINT `fk_table2_table1`
FOREIGN KEY (`id` )
REFERENCES `myjobsearch`.`table1` (`id` )
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;

on first attempt :
- first i've used build-schema from mysql to get a correct schema.yml
file

Table1:
  connection: doctrine
  tableName: table1
  columns:
id:
  type: integer(4)
  fixed: false
  unsigned: false
  primary: true
  autoincrement: true
field01:
  type: string(45)
  fixed: false
  unsigned: false
  primary: false
  notnull: true
  autoincrement: false
  relations:
Table2:
  local: id
  foreign: id
  type: many
Table2:
  connection: doctrine
  tableName: table2
  columns:
id:
  type: integer(4)
  fixed: false
  unsigned: false
  primary: true
  autoincrement: false
field01:
  type: string(45)
  fixed: false
  unsigned: false
  primary: false
  notnull: true
  autoincrement: false
  relations:
Table1:
  local: id
  foreign: id
  type: one

Question 1: why has doctrine generated a one-to-many relation instaed
of one-to-one?

Going on ,ignoring this question, using build-model command:.

the result is that BaseTable1 has in setup() :
...
 $this-hasMany('Table2', array(
 'local' = 'id',
 'foreign' = 'id'));

has many()  not matching the db !


on second attempt :
modifiing schema.yml on relation table1-table2 to match on db model
Table1:
...
  relations:
Table2:
  local: id
  foreign: id
  type: many
Table2:
...
  relations:
Table1:
  local: id
  foreign: id
  type: one

and rebuild model files : great ! i've got to hasone() on both base
classes.

so now , using build-sql command  to generate schema.sql:

CREATE TABLE table1 (id INT AUTO_INCREMENT, field01 VARCHAR(45) NOT
NULL, PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE table2 (id INT, field01 VARCHAR(45) NOT NULL, PRIMARY
KEY(id)) ENGINE = INNODB;


Question 2 :h... Dude, were's my FK constraint ?

this  tiny example demonstrates i definitly don't understand
doctrine( or yaml) works
is there any tuto explaining basics of yaml syntax for relations
( 1-1, 1-n, n-n)
with WORKING db-build-schema-build-model-build-sql-insert sql ?
thanks

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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] CSRF attack detected when using sfGuardDoctrinePlugin

2010-02-12 Thread jean-christophe zulian
Hi list,

After setting up the sfGuardDoctrine plugin for our project we created a login 
page in the same fashion as it is done on the jobeet tutorial.

When coming on the login page for the first time and entering username/password 
the login procedure works fine. If we logout and enter the username/password 
again we get a 'CSRF attack' message displayed above the form. This message 
will be displayed until we refresh the page.

We have tried to investigate a bit on why this was happening but couldn't 
figure it out.

Would anybody have any idea about why this is happening?

Many thanks,
Jean-christophe

-- 
Liip AG // Agile Web Development // T +41 26 422 25 11
CH 1700 Fribourg // GPG 0xFC648C61 // www.liip.ch


signature.asc
Description: PGP signature


[symfony-users] How can i display the register link, in my login page using SfGuardExtraPlugin?

2010-02-12 Thread Fruitlover
Hi,

How can i display the register link, in my login page using
SfGuardExtraPlugin?

My login and logout was came from sfGuard and after installing the
plugin, i enable the module and follow its 1.2 readme, it seems that
the register link as well as the plugin cannot be displayed..

do i missed something in setting.yml?

thanks in advanced

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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] Apostrophe 1.0 Stable Release: a mature CMS for Symfony!

2010-02-12 Thread Nicolas Ippolito
Hi,

Congratulations!

It's a wonderful project!

Nico

2010/2/12 Tom Boutell t...@punkave.com

 We have labored long and hard to prepare for the 1.0 release of
 Apostrophe. As we said before, it has been stable and in use for a
 long time now, but we wanted to mark a moment in time with an official
 release.

 Probably the easiest way to get a feel for Apostrophe is to go to our
 demo site and log in:

 http://demo.apostrophenow.com/

 The user name is “admin” and the password is “demo”. The site's
 content resets at the top of the hour.

 If you want to get your bearings before you you do that, head over to
 the newly revamped Apostrophe site:

 http://www.apostrophenow.com/

 For the very interested, you should consider checking out our
 extensive README which includes an Installation section, an Editor’s
 guide, a Designer’s guide and a Developer’s guide. You can read the
 current README conveniently here:

 http://www.apostrophenow.com/home/readme

 This is the symfony-users list so I'll stick to the highlights from a
 developer's perspective:

 * Robust content slots, ready-built for you. There are rich text,
 image, slideshow, video, button, RSS/Atom feed, PDF and raw HTML slots
 built in.  If you have used Apostrophe before, you know that you can
 add a slot on a page, choose what you want to place and then reorder
 it. New custom slots can also be made for any project.

 * Areas. Areas allow vertical columns of slots to be added in any
 order by any editor of the site. This allows users to compose good-
 looking content without resorting to layout-busting HTML pasting.

 * Slot variants. Sometimes you want to let users pick between
 variations on a common slot without using raw HTML or PHP. For
 instance, what if you wanted to make the background color of a some
 text slots yellow, and some white? In the past that would have
 required two slots. Now, it can just be a selectable variantof the
 same text slot. We really sweated the details on making sure the
 option control was contextual. We hope you appreciate the effort.

 * Engines. Sometimes you want to add content that spans more than one
 page. In Apostrophe you can graft an entire Symfony module into the
 CMS page tree at any point. And you can graft the same module at
 multiple locations, distinguishing between them and providing
 customized behavior if you wish. We already do this for our media
 browser right out of the box so you can see how it works.

 * A task to help you generate new custom slots:

 ./symfony apostrophe:generate-slot-type

 This task will add a new slot type to your site, scaffolding the
 module, the form and the model class.

 * Extensive documentation, including a detailed and up-to-date
 developer's guide as well as documentation for installers, editors and
 front end designers.

 Apostrophe 1.0 is a big achievement and we're excited about it. But it
 is also just the beginning. We hope you have an opportunity to check
 out Apostrophe. We would love to hear from you if you do.

 A note to developers: stable branches of the apostrophePlugin and the
 asandbox project are now available in svn. We are using a 1.3 branch
 for these following the tradition of naming branches after the
 earliest Symfony version with which they are still compatible.

 1.3 stable branch of the plugin:

 http://svn.apostrophenow.org/plugins/apostrophePlugin/branches/1.3

 1.3 stable branch of the sandbox project:

 http://svn.apostrophenow.org/sandboxes/asandbox/branches/1.3

 In addition, we have of course released the new apostrophePlugin on
 the Symfony site:

 http://www.symfony-project.org/plugins/apostrophePlugin

 So you can install apostrophePlugin with plugin:install (be sure to
 read the README, though; it's often easier to start by copying the
 sandbox to your own svn repository with our handy svnforeigncopy tool,
 or just download a tarball of our sandbox).

 Note to veteran pk plugin fans: we have deprecated the old pk plugins,
 all of which were merged into apostrophePlugin. We removed the
 tarballs but left the svn repositories untouched as a courtesy. We
 will take them down eventually but don't want to break anyone's
 existing projects. Still, now is the time to migrate.

 Don't forget our migration notes for pkContextCMSPlugin projects:

 http://trac.apostrophenow.org/wiki/migration

 Thanks for supporting the development of Apostrophe! And if you're
 attending Symfony Live, I (Tom) will be there - be sure to look me up!

 - Tom, Alex, Rick, Geoff, Dan, Jake and John at P'unk Avenue

 --
 You received this message because you are subscribed to the Google Groups
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.



-- 
You received this message because you 

Re: [symfony-users] CSRF attack detected when using sfGuardDoctrinePlugin

2010-02-12 Thread Michał Piotrowski
Hi,

2010/2/11 jean-christophe zulian jean-christophe.zul...@liip.ch:
 Hi list,

 After setting up the sfGuardDoctrine plugin for our project we created a 
 login page in the same fashion as it is done on the jobeet tutorial.

 When coming on the login page for the first time and entering 
 username/password the login procedure works fine. If we logout and enter the 
 username/password again we get a 'CSRF attack' message displayed above the 
 form. This message will be displayed until we refresh the page.

 We have tried to investigate a bit on why this was happening but couldn't 
 figure it out.

 Would anybody have any idea about why this is happening?

 Many thanks,
 Jean-christophe


I have seen a similar problem with Opera browser. In my case it seems
to be browser related.

Path is very simple - login, browse some pages, logout, login. No
problems on Firefox, Chrome, IE8. Warning about CSRF attack shows only
in Opera.

Sigh.

Regards,
Michal

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: Apostrophe 1.0 Stable Release: a mature CMS for Symfony!

2010-02-12 Thread a...@speedypin.com
2nds on the congrats...


Is this a CMS that can be intergrated into an existing symfony
project?

sfSympalPlugin and diemPlugin need to be selected at the beginning
point of starting a projectSucks for those (like me) who have been
developing for more than 1+ years on a current project an need a CMS.

Also would this work with ysfDimensions?

I don't expect these questions to be answered on the fact that you
give the world something great and they ask for more.  I really think
you should be congradulated with What you have done with
apostrophePlugin,... I will read the readme and so on to see if I can
answer these questions myself.


With Best Regards,
Alex Stoneham
(Speedypin LLC)


On Feb 12, 10:20 am, Nicolas Ippolito ippolito.nico...@gmail.com
wrote:
 Hi,

 Congratulations!

 It's a wonderful project!

 Nico

 2010/2/12 Tom Boutell t...@punkave.com

  We have labored long and hard to prepare for the 1.0 release of
  Apostrophe. As we said before, it has been stable and in use for a
  long time now, but we wanted to mark a moment in time with an official
  release.

  Probably the easiest way to get a feel for Apostrophe is to go to our
  demo site and log in:

 http://demo.apostrophenow.com/

  The user name is “admin” and the password is “demo”. The site's
  content resets at the top of the hour.

  If you want to get your bearings before you you do that, head over to
  the newly revamped Apostrophe site:

 http://www.apostrophenow.com/

  For the very interested, you should consider checking out our
  extensive README which includes an Installation section, an Editor’s
  guide, a Designer’s guide and a Developer’s guide. You can read the
  current README conveniently here:

 http://www.apostrophenow.com/home/readme

  This is the symfony-users list so I'll stick to the highlights from a
  developer's perspective:

  * Robust content slots, ready-built for you. There are rich text,
  image, slideshow, video, button, RSS/Atom feed, PDF and raw HTML slots
  built in.  If you have used Apostrophe before, you know that you can
  add a slot on a page, choose what you want to place and then reorder
  it. New custom slots can also be made for any project.

  * Areas. Areas allow vertical columns of slots to be added in any
  order by any editor of the site. This allows users to compose good-
  looking content without resorting to layout-busting HTML pasting.

  * Slot variants. Sometimes you want to let users pick between
  variations on a common slot without using raw HTML or PHP. For
  instance, what if you wanted to make the background color of a some
  text slots yellow, and some white? In the past that would have
  required two slots. Now, it can just be a selectable variantof the
  same text slot. We really sweated the details on making sure the
  option control was contextual. We hope you appreciate the effort.

  * Engines. Sometimes you want to add content that spans more than one
  page. In Apostrophe you can graft an entire Symfony module into the
  CMS page tree at any point. And you can graft the same module at
  multiple locations, distinguishing between them and providing
  customized behavior if you wish. We already do this for our media
  browser right out of the box so you can see how it works.

  * A task to help you generate new custom slots:

  ./symfony apostrophe:generate-slot-type

  This task will add a new slot type to your site, scaffolding the
  module, the form and the model class.

  * Extensive documentation, including a detailed and up-to-date
  developer's guide as well as documentation for installers, editors and
  front end designers.

  Apostrophe 1.0 is a big achievement and we're excited about it. But it
  is also just the beginning. We hope you have an opportunity to check
  out Apostrophe. We would love to hear from you if you do.

  A note to developers: stable branches of the apostrophePlugin and the
  asandbox project are now available in svn. We are using a 1.3 branch
  for these following the tradition of naming branches after the
  earliest Symfony version with which they are still compatible.

  1.3 stable branch of the plugin:

 http://svn.apostrophenow.org/plugins/apostrophePlugin/branches/1.3

  1.3 stable branch of the sandbox project:

 http://svn.apostrophenow.org/sandboxes/asandbox/branches/1.3

  In addition, we have of course released the new apostrophePlugin on
  the Symfony site:

 http://www.symfony-project.org/plugins/apostrophePlugin

  So you can install apostrophePlugin with plugin:install (be sure to
  read the README, though; it's often easier to start by copying the
  sandbox to your own svn repository with our handy svnforeigncopy tool,
  or just download a tarball of our sandbox).

  Note to veteran pk plugin fans: we have deprecated the old pk plugins,
  all of which were merged into apostrophePlugin. We removed the
  tarballs but left the svn repositories untouched as a courtesy. We
  will take them down eventually but don't want to 

[symfony-users] Re: FREE ticket to sflive2010

2010-02-12 Thread a...@speedypin.com
This would be sweet if I could muster up $1500 for the airfair and
another $500 for expenses...

On Feb 12, 2:46 am, Lee Bolding l...@leesbian.net wrote:
 Yes, that's right.

 Unfortunately, I'm snowed under at work, so can't go.

 If anybody would like my ticket instead give me a shout and you can have mine

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: Apostrophe 1.0 Stable Release: a mature CMS for Symfony!

2010-02-12 Thread Alexandru-Emil Lupu
I had the same peoblem but i have fixed it with a plugin gaved by of my
friends...
If you need a cms mandatory, you could try something barbaric...
Start a new sf project, install the cms plugin, then copy in your new
project the form/doctrine, lib/doctrine and other lib dirs, then your apps
folder, plugins/* directory contents, web/ with the mention that you should
rename the index.php with other name. Ultimatelly, you'd need to copy.  The
config folder, which i think is the trickiest.. because you'd have to modify
each file...
Of course, this is a manual override of the sympal or diem... i do not about
apostrophe...

Have a great day!
Alecs

sent via htc magic

On Feb 12, 2010 11:20 PM, a...@speedypin.com a...@speedypin.com wrote:

2nds on the congrats...


Is this a CMS that can be intergrated into an existing symfony
project?

sfSympalPlugin and diemPlugin need to be selected at the beginning
point of starting a projectSucks for those (like me) who have been
developing for more than 1+ years on a current project an need a CMS.

Also would this work with ysfDimensions?

I don't expect these questions to be answered on the fact that you
give the world something great and they ask for more.  I really think
you should be congradulated with What you have done with
apostrophePlugin,... I will read the readme and so on to see if I can
answer these questions myself.


With Best Regards,
Alex Stoneham
(Speedypin LLC)


On Feb 12, 10:20 am, Nicolas Ippolito ippolito.nico...@gmail.com
wrote:

 Hi,   Congratulations!   It's a wonderful project!   Nico 
 2010/2/12 Tom Boutell t...@punkave.com

   We have labored long and hard to prepare for the 1.0 release of  
Apostrophe. As we said bef...
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com


  .   For more options, visit this group at  
http://groups.google.com/group/symfony-users?hl=e...

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: FREE ticket to sflive2010

2010-02-12 Thread Alexandru-Emil Lupu
Sorry! I can't get there even with a free ticket... i am in big debts as
this month i have made some csm courses.  As i am paying from my pocket...
you can imagine...
Maybe i will come in the next sessions...
But thank for open sourcing your ticket :)

sent via htc magic

On Feb 13, 2010 12:00 AM, a...@speedypin.com a...@speedypin.com wrote:

This would be sweet if I could muster up $1500 for the airfair and
another $500 for expenses...

On Feb 12, 2:46 am, Lee Bolding l...@leesbian.net wrote:  Yes, that's
right.   Unfortunately, ...

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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.