I'm trying to create a module tag but it just isn't working, I'm following the Hello World tutorial at Ellis Lab. My module is installed and the MCP part is working. Here is my mod file:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Facebook_Photos {
public $return_data = "";
// Constructor
public function __construct()
{
$this->EE =& get_instance();
$this->return_data = 'Hello World';
return $this->return_data;
}
public function get_photos()
{
$this->return_data = 'Hello World';
}
}
?>
Just in case here is my tag pair in my template (it's the only template that exists):
{exp:facebook_photos:get_photos}
I’m getting the following error from EE:
The following tag cannot be processed:
{exp:facebook_photos:get_photos}
Please check that the ‘facebook_photos’ module is installed and that ‘get_photos’ is an available method of the module
get_photos
in yourFacebook_photos
class? PS I highly doubt it's anything to do with your language file.