PyroCMS 上的模块插件未加载
我创建了一个适用于管理员和公共端的模块。在公共方面,我希望为某些部分提供一个插件,我可以将其放入页面中。
我已经这样做了,但放入 {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 -->无法加载:属性
我将其放入插件中(在插件文件夹中),当我调用它时它工作正常。我不知道该怎么办。任何帮助都会很好。
I have created a module that works on the administrator and public side. On the public side, I want to have a plugin for certain parts which I can put into the pages.
I have done this but it doesn't load after putting in {pyro:properties:rental}
Here is the code in /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;
}
}
The module is called properties and the plugin just returns some HTML to display.
When I look at the log, it says ERROR - 2011-05-18 13:53:57 --> Unable to load: properties
I made this into a plugin (in the plugins folder) and it worked fine when I called it. I'm not sure what to do. Any help would be good.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我仍然是pyrocms的初学者,但实现这个模块化插件似乎一切都正确。
所以问题一定是在另一部分触发的。
一个非常有用的答案,在 Pyrocms 模块或小部件或插件< /a>
I still a beginner in pyrocms but all seems correct implementing this modular plugin.
So the problem must be triggered in another part.
A very useful answer that mention modular plugins in Pyrocms module or widget or plugin
这样:
您将看到
search_full
div 输出。With this:
you will see the
search_full
div output.使用这个
你不需要关闭它
Pyrocmsdevelopment-plugins
Use this
you don't need to close it
Pyrocms developing-plugins