Jump to content
MakeWebGames

Erros with modules...


begood

Recommended Posts

Hello,

I receive allways the same error when I've 2 functions on the same file... When I go to that module the page stays blank...

 

<?php
//This file cannot be viewed, it must be included
defined('IN_EZRPG') or exit;

class Module_Crimes extends Base_Module
{

  public function start()
{
	requireLogin();

	$this->tpl->display('crimes.tpl');

	if ($_GET['act'] == 'do')
	$this->do();

}

public function do()
{


}
}
?>

 

As you can see, I don't have nothing on the second function but it give me the error allways :s

Just if I take out the second function appears the page all right, else it don't... :s

Regards,

begood

P.S.: Sorry for my bad English, I'm Portuguese... :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...