public function addStaticPartial($baseDir, $name)
    {
        $file = $this->createPartialPath($baseDir, $name);

        if (!is_file($file)) {
            throw new LogicException(sprintf('Invalid base directory or file name provided "%s"', $file));
        }

        $this->staticPartials[$name] = $file;
        return $this;
    }
public function addStaticPartial($baseDir, $name)
    {
        $file = $this->createPartialPath($baseDir, $name);

        if (!is_file($file)) {
            throw new LogicException(sprintf('Invalid base directory or file name provided "%s"', $file));
        }

        $this->staticPartials[$name] = $file;
        return $this;
    }
public function addStaticPartial ( $ baseDir , $ name ) { $ file = $ this -> createPartialPath ( $ baseDir , $ name ) ; if ( ! is_file ( $ file ) ) { throw new LogicException ( sprintf ( 'Invalid base directory or file name provided "%s"' , $ file ) ) ; } $ this -> staticPartials [ $ name ] = $ file ; return $ this ; }
Adds new static partial to collection

@param string $name
@param string $baseDir
@throws \LogicException if wrong data supplied
@return \Krystal\Application\View\PartialBag
Adds new static partial to collection