Update view.php

1. when the smarty template file does not exist, then return the parent path;
2. when caching is false, it is not necessary to get the cache_lifetime and the cache_path.