Author: ringhio
Date: 2010-04-01 00:35:47 +0200 (Thu, 01 Apr 2010)
New Revision: 28942
Modified:
doc/branches/1.4/jobeet/it/21.markdown
Log:
[doc-it][1.4] Missing orm dependent code
Modified: doc/branches/1.4/jobeet/it/21.markdown
===================================================================
--- doc/branches/1.4/jobeet/it/21.markdown 2010-03-31 22:23:39 UTC (rev
28941)
+++ doc/branches/1.4/jobeet/it/21.markdown 2010-03-31 22:35:47 UTC (rev
28942)
@@ -345,15 +345,19 @@
rimuovere il token CSRF:
[php]
- // plugins/sfJobeetJob/lib/form/JobeetJobForm.class.php
+<propel>
+ // plugins/sfJobeetPlugin/lib/form/JobeetJobForm.class.php
class JobeetJobForm extends BaseJobeetJobForm
+</propel>
+<doctrine>
+ // plugins/sfJobeetPlugin/lib/form/doctrine/PluginJobeetJobForm.class.php
+ abstract PluginJobeetJobForm extends BaseJobeetJobForm
+</doctrine>
{
- public function __construct(BaseObject $object = null, $options =
array(), $CSRFSecret = null)
+ public function configure()
{
- parent::__construct($object, $options, false);
+ $this->disableLocalCSRFProtection();
}
-
- // ...
}
Dopo aver fatto questa modifica, puliamo la cache e riproviamo lo stesso
@@ -471,7 +475,12 @@
get('/fr/')->
with('view_cache')->isCached(true, false)->
+<propel>
createJob(array('category_id' =>
$browser->getProgrammingCategory()->getId()), true)->
+</propel>
+<doctrine>
+ createJob(array('category_id' =>
Doctrine::getTable('JobeetCategory')->findOneBySlug('programming')->getId()),
true)->
+</doctrine>
get('/fr/')->
with('view_cache')->isCached(true, false)->
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.