karamel / view
view package for karamel
v0.2.2
2018-12-26 14:41 UTC
Requires
- karamel/http: v0.2.0
This package is not auto-updated.
Last update: 2025-03-27 20:32:52 UTC
README
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