I plan to add up a calender function to my system, but i had mess up with the link which not link to the direct address that i want.. i am still new to cakephp, need some help to get understand the code and the correct way for me to point to the correct address i want..
here is some of the code in the controller, other side is not a problem to run just left the pointing address which had make me mad.. when i press to the link, which i want to view my data, it's just jump to the other side that not in my set up.
// here is the declaration which in the original controller that i learn from the net.
$view_base_url = $this->webroot. 'calendars';
//this the original link that i using which cant point to my correct side.
$data[$day] .= 'a href="'.$view_base_url.'/view/'. $v['Calendar']['id'] . '">' . $v['Calendar']['name'] . '</a>';
in the details, i wanted to link to my side with just the calendars/view/id of the link i point. but with this code, i will redirect to the app/webroot/view/id side. can i change the $this->webroot to just link to where i want?? if i not using the $this->webroot, i am not able to redirect while i click other page in the calendar..
it might be a poor explanation, cause i am still new to cakephp. just any 1 can kindly drop me a comment what i can do?