<?php
/*
	Copyright(c) 2010 Shift Tech Inc. All Rights Reserved.
 	http://www.shift-tech.jp/

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

require_once('Smarty/Smarty.class.php');

/** 
* 基本View(Smarty)クラス
* @author     Nishino
* @copyright  Shift Tech Inc.
*/ 
class View extends Smarty {
	
	/**
     * コンストラクタ（PHP4,5対応）
	 * @author   tyamamoto
	 * @param    
	 */
	function View($view_path=null)
	{
		$this->__construct($view_path);
	}
    function __construct($view_path=null)
    {
		$this->Smarty();
		//$this->left_delimiter = '<{';
        //$this->right_delimiter = '}>';
        $this->plugins_dir  = 'Smarty/plugins/';
        $this->template_dir = BASE_PATH.'/app/view/'.$view_path;
		$this->compile_dir  = BASE_PATH.'/_tmp/'.$view_path;
		$this->cache_dir    = BASE_PATH.'/_cache/'.$view_path;
        $this->caching      = false;
    }
}

?>