I’m following the plugin dev tutorial, and I simply cannot make it work without returning the error:
“The following tag cannot be processed:
{exp:hello_world}
Please check that the ‘hello_world’ module is installed and that ‘hello_world’ is an available method of the module”
This is the code:
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Hello_world
{
var $return_data = "";
function __construct()
{
$this->EE =& get_instance();
}
}
?>in pi.hello_world.php, in the hello_world folder in third_party.
My template simply has “{exp:hello_world}”. I know the plugin is being executed, since if I echo or print_r anything in the constructor, it returns a value. Where am I going wrong?
Dan.
I just remembered why the PHP closing tag may make a difference. Just updating this for future reference.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.