Example #1
0
File: menu.php Project: txgruppi/fw
<ul>
  <li><a href="<?php 
echo FW::baseUrl();
?>
/">Home</a></li>
  <li><a href="<?php 
echo FW::baseUrl();
?>
/index.php/contact">Contact</a></li>
  <li><a href="<?php 
echo FW::baseUrl();
?>
/index.php/static/about">About</a></li>
  <?php 
if (FW::get('auth')) {
    ?>
    <li><a href="<?php 
    echo FW::baseUrl();
    ?>
/index.php/member/signout">Sign out</a></li>
  <?php 
} else {
    ?>
    <li><a href="<?php 
    echo FW::baseUrl();
    ?>
/index.php/member">Member Area</a></li>
  <?php 
}
?>
</ul>
Example #2
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title><?php 
echo FW::get('title');
?>
Member Area - Sample App</title>
  </head>
  <body>
    <?php 
echo FW::render(null, 'common/menu');
?>
    <?php 
echo $content;
?>
  </body>
</html>