Archive of: Beginners


Why bother with perch_layout?

If you’ve built anything with php you’ve probably used <?php include('somefile.php); ?>to ensure you don’t end up repeating the same chunks of code throughout your site. Or maybe, if you’ve come to perch from Wordpress, you’ve used the get_header(); and get_footer(); functions. perch_layout is similar to all these. It’s used to include common page elements. So why bother? Why not just use <?php include();?>?

Read more »