It looks like you're new here. If you want to get involved, click one of these buttons!
In a recent discussion I outlined that (sorry for the autoreference):
(plugins) use hardcoded directory name inside .php files
I say that since many plugins that I've seen use this approach:
include_once(PATH_PLUGINS.DS . 'MyPluginDirectoryName' . DS . 'class.myclass.php');
Not so clean, since you can use (beware of yourself):
include_once(dirname(FILE) . DS . 'class.myclass.php');
When you need to set a view, you can use a similar approch:
$Sender->View = dirname(FILE) . DS . 'views' . DS . 'myview.php';
or a (better? I found it just now) method form the class.plugin.php
Note: Please contribute below with your own tips or with your critique.
Thank you to @hgtonight for this discussion.