[TYPO3-mvc] own extension library
Jochen Rau
jochen.rau at typoplanet.de
Thu May 6 10:08:04 CEST 2010
Hi Daniel.
On 06.05.10 09:37, Daniel Dimitrov wrote:
> The next thing that bothers me: for the pagination I have written a
> small ViewHelper - I'm going to use this viewHelper
> in most of my extensions. Is there any way to use my viewHelpers in
> other extensions, too? Or do I have to manually copy
> them to the Classes/ViewHelper folder of all my extensions?
Just use the namespace declaration in your template:
{namespace blog=Tx_BlogExample_ViewHelpers}
All view helpers starting like <blog:... are pointing to the view helper
classes starting with Tx_BlogExample_ViewHelpers in the directory
EXT:blog_example/Classes/ViewHelpers/.
Regards
Jochen
More information about the TYPO3-project-typo3v4mvc
mailing list