ViewCell should be a controller that renders as a variable with toString processing to html. View cells can be used for common templates with controller rendering between components. example: user.cell.php user.cell.tpl class UserCell extends ViewCell { function display(){ $this->assign('var',$value) } } Loading View Cell in controllers: $userCell=$this->cell('user'); $this->assign('usercell',$userCell); Showing a cell in a view: <div>{$usercell}</div> Loading a cell directly in template: <div>{viewcell name="user"}</div>
Activity