Blocks - Templates - Controllers

Permalink
I'm adding a few new functions to a block, I have a directory laid out:

blocks/view.php
blocks/controller.php
blocks/templates/my_template/view.php
blocks/templates/my_template/controller.php

I tried adding the two new functions to blocks/templates/my_template/controller.php but it does not work. If I add them to blocks/controller.php it works.

I don't wan't to change the original controller but want the second controller in the templates directory have the additional blocks.

Can I do that? Do I have to declare the second controller in my view.php?

thanks

pvernaglia
 
edenxavier replied on at Permalink Reply
edenxavier
Ever found the solution for this? I'm curious too.
openly replied on at Permalink Reply
openly
Hi don't this is possible as I have not seen it ever used, template are reserved for changing the view of a block not its function.

See the documentation on

http://www.concrete5.org/documentation/developers/blocks/directory-...

and

http://www.concrete5.org/documentation/developers/blocks/creating-a...

also you mau find you get a better response if you post this kind of question in Building with concrete5 or Chit Chat