I think you are misunderstanding this example. The path is the concatenation of a mapped prefix ("/app/") and the path to a file relative to that mapped prefix' path: /path/to/app/views/layout.php I used the ".php" extension by intention, as many people use PHP for template files.