@@ 247-257 (lines=11) @@ | ||
244 | /** |
|
245 | * Get two column layout example |
|
246 | */ |
|
247 | public function getTwocolumn() |
|
248 | { |
|
249 | // Set columns directly using a layout |
|
250 | $columns = array( |
|
251 | 'one' => $this->getView('examples/one'), |
|
252 | 'two' => $this->getView('examples/nested_view') |
|
253 | ); |
|
254 | ||
255 | $this->setTitle('2 Column Layout'); |
|
256 | $this->setContent($this->getLayout('2column', $columns)); |
|
257 | } |
|
258 | ||
259 | /** |
|
260 | * Get three column layout example |
|
@@ 262-273 (lines=12) @@ | ||
259 | /** |
|
260 | * Get three column layout example |
|
261 | */ |
|
262 | public function getThreecolumn() |
|
263 | { |
|
264 | // Set each column using a layout |
|
265 | $columns = array( |
|
266 | 'one' => $this->getView('examples/one'), |
|
267 | 'two' => $this->getView('examples/two'), |
|
268 | 'three' => $this->getView('examples/three') |
|
269 | ); |
|
270 | ||
271 | $this->setTitle('3 Column Layout'); |
|
272 | $this->setContent($this->getLayout('3column', $columns)); |
|
273 | } |
|
274 | ||
275 | /** |
|
276 | * Get grid |
@@ 81-92 (lines=12) @@ | ||
78 | * Example playing with mustache templates |
|
79 | * the $string variable would really be a view, but it's good to see here. |
|
80 | */ |
|
81 | public function getMustachelayout() |
|
82 | { |
|
83 | // You can add other views (containers) or text |
|
84 | $columns = array( |
|
85 | 'one' => new \erdiko\core\View('examples/one'), |
|
86 | 'two' => $this->getView('examples/two') . $this->getView('examples/three') |
|
87 | ); |
|
88 | ||
89 | $this->setContent($this->getLayout('mustache/2column-mustache', $columns)); |
|
90 | ||
91 | $this->setTitle('Mustache Template'); |
|
92 | } |
|
93 | ||
94 | /** |
|
95 | * Homepage Action (index) |