I am trying to add my custom page template to wordpress. I have created a page-portfolio.php to the folder

> \wp-content\themes\yoo_master2_wp\layouts

My php file has following content:

    <?php
    /*
    Template Name: My Portfolio
    */
    // get warp    
    $warp = Warp::getInstance();    
    
    // load main template file    
    echo $warp['template']->render('template');
    
    if (have_posts()) : ?>
        <?php while (have_posts()) : the_post(); ?>
    
        <article class="uk-article">
    
            <?php if (has_post_thumbnail()) : ?>
                <?php
                $width = get_option('thumbnail_size_w'); //get the width of the thumbnail setting
                $height = get_option('thumbnail_size_h'); //get the height of the thumbnail setting
                ?>
                <?php the_post_thumbnail(array($width, $height), array('class' => '')); ?>
            <?php endif; ?>
    
            <h1 class="uk-article-title"><?php the_title(); ?></h1>
    
            <?php the_content(''); ?>
    
            <?php edit_post_link(__('Edit this post.', 'warp'), '<p><i class="uk-icon-pencil"></i> ','</p>'); ?>
    
        </article>
    
        <?php endwhile; ?>
    <?php endif; ?>
    
    <?php comments_template(); ?>


Here is the [tutorial][1], how it should work (last part).

According to this tutorial I should do the following:

    <?php
    /*
    Template Name: My Portfolio
    */
    <?php get_header(); ?>
    
    Put your content here...
    
    <?php get_footer(); ?>

But like this I get only a blank page.

The code above is copied from the page.php in layouts and with the code from [this post][2]

But I get following error message:

> Fatal error: Class 'Warp' not found in
> C:\xampp\htdocs\wordpress\wp-content\themes\yoo_master2_wp\layouts\page-portfolio.php
> on line 6

So, does anyone know the correct way to do in warp7? The documentation did not help


  [1]: http://www.yootheme.com/themes/documentation/developers/customization
  [2]: http://www.yootheme.com/support/question/5346