Added Auth loop

This commit is contained in:
franck
2013-07-09 11:42:25 +02:00
parent 7cea85b43e
commit dd05888450
15 changed files with 220 additions and 69 deletions

View File

@@ -1,5 +1,14 @@
{include file="includes/header.html"}
<div>
{loop type="auth" name="auth_test" roles="CUSTOMER"}
<p>Customer is authentified :-)</p>
{/loop}
{elseloop rel="auth_test"}
<p>Customer is not authentified :-(</p>
{/elseloop}
An image from asset directory :
{images file='assets/img/logo-thelia-34px.png'}<img src="{$asset_url}" alt="{intl l='Thelia, solution e-commerce libre'}" />{/images}
</div>