Custom Helpers in ZF: Documentation fix
[pt-BR]
There’s an error on ZF’s documentation regarding Custom Helpers: the name of the Custom Helper class must begin with ‘Zend_View_Helper_”, otherwise ZF won’t automatically find it and load it. It will end up complaining about not finding it, even if it’s located on a expected path (such as application/views/helpers).
Update: People can say I’ve rushed things up by posting this. Actually, ZF have ways to enable View Helpers no matter how they are called. Things is the weak spot of ZF is it’s documentation: it’s very scattered and it frequently becomes confusing.
Existe um erro na documentação do ZF sobre Custom Helpers: o nome da classe do Custom Helper precisa começar por ‘Zend_View_Helper_’, senão o ZF não o encontrará e carregará automaticamente. Ele vai acabar reclamando que não encontra a classe, mesmo que ela esteja em um dos paths esperados (como application/views/helpers).
Update: Pode-se dizer que eu fui apressado em escrever este post. Na realidade o ZF tem formas de habilitar View Helpers independentemente de como elas se chamam. O problema é que o ponto fraco do ZF é a sua documentação: é muito fragmentada e frequentemente se torna confusa.
