Results 1 to 2 of 2

Thread: This Is Why Wrapper.php Makes No Sense At All ...

  1. #1
    Thread Starter
    Senior Member edwin's Avatar
    Join Date
    Nov 2010
    Location
    Netherlands
    Posts
    117
    Thanks
    3
    Thanked 22 Times in 17 Posts

    This Is Why Wrapper.php Makes No Sense At All ...

    Hi,

    Working with the Vantage theme I'm forced to working with the wrapper.php file that is introduced for the intention to reduce code duplication.

    I've been reading the reasoning behind the introduction of the wrapper.php file, but I really don't see the need for it.
    Is it really necessary to take these measures just to prevent including a few extra template calls in a template?

    1: <?php get_header(); ?>
    2: <?php get_sidebar(); ?>
    3: <?php get_footer(); ?>

    This is a classic case of finding a solution for a problem that does not exist.
    It only makes things worse for the purpose for what it is originally introduced for.

    It makes things worse because now you need to create different wrapper files if you want to customize other templates.
    As the original wrapper.php file brings in code you many not want to include for your custom template.

    This creates truly unneeded code duplication, more files to work with.


    Is it really that much of a problem for developers to include a couple of lines of code such as <?php get_header(); ?>, <?php get_footer(); ?> or <?php get_sidebar(); ?> in a template?

    Sorry guys I do not see the logic behind this, I may be alone with this opinion because I fail to see the true advantage of using wrapper files.

  2. #2
    tcarter's Avatar
    Join Date
    Jun 2011
    Location
    United States
    Posts
    424
    Thanks
    15
    Thanked 91 Times in 77 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] wrapper.php error?
    By rubencio in forum Report JobRoller Bugs
    Replies: 2
    Last Post: August 10th, 2012, 04:04 PM
  2. Google Ad Sense
    By nutmeg in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: August 29th, 2011, 08:26 AM
  3. Error message that dpoesn't make sense
    By pwatkins in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: December 21st, 2010, 11:42 PM