[Flow] Could not analyse ViewHelper class created in another extension

Dipankar Das dipankar at fiveetechnologies.com
Fri Aug 8 09:51:51 CEST 2014


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



More information about the Flow mailing list