I'm trying to create a settings page. If I print things within index, I can see it. If I try to include it, I can't see anything, neither errors.
add_options_page('My Plugin', 'My Plugin', 'manage_options', 'my-plugin', array('MyPluginSettings', 'index'));
my settings:
class MyPluginSettings
{
public function index()
{
/* I can echo or print here and it works fine ...
* But i can't require a file here ... nothing happens
*/
require('existing/path/to/a/file.php');
}
}
?>
What's wrong? Thanks.