Ok, back to components.
1. I create a directory in core/components, core/components/listmailer.
2. In core/components/listmailer I put a file, listmailer.php.
3. I add a namespace, listmailer, with a path of {core_path}components/listmailer
4. I create a new Action with a Controller of listmailer and a Namespace of listmailer, with Load Headers checked. Everything else left blank.
5. I create a new Top Menu in Components with a text of ListMailer, description of ListMailer 0.1 - Mailing list application for Revolution, and the Action menu only offers listmailer - listmailer/index.php for a selection (other than a bunch of core stuff that obviously doesn’t apply)
When I select that one and save, it has ’83’ in the field; presumably that’s the ID of this particular component.
If I save it again, it changes to ’No Action’ and won’t do anything else, so I presume the bug hasn’t been fixed. I corrected it in the menus table in the database.
Selecting the new component from the Components menu causes a 500 error.
<?php
/** listmailer 0.1 - mailing list application for Revolution
*
* Author - [email protected]
* August 30 2009
*
**/
return "Hello, world!";
?>