In CakePHP blog tutorial, http://book.cakephp.org/view/1536/Creating-Post-Views
there is a code for index.ctp
Html->link($post[‘Post’][‘title’],
array(‘controller’ => ‘posts’, ‘action’ => ‘view’,
$post[‘Post’][‘id’])); ?>
Why is it array(‘controller’=>’posts”) ? aren’t control names capitalized and it’s called PostsController?
This would be the name of the controller as it would appear in the url. Since this is an HTML link you would want the element to point to the correct url, in this case
pages/view/$id. If you saidPagesController/view/$idit could very well be interpreted as needing the classPagesControllerController, this is probably unwanted behavior.