Plugin problem when implementing Zend_Acl_Resource_Interface


I've been getting started with writing a plugin, and I've been able to get a lot up and running, but I've hit something of a wall. When defining the class for a model in my plugin, it's fine when it's extending the Omeka_Record_AbstractRecord, but when I add implements Zend_Acl_Resource_Interface, any pages having to do with the plugin are empty, and my apache error logs aren't logging any errors.

I'm taking a lot of cues from the Simple Pages plugin, and none of the other plugins that use Zend_Acl_Resource_Interface are having any trouble, so I'm not sure what's at fault here.

Any help, advice, or things to look into would be much appreciated.


Due to some autoloading issues, Omeka can "eat" some errors like this one that occur right when a file is loaded (we have a fix for that in the works, but that'll probably have to wait for a future release).

Your problem is probably that you declared that you were implementing the interface, but didn't implement the required methods. When you implement an interface, your class has to have an implementation of every one of the methods in the interface.

Ah, that explains the eerie error silence. However, you were correct, I implemented the methods in the interface, and everything began working again. Thank you!