English 中文(简体)
识别 Phil StIHR模板图书馆错误
原标题:CodeIgniter Phil Sturgeon s template library error

I m using a template library from Phil Sturgeon. I also use modules.

模块博客只有在我增加时才会奏效。

$this->template->set_theme( nvc );
$this->template->set_layout( theme );

但我不想这样做,我想在核心文件中确定这一点。 我应如何确定这一点?

模块欢迎工作

class Welcome extends NVC_Controller {

function index()
{
    $this->template->build( theme );
}
}

但模块博客有错误(图象):

无法装载所要求的档案:违约。

class Blog extends NVC_Controller {

var $num = 10;

function __construct()
{
    $this->load->model( blog_model ,  blog );
}

function index()
{
    $data["result"] = $this->blog->get_all_posts($this->num);
    $this->template->build( blog , $data);
}

}

核心/NVC_Controller.php

class NVC_Controller extends MX_Controller {
function __construct(){ 
    if(nvc_site_open()){                
        $this->template->set_theme( nvc );
        $this->template->set_layout( theme );
    } else {
        show_error("De site is momenteel gesloten.");
    }
}
}

What is going wrong? Setting the config layout to "theme" also doesn t work. The template is stored in application/themes/nvc/views/layouts/theme.php.

问题回答

在您的电离层安装中,一个档案试图打电话。 在特定地点确实存在。 您能否调查哪一个文件,并在此张贴该法典?





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签