I am upgrading my 3.0.4 install to 3.1 and in the process am upgrading to the most up to date release of Willr's comments module.
I would like to edit the CommentsExtension.php file included with the module to achieve the following:
1. Remove the require jQuery call since I l already have jQuery loaded
2. Add additional variables to the template ( in particular a CacheKey variable ).
I have tried creating an extension and overwriting the CommentsForm method:
Class MyCommentsExtension extends Extension {
public function CommentsForm() {
// my overwrite goes here
}
}
and in my config.yml file:
CommentsExtension:
extensions:
- MyCommentsExtension
Unfortunately the system does not seem to be allowing me to extend an extension ( the CommentsExtension file included with the module is already an extension: CommentsExtension extends Extension ).
My question is what is the best way to extend the CommentsExtension file besides hacking it?