Exemple #1
0
 /**
  * Set a FileSpec to be used
  *
  * @param string $spec
  *   FileSpec for automatically find the proper Template View
  *
  * @return Next\View\View
  *   View Object (Fluent Interface)
  *
  * @throws Next\View\ViewException
  *   Given FileSpec is invalid
  */
 public function setFileSpec($spec)
 {
     if (strpos($spec, ':') === FALSE) {
         throw ViewException::invalidSpec();
     }
     $this->_fileSpec = implode('/', $pairs);
     return $this;
 }