this is one of my element, I check session to show different links.
and theres a time at bottom.  when I login or logout, links never
change, stay same. but timer is changing everytime when you refresh
the page. what happens.

<div id='sidebar' style="float:left; width:350px;">


  <?php
    if ($session->check('User')){
      echo "<a href='" . $html->url('/users/logout') . "'
class='menu'>logout</a> <span class='menubar'></span> ";
    }else{
      echo "<a href='" . $html->url('/users/login') . "'
class='menu'>Login</a> <span class='menubar'>|</span> ";
      echo "<a href='" . $html->url('/users/register') . "'
class='menu'>register</a> <span class='menubar'></span> ";
    }
  ?>
  <?=time()?>
</div>


second question: here's my link http://localhost/artosee/pages/view
I have it cached.  in "routes.php" file. I add this line.
$Route->connect('/', array('controller' => 'pages', 'action' =>
'view'));

if you type http://localhost/artosee, it goes to same page, but file
wont be cached, how to fix that ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to