Using Concrete5 book as example, block not showing

Permalink
Hello,

I am trying to understand how blocks are designed thus using the Concrete5 book from PackT. I created all of the files and placed in the concrete5/blocks directory. When I go to install and I do not see the block in the list. Any suggestions?

Thanks,
Mike

mwhitecar
 
mesuva replied on at Permalink Reply
mesuva
When you say blocks directory, is this the top level /blocks folder? (i.e., don't every touch or place anything in the /concrete folder)

Check that you've named your block folder and the controller correctly:
If your block folder is 'testimonial', make sure the controller.php file for your block sets up a class like:
class TestimonialBlockController extends BlockController {
...


If it's got underscores:
my_block_name becomes MyBlockNameBlockController
mwhitecar replied on at Permalink Reply
mwhitecar
Thank you for the immediate reply. Yes, I initially had in /concrete5/blocks directory. I have moved to /block directory outside of /concrete5.

I have checked the name. In my case it is product_information (name of directory). I have named the class ProductInformationBlockController extends....

When I go to Dashboard/install, I do not see it listed...so still nothing is showing up.

Any ideas?

Thanks!