Notice that our view action takes a parameter: the ID of the post we’d like to see. This parameter is handed to the action through the requested URL. If a user requests /posts/view/3, then the value ‘3’ is passed as $id.
We also do a bit of error checking to ensure that a user is actually accessing a record. If a user requests/posts/view, we will throw a NotFoundException and let the CakePHP ErrorHandler take over. We also perform a similar check to make sure the user has accessed a record that exists.
I followed this instructions remove the $id, the url like this: http://localhost/cakephp/posts/view/
but it didn't throw a NotFoundException, it represent this error:
Fatal Error
Error: Call to undefined function _()
File: D:\Program Files\wamp\www\cakephp\app\Controller\PostsController.php
Line: 14