我创建了一个在管理员和公共方面工作的模块。在公共方面,我想为某些部分添加一个插件,我可以将其放入页面中。
我已经这样做了,但是在放入 {pyro:properties:rental} 后它没有加载
这是 /addons/modules/properties/plugin.php 中的代码。
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Plugin_Properties extends Plugin
{
function rental()
{
$rentalForm = '<div class="search_full">
<div class="container_12">
<div class="grid_12">
<h1>Rental Search</h1>
</div>
<form action="" method="post">
<div class="grid_4">
<h2 class="liberationtext">Choose your destination</h2>
<label for="region">Region</label>
</div>
</form>
</div>
</div>';
return $rentalForm;
}
}
该模块称为属性,插件只是返回一些 HTML 来显示。
当我查看日志时,它显示 ERROR - 2011-05-18 13:53:57 --> Unable to load: properties
我把它做成了一个插件(在插件文件夹中),当我调用它时它工作得很好。我不知道该怎么办。任何帮助都会很好。