View.php & default.php

Permalink 2 users found helpful
what is different between view.php & default.php?

View Replies:
MysteriousCleon replied on at Permalink Reply
In view.php instead of main content area you put code:
<?php print $innerContent; ?>

Default.php is used in pages that don't have page type, or page type is not existing in that template - so it's just default as the name sais, and view.php is used for single pages (like for instance login page).
mkly replied on at Permalink Reply
view.php is typically used to wrap Single Pages.

default.php is a page type just like full.php home.php etc. Only difference is that it gets used if no page type has been assigned or you switch to a new theme that does not have a page type file the the page was set to.

view.php also wraps non theme page types, which you may have seen in packages that are not themes but have page types.
asankaw replied on at Permalink Reply
Ok. Thanks