[Flow] Could not analyse ViewHelper class created in another extension
Dipankar Das
dipankar at fiveetechnologies.com
Fri Aug 8 08:55:06 CEST 2014
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
P.S. repost from typo3 english list
More information about the Flow
mailing list