tags:

views:

65

answers:

1

hi all actually when i use link syntax like

<?php echo $html->link('Home', '/notes/index');?>

but when i used

<a href="/cake/cake_startab/notes/index/" alt="Home">Home </a>

its woking why????

+1  A: 

You'll want to use a url array

<?php echo $html->link('Home', array('controller'=>'notes','action'=>'index')); ?>

This will work for you. You will not be able to use an absolute path :)

Check out the manual page, http://api.cakephp.org/class/html-helper#method-HtmlHelperlink

DavidYell