I'm creating a plugin for my symfony project, which includes a base action class, i.e.:
<?php
// myActions.class.php
class myActions extends sfActions {
/* ... */
}
Where in my plugin folder (e.g.: plugins/sfMyPlugin/???) should I place this file?
The goal is to have actions that are NOT a part of this plugin extend this class, hopefully having the class be autoloaded (similar to if it were placed under apps/my_app/lib). If it can't be autoloaded, how do I get symfony to include my php file?
You typically put it in your plugin's
libdirectory. The general conventions is also to to name withBasein the name so given your example that would beBasemyActions. Then you would also make an empty concrete class calledmyActionsand you would extend that within your plugin thus allowing other user to complety replacemyActionswith their own implementation (so long as it extends the base class) or to simply extendmyActions.