[TYPO3-mvc] own extension library

Daniel Dimitrov danielsd_bg at yahoo.fr
Thu May 6 12:14:47 CEST 2010


Hey Felix,
I got this:
Fatal error: Class 'Tx_Fluid_ViewHelpers_BwpagebrowserViewHelper' not found 
in /storage/bup/beta/typo3/typo3_src-4.3.2/t3lib/class.t3lib_div.php on line 
4942

I created the following file in 
typo3conf/ext/fluid/Classes/ViewHelpers/BwpagebrowserViewHelper.php

class Tx_Fluid_ViewHelpers_BwpagebrowserViewHelper extends 
Tx_Fluid_Core_ViewHelper_TagBasedViewHelper {

	/**
	 * @var string
	 */
	protected $pageBrowser = '';

	/**
	 * Initialize arguments
	 *
	 * @return void
	 */
	public function initializeArguments() {
		parent::initializeArguments();

		$this->registerUniversalTagAttributes();
	}

	/**
	 *
	 * @param int $count - count from the query
	 * @param int $perPage - count from the query
	 */
	public function render($count, $perPage = 10) {

	}
}
?>

Do I have to somehow autoload the new fluid helpers first in my extension?
Regards,
Daniel

"Felix Oertel" <mehl at foertel.com> wrote in message 
news:mailman.1.1273139810.9566.typo3-project-typo3v4mvc at lists.typo3.org...
> Hi
>
> Am 06.05.10 11:49, schrieb Felix Oertel:
>> Personally I would name it to Tx_Fluid_ViewHelpers_YournameViewHelper,
>> put it into typo3conf/ext/fluid/Classes/ViewHelpers and use it via
>> <f:yourname>.
>
> Ok, propably better listen to Jochen *g
>
> regards, foertel 



More information about the TYPO3-project-typo3v4mvc mailing list