Lamplighter features a robust but intuitive templating engine to keep your markup clean but functional
<{ITERATOR my_widgets}>
<label>Widget Name</label><span class="widget_name"><{name}></span>
<label>Widget Size</label><span class="widget_name"><{size}></span>
<label>Widget Price</label><span class="widget_price"><{price}></span>
<{/ITERATOR}>
Lamplighter features an extensible, secure user login system with fully granular roles and permissions. Checking permissions is easy:
<?php
$active_user = $this->get_active_user();
if ( $active_user->has_access('can_view_widgets') ) {
show_widgets();
}
?>Using the DataModel object, we can easily retrieve all of our products from the 'shoes' category using only the code below:
<?php
LL::Require_model('ProductCategory');
$category = new ProductCategory();
$category->key = 'shoes';
$products = $category->products->fetch_all();
?>