when using helper from an action I get a fatal error (it used to work with symfony-beta but not with symfony-alpha). My symfony version is "version 0.9.2016" (the latest)
in the action
//...
include_once ('symfony/helper/HelperHelper.php');
use_helper('Text');
$this->test = truncate_text ($text, $length = 100, $truncate_string = '...', $truncate_lastspace = false);
//...
the error
Fatal error: Cannot redeclare use_helpers() in D:\xampplite\php\pear\symfony\helper\HelperHelper.php on line 23
Call Stack
# Function Location
1 {main}() D:\xampplite\www\sandbox\web\frontend_dev.php:0
2 sfFrontWebController->dispatch() D:\xampplite\www\sandbox\web\frontend_dev.php:10
3 sfController->forward() D:\xampplite\php\pear\symfony\controller\sfFrontWebController.class.php:48
4 sfFilterChain->execute() D:\xampplite\php\pear\symfony\controller\sfController.class.php:339
5 sfWebDebugFilter->execute() D:\xampplite\php\pear\symfony\filter\sfFilterChain.class.php:76
6 sfFilterChain->execute() D:\xampplite\php\pear\symfony\filter\sfWebDebugFilter.class.php:37
7 sfCommonFilter->execute() D:\xampplite\php\pear\symfony\filter\sfFilterChain.class.php:76
8 sfFilterChain->execute() D:\xampplite\php\pear\symfony\filter\sfCommonFilter.class.php:30
9 sfFlashFilter->execute() D:\xampplite\php\pear\symfony\filter\sfFilterChain.class.php:76
10 sfFilterChain->execute() D:\xampplite\php\pear\symfony\filter\sfFlashFilter.class.php:50
11 sfExecutionFilter->execute() D:\xampplite\php\pear\symfony\filter\sfFilterChain.class.php:76
12 sfPHPView->render() D:\xampplite\php\pear\symfony\filter\sfExecutionFilter.class.php:170
13 sfPHPView->renderFile() D:\xampplite\php\pear\symfony\view\sfPHPView.class.php:222
14 sfPHPView->loadCoreAndStandardHelpers() D:\xampplite\php\pear\symfony\view\sfPHPView.class.php:83
15 sfLoader::loadHelpers() D:\xampplite\php\pear\symfony\view\sfPHPView.class.php:73