Skip to content

shunjidoi/laravel-smarty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

laravel-smarty

テンプレートエンジンの組み込みは SmartyView(https://github.com/lukeforeman/Laravel4-SmartyView)を利用します。

Controller側でAssing処理を意識することなく一括で行うためのスクリプトです。

Controller内で定義したクラス変数をAssignし、画面表示します。

使い方

クラス変数($this)はすべて自動的にAssignされます。
(php)$this->hoge = "hello world !";

(tpl){$hoge}

テンプレートは$this->layoutで指定します。
(拡張子不要)

$this->layout = "index";
とするとindex.tplが画面に表示されます。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages