Subversion Repositories PHPX

Rev

Rev 52 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 52 Rev 64
Line 3... Line 3...
3
namespace PointedEars\PHPX;
3
namespace PointedEars\PHPX;
4
4
5
/**
5
/**
6
 * A general view handled by a controller according to the MVC pattern
6
 * A general view handled by a controller according to the MVC pattern
7
 *
7
 *
8
 * @author tlahn
8
 * @author Thomas 'PointedEars' Lahn <php@PointedEars.de>
9
 */
9
 */
10
class View
10
class View
11
{
11
{
12
  /**
12
  /**
13
   * Default template resource path
13
   * Default template resource path
Line 160... Line 160...
160
    {
160
    {
161
      require $this->_template;
161
      require $this->_template;
162
    }
162
    }
163
    else
163
    else
164
    {
164
    {
165
      throw new Exception('No template defined');
165
      throw new \Exception('No template defined');
166
    }
166
    }
167
  }
167
  }
168
168
169
  /**
169
  /**
170
   * Returns the content for insertion into the template
170
   * Returns the content for insertion into the template