ice framework documentation ice doc v1.6.2
Methods
Methods Details
  • public function setEngines(variable $engines)

  • public function setContent(variable $content)

  • public function getContent()

  • public function setMainView(variable $mainView)

  • public function getMainView()

  • public function setLayoutsDir(variable $layoutsDir)

  • public function getLayoutsDir()

  • public function setPartialsDir(variable $partialsDir)

  • public function getPartialsDir()

  • public function setViewsDir(variable $viewsDir)

  • public function getViewsDir()

  • public function setFile(variable $file)

  • public function getFile()

  • public function setSilent(variable $silent)

  • public function __construct(variable $file, array $data)

    View constructor. Set the file and vars.
  • public function getEngines()

    Get registered engines.
  • public function render(variable $file, array $data)

    Try to render the view with vars for engines.
  • public function load(string $file, array $data)

    Load the view.
  • public function partial(string $file, array $data)

    Load the partial view.
  • public function layout(variable $file, array $data)

    Load the layout view.
  • public function setVar(string $name, variable $value)

    Set var to the view.
  • public function setVars(array $vars)

    Set multiple vars to the view.
  • public function setLayout(string $layout)

    Alias of the `setMainView` method.
  • public function __toString()

    Magic toStrint, get the rendered view.