override function install() in custom BlockController

Permalink
Hi C5s

I try to override the install() function in my custom Block to add a FileAttributeKey with the installation. But after the installation process from within the Dashboard the Block is still available for installation there (not installed). Any ideas?

I'm using this code at the moment inside my custom BlockController:

public function install($path) {
      parent::install($path);
   }

Mireck78
 
Mireck78 replied on at Permalink Best Answer Reply
Mireck78
I found it by my self :)

public function install($path) {
      // do something      
      $ret = parent::install($path);
      return $ret;
   }
.

I have forgotten the return value.


By the way ... there is a nice Concrete5 API available by
Michael Krasnow, thank's to him:

http://docs.mnkras.com/