karamel/view

view package for karamel

v0.2.2 2018-12-26 14:41 UTC

This package is not auto-updated.

Last update: 2024-04-25 16:20:26 UTC


README

Installation

  1. You should define that constant variables
    define('KM_VIEW_BASE_PATH','');
    define('KM_VIEW_DIST_PATH','');
    define('KM_VIEW_DELIMETER','');
  2. You can get instance of View with getInstance() method
    $view = \Karamel\View\View::getInstance();

Helpers Method

  1. view($viewName,$variables)

    return compiled view to output

implemented commands

  • if
  • else
  • elseif
  • endif
  • for
  • endfor
  • foreach
  • endforeach
  • while
  • endwhile
  • break
  • continue
  • isset
  • endisset
  • include
  • section
  • endsection
  • extends
  • yield
  • switch
  • case
  • endswitch
  • push
  • component