Cannot install custom block

Permalink 1 user found helpful
I'm trying to install a very simple block to include and manage a flash gallery.
However when I upload the folder into the blocks (or packages) directory, it doesn't appear in the Add Functions menu.

Any help would be appreciated.
I attached the code I'm tring to install.

1 Attachment

 
TravisN replied on at Permalink Reply
TravisN
The enclosing folder needs to be the same name as your BlockController class

ie

class ExposeBlockController extends BlockController {

means your folder needs to be called

"expose" not "exp_inc"

also make sure the folder is kept lowercase
snowflake replied on at Permalink Reply
could you possibly clarify this in more simple terms?
thanks!
TravisN replied on at Permalink Reply
TravisN
just change the name of the folder that contains the block files to "expose"
SteveAtParadigm replied on at Permalink Reply
Thanks! This was driving me crazy.

So the folder name needs to match the line
"class BasicTestBlockController extends BlockController" in controller.php.

For example "BasicTestBlockController" becomes the folder name 'basic_test'.