View package for karamel
Installation
- You should define that constant variables
define('KM_VIEW_BASE_PATH',''); define('KM_VIEW_DIST_PATH',''); define('KM_VIEW_DELIMETER','');
- You can get instance of
View
withgetInstance()
method$view = \Karamel\View\View::getInstance();
Helpers Method
-
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