Relationship between default.php and header.php?

Permalink 1 user found helpful
I am confused.

Both default.php and header.php (inside the elements directory of the theme I am using) seem to have some of the same code.

Which does what?

And which one takes precedence over the other one?

Any help to understand this would be appreciated.

Thanks.

Carlos

 
Mnkras replied on at Permalink Best Answer Reply
Mnkras
the header.php isn't used unless the default.php includes it using $this->inc('/elements/header.php'); its a totally optional file, its more for organization
carlos123 replied on at Permalink Reply
Thanks very much for your fast response Mnkras. I understand now.

Carlos