I'm a beginner at CakePHP, and for a project at work I'm running into a maddening problem. I have a paginated list of links with each linking to a view in cakephp:
link1: <a href="<?php echo $SITE_URL>/users/show_chart/<?php echo $id0;?>">See Chart</a>
link2: <a href="<?php echo $SITE_URL>/users/show_chart/<?php echo $id1;?>">See Chart</a>
link3: <a href="<?php echo $SITE_URL>/users/show_chart/<?php echo $id2;?>">See Chart</a>
Pretty simple. I'm inheriting the project from a previous team, so there's some code I don't understand yet, but I think it's pretty clear that it should be calling the "show_chart" action function in the "users_controller" class.
Inside that function I've tried various things like:
function show_chart($id) {
echo "<pre>";
echo $id;
echo "</pre>";
echo "You'd better show me something";
exit;
}
But when I click on one of the links, it performs the action as though I never edited the action at all in the controller. My little debug message never shows up. The program even works as usual when I comment the "show_chart" function out wholesale.
My first thought was that there's an HTTP redirect somewhere, but I can't find anything amiss. My second thought was that this action is somehow cached somewhere and the function is getting bypassed in favor of the caching. Any thoughts? Anyone?