Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Wrapper for a slate -->
- <div id="<?=$this->id ?>" class="<?=$this->slate ?> slate-wrapper">
- <?=$this->content?>
- <div>
- <!-- 3 Slate List View -->
- <? if ($this->slate == Kfx2_View_Helper_ThreeSlate::SLATE_BLANK ) : ?>
- <? elseif ($this->slate == Kfx2_View_Helper_ThreeSlate::SLATE_ERROR) :?>
- <? elseif ($this->slate == Kfx2_View_Helper_ThreeSlate::SLATE_REGULAR) :?>
- <? endif;?>
- <!-- SET SLATE IN CONTROLLER -->
- <?php
- public function listAction()
- {
- $materials = $this->_Material->getTable()->findAll();
- $this->view->slate = $materials->count() == 0 ?
- Kfx2_View_Helper_ThreeSlate::SLATE_BLANK : Kfx2_View_Helper_ThreeSlate::SLATE_REGULAR;
- }
- ?>
Add Comment
Please, Sign In to add comment