Browse Source

fix error with preview block

Thomas Rabaix 14 năm trước cách đây
mục cha
commit
ea0bba8db5

+ 3 - 4
Model/ModelManagerInterface.php

@@ -108,16 +108,16 @@ interface ModelManagerInterface
 
 
     /**
     /**
      *
      *
-     * @param object
+     * @param object $model
      * @return mixed
      * @return mixed
      */
      */
     function getIdentifierValues($model);
     function getIdentifierValues($model);
 
 
     /**
     /**
-     *
+     * @param string $class
      * @return array
      * @return array
      */
      */
-    function getIdentifierFieldNames($cass);
+    function getIdentifierFieldNames($class);
 
 
     /**
     /**
      * @abstract
      * @abstract
@@ -164,7 +164,6 @@ interface ModelManagerInterface
      * Clear the collection
      * Clear the collection
      *
      *
      * @param mixed $collection
      * @param mixed $collection
-     * @param mixed $element
      * @return mixed
      * @return mixed
      */
      */
     function collectionClear(&$collection);
     function collectionClear(&$collection);

+ 1 - 1
Resources/views/standard_layout.html.twig

@@ -85,7 +85,7 @@ file that was distributed with this source code.
 
 
             {% if block('preview') is not empty %}
             {% if block('preview') is not empty %}
                 <div class="span-24 last content clear">
                 <div class="span-24 last content clear">
-                    <div class="sonata-ba-preview">{{ preview|raw }}</div>
+                    <div class="sonata-ba-preview">{{ block('preview')|raw }}</div>
                 </div>
                 </div>
             {% endif %}
             {% endif %}