[Flow] Could not analyse ViewHelper class created in another extension
Aske Ertmann
aske at moc.net
Fri Aug 8 10:40:10 CEST 2014
Hi Dipankar
I can see you solved your issue, but I just wanted to point out that you wrote the wrong list. This is the TYPO3 Flow (http://flow.typo3.org/home), but you’re mentioning a class name which belongs to extbase in TYPO3 CMS.
Cheers
Aske
On 08 Aug 2014, at 10:22, Dipankar Das <dipankar at fiveetechnologies.com> wrote:
> Phew!
> It seems to be a Bug.
> It works fine in Typo3 6.2.3
>
> On 08/08/2014 01:21 PM, Dipankar Das wrote:
>> Tracked the issue to call to PHP Reflection call in ClassInfoFactory.php
>>
>> $reflectedClass = new \ReflectionClass($className);
>>
>>
>> debug:
>>
>> echo "className=$className";
>> output seems good:
>> className=Tx_FiveePortfoliofilter_ViewHelpers_CategoryViewHelper
>>
>> What / where do I look more.
>> Please any suggestion. Stuck with this for few days now
>>
>> regards
>> Dipankar
>>
>>
>> On 08/08/2014 12:25 PM, Dipankar Das wrote:
>>> Hi,
>>>
>>> I created a new ViewHelper in my brand new extension and I need it in
>>> another extension ( sb_portfolio2 ).
>>>
>>> I just wanted to make some changes to sb_portfolio2 output and I need a
>>> ViewHelper. so I created a new extension and placed the ViewHelper here.
>>>
>>> But i can not get it working. I get error:
>>>
>>> "Could not analyse
>>> class:Tx_FiveePortfoliofilter_ViewHelpers_CategoryViewHelper maybe not
>>> loaded or no autoloader?"
>>>
>>>
>>> Modified SbPortfolio2 extension template file:
>>> ---------------
>>>
>>> {namespace sbp2=Tx_SbPortfolio2_ViewHelpers}}
>>> {namespace fivee=Tx_FiveePortfoliofilter_ViewHelpers}
>>> ..
>>> ...
>>> <p class="{fivee:category(categories: item.categories)}">test</p>
>>>
>>>
>>> Can any one please suggest where to look for ?
>>> No error in Typo3 log or apache log. Nothing when i turn on FE Debug.
>>> Please help.
>>>
>>>
>>> ViewHelper Code:
>>>
>>> /**
>>> * ViewHelper to show category as class names.
>>> *
>>> * @package fivee_portfoliofilter
>>> * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General
>>> Public License, version 3 or later
>>> */
>>> class Tx_FiveePortfoliofilter_ViewHelpers_CategoryViewHelper extends
>>> Tx_Fluid_Core_ViewHelper_AbstractViewHelper {
>>>
>>>
>>> /**
>>> * Returns the items related to a client/category.
>>> *
>>> * @param array $categories The categories of the item.
>>> * @return mixed NULL or the categories separated
>>> */
>>> public function render(array $categories = array()) {
>>> $classNames = ' in Tx_fiveeportfoliofilter';
>>> return $classNames;
>>> }
>>> }
>>>
>>>
>>>
>>
>>
>
>
> --
> regards
> Dipankar Das
> --
> FiveE Technologies.
> http://fiveetech.com
>
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list