Browse Source

Merge pull request #8092 from saeideng/patch-2

Changed "/app/" to "/src/"
Mark Story 10 years ago
parent
commit
6c1d5ddca0
2 changed files with 8 additions and 8 deletions
  1. 6 6
      src/View/View.php
  2. 2 2
      src/View/ViewBuilder.php

+ 6 - 6
src/View/View.php

@@ -126,7 +126,7 @@ class View implements EventDispatcherInterface
 
     /**
      * The name of the template file to render. The name specified
-     * is the filename in /app/Template/<SubFolder> without the .ctp extension.
+     * is the filename in /src/Template/<SubFolder> without the .ctp extension.
      *
      * @var string
      */
@@ -134,7 +134,7 @@ class View implements EventDispatcherInterface
 
     /**
      * The name of the layout file to render the template inside of. The name specified
-     * is the filename of the layout in /app/Template/Layout without the .ctp
+     * is the filename of the layout in /src/Template/Layout without the .ctp
      * extension.
      *
      * @var string
@@ -423,7 +423,7 @@ class View implements EventDispatcherInterface
 
     /**
      * Get/set the name of the template file to render. The name specified is the
-     * filename in /app/Template/<SubFolder> without the .ctp extension.
+     * filename in /src/Template/<SubFolder> without the .ctp extension.
      *
      * @param string $name Template file name to set. If null returns current name.
      * @return string|null
@@ -439,7 +439,7 @@ class View implements EventDispatcherInterface
 
     /**
      * Get/set the name of the layout file to render the template inside of.
-     * The name specified is the filename of the layout in /app/Template/Layout
+     * The name specified is the filename of the layout in /src/Template/Layout
      * without the .ctp extension.
      *
      * @param string $name Layout file name to set. If null returns current name.
@@ -460,7 +460,7 @@ class View implements EventDispatcherInterface
      * This realizes the concept of Elements, (or "partial layouts") and the $params array is used to send
      * data to be used in the element. Elements can be cached improving performance by using the `cache` option.
      *
-     * @param string $name Name of template file in the/app/Template/Element/ folder,
+     * @param string $name Name of template file in the /src/Template/Element/ folder,
      *   or `MyPlugin.template` to use the template element from MyPlugin. If the element
      *   is not found in the plugin, the normal view path cascade will be searched.
      * @param array $data Array of data to be made available to the rendered view (i.e. the Element)
@@ -536,7 +536,7 @@ class View implements EventDispatcherInterface
     /**
      * Checks if an element exists
      *
-     * @param string $name Name of template file in the /app/Template/Element/ folder,
+     * @param string $name Name of template file in the /src/Template/Element/ folder,
      *   or `MyPlugin.template` to check the template element from MyPlugin. If the element
      *   is not found in the plugin, the normal view path cascade will be searched.
      * @return bool Success

+ 2 - 2
src/View/ViewBuilder.php

@@ -217,7 +217,7 @@ class ViewBuilder implements JsonSerializable, Serializable
 
     /**
      * Get/set the name of the view file to render. The name specified is the
-     * filename in /app/Template/<SubFolder> without the .ctp extension.
+     * filename in /src/Template/<SubFolder> without the .ctp extension.
      *
      * @param string|null $name View file name to set. If null returns current name.
      * @return string|$this
@@ -234,7 +234,7 @@ class ViewBuilder implements JsonSerializable, Serializable
 
     /**
      * Get/set the name of the layout file to render the view inside of.
-     * The name specified is the filename of the layout in /app/Template/Layout
+     * The name specified is the filename of the layout in /src/Template/Layout
      * without the .ctp extension.
      *
      * @param string|null $name Layout file name to set. If null returns current name.