[TYPO3-mvc] own extension library
Daniel Dimitrov
danielsd_bg at yahoo.fr
Thu May 6 10:10:31 CEST 2010
Ah! I was thinking that with that syntax I can only access this viewHelper
in blog_example and that I cannot call this viewHelper in other extension.
Thanks Jochen!
"Jochen Rau" <jochen.rau at typoplanet.de> wrote in message
news:mailman.1.1273133509.782.typo3-project-typo3v4mvc at lists.typo3.org...
> 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