Back to BaseController class

Method addViewPath

public static
addViewPath
(mixed $path)
Add one or more view paths to the controller's stack, in LIFO order.
Parameters
  • mixed $path The directory (string) or list of directories (array) to add.
Returns
  • static This object to support chaining.
Since
  • 3.0

Method addViewPath - Source code

/**
 * Add one or more view paths to the controller's stack, in LIFO order.
 *
 * @param   mixed  $path  The directory (string) or list of directories (array) to add.
 *
 * @return  static  This object to support chaining.
 *
 * @since   3.0
 */
public function addViewPath($path)
{
    return $this->addPath('view', $path);
}