After checking the repo, the javascripts ajax helpers was removed in 1.2
(because of their prototype dependencies)

2011/4/6 Yohan GIARELLI <yo...@giarelli.org>

> Which version of symfony do you use ? This javascripts helpers are old
> symfony stuf, from 1.0, they are not in 1.4
>
>
> 2011/4/6 Jehan <jeeha...@gmail.com>
>
>> Dear all
>>
>> I want to use ajax functionality but getting error that
>> JavascriptHelper.php not found.
>>
>> Following is template code and error.
>> please write me getting following error.
>>
>> *
>>
>> <?php
>> * use_helper('Javascript') *?>*
>>
>> <
>> div id=*"item_list"*></div>*
>>
>> <?php
>> * *echo *form_remote_tag(*array*(
>>
>> 'update' => 'item_list',
>>
>> 'url' => 'hello/show',
>>
>> ))
>> *?>*
>>
>> <label for=*"item"*>Item:</label>
>>
>> *<?php* *echo *input_tag('item') *?>*
>>
>> *<?php* *echo *submit_tag('Add') *?>*
>>
>> </
>> form>
>> --------------------------------------------------------------------
>>
>> 500 | Internal Server Error | InvalidArgumentException
>> Unable to load "JavascriptHelper.php" helper in:
>> SF_ROOT_DIR\apps\frontend\modules/hello/lib/helper,
>> SF_ROOT_DIR\apps\frontend\lib/helper, SF_ROOT_DIR\lib/helper,
>> SF_ROOT_DIR\lib\vendor\symfony\lib/helper.
>> stack trace
>> 1.at ()
>> in
>> SF_ROOT_DIR\lib\vendor\symfony\lib\config\sfApplicationConfiguration.class.php
>> line 663 ...
>> 660.
>> 661.        if (!$included)
>> 1.        {
>> 2.          throw new InvalidArgumentException(sprintf('Unable to load
>> "%sHelper.php" helper in: %s.', $helperName, implode(', ',
>> array_map(array('sfDebug', 'shortenFilePath'), $dirs))));
>> 1.        }
>> 2.      }
>> 3.1.at sfApplicationConfiguration->loadHelpers(array('Javascript'),
>> 'hello')in SF_ROOT_DIR\lib\vendor\symfony\lib\helper\HelperHelper.php line
>> 24 ...{
>>   $context = sfContext::getInstance();
>>   $context->getConfiguration()->loadHelpers(func_get_args(),
>> $context->getModuleName());
>> }
>>
>> 3.at use_helper('Javascript')
>> in SF_ROOT_DIR\apps\frontend\modules\Hello\templates\jaySuccess.php line 3
>> ...
>>
>> <h1>Template: jay</h1>
>> <?php use_helper('Javascript') ?>
>> <div id="item_list"></div>
>> <?php echo form_remote_tag(array(
>>     'update'   => 'item_list',
>> 1.atrequire('D:\xampp\htdocs\jproject\apps\frontend\modules\Hello\templates\jaySuccess.php')in
>> SF_ROOT_DIR\lib\vendor\symfony\lib\view\sfPHPView.class.php line 75 ...
>>     try
>>     {
>>       require($_sfFile);
>>     }
>>     catch (Exception $e)
>>     
>> {1.atsfPHPView->renderFile('D:\xampp\htdocs\jproject\apps\frontend\modules/hello/templates/jaySuccess.php')in
>> SF_ROOT_DIR\lib\vendor\symfony\lib\view\sfPHPView.class.php line 185
>> ...      $this->attributeHolder->set('sf_type', 'action');
>>       // render template file
>>       $content =
>> $this->renderFile($this->getDirectory().'/'.$this->getTemplate());
>>       if (sfConfig::get('sf_cache') && null !== $uri)
>>       {1.at sfPHPView->render()in
>> SF_ROOT_DIR\lib\vendor\symfony\lib\filter\sfExecutionFilter.class.php line
>> 155 ...        break;
>>       case sfView::RENDER_CLIENT:
>>         $viewData = $view->render();
>>         $this->context->getResponse()->setContent($viewData);
>>         break;
>> 1.at sfExecutionFilter->executeView('hello', 'jay', 'Success', array())in
>> SF_ROOT_DIR\lib\vendor\symfony\lib\filter\sfExecutionFilter.class.php line
>> 116 ...        return;
>>     }
>>     $this->executeView($actionInstance->getModuleName(),
>> $actionInstance->getActionName(), $viewName,
>> $actionInstance->getVarHolder()->getAll());
>>   }
>>   /**1.at sfExecutionFilter->handleView(object('sfFilterChain'),
>> object('HelloActions'), 'Success')in
>> SF_ROOT_DIR\lib\vendor\symfony\lib\filter\sfExecutionFilter.class.php line
>> 47 ...      $timer->addTime();
>>       $timer = sfTimerManager::getTimer(sprintf('View "%s" for "%s/%s"',
>> $viewName, $actionInstance->getModuleName(),
>> $actionInstance->getActionName()));
>>       $this->handleView($filterChain, $actionInstance, $viewName);
>>       $timer->addTime();
>>     }1.at sfExecutionFilter->execute(object('sfFilterChain'))in
>> SF_ROOT_DIR\lib\vendor\symfony\lib\filter\sfFilterChain.class.php line 53
>> ...      }
>>       // execute the next filter
>>       $this->chain[$this->index]->execute($this);
>>     }
>>   }
>> 1.at sfFilterChain->execute()in
>> SF_ROOT_DIR\lib\vendor\symfony\lib\filter\sfRenderingFilter.class.php line
>> 33 ...  public function execute($filterChain)
>>   {
>>     // execute next filter
>>     $filterChain->execute();
>>     // get response object
>>     $response = 
>> $this->context->getResponse();1.atsfRenderingFilter->execute(object('sfFilterChain'))in
>> SF_ROOT_DIR\lib\vendor\symfony\lib\filter\sfFilterChain.class.php line 53
>> ...      }
>>       // execute the next filter
>>       $this->chain[$this->index]->execute($this);
>>     }
>>   }
>> 1.at sfFilterChain->execute()in
>> SF_ROOT_DIR\lib\vendor\symfony\lib\controller\sfController.class.php line
>> 238 ...      }
>>       // process the filter chain
>>       $filterChain->execute();
>>     }
>>     else
>>     {1.at sfController->forward('hello', 'jay')in
>> SF_ROOT_DIR\lib\vendor\symfony\lib\controller\sfFrontWebController.class.php
>> line 48 ...      }
>>       // make the first request
>>       $this->forward($moduleName, $actionName);
>>     }
>>     catch (sfException $e)
>>     {1.at sfFrontWebController->dispatch()in
>> SF_ROOT_DIR\lib\vendor\symfony\lib\util\sfContext.class.php line 170 ...
>> */
>>   public function dispatch()
>>   {
>>     $this->getController()->dispatch();
>>   }
>>   /**1.at sfContext->dispatch()in SF_ROOT_DIR\web\frontend_dev.php line
>> 13
>> ...require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
>> $configuration =
>> ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', true);
>> sfContext::createInstance($configuration)->dispatch();
>>
>> symfony settings ...
>> mod_hello_enabled: true
>> mod_hello_view_class: sfPHP
>> sf_admin_module_web_dir: /sfDoctrinePlugin
>> sf_admin_web_dir: /sf/sf_admin
>> sf_app: frontend
>> sf_app_base_cache_dir: 'D:\xampp\htdocs\jproject\cache\frontend'
>> sf_app_cache_dir: 'D:\xampp\htdocs\jproject\cache\frontend\dev'
>> sf_app_config_dir: 'D:\xampp\htdocs\jproject\apps\frontend\config'
>> sf_app_dir: 'D:\xampp\htdocs\jproject\apps\frontend'
>> sf_app_i18n_dir: 'D:\xampp\htdocs\jproject\apps\frontend\i18n'
>> sf_app_lib_dir: 'D:\xampp\htdocs\jproject\apps\frontend\lib'
>> sf_app_module_dir: 'D:\xampp\htdocs\jproject\apps\frontend\modules'
>> sf_app_template_dir: 'D:\xampp\htdocs\jproject\apps\frontend\templates'
>> sf_apps_dir: 'D:\xampp\htdocs\jproject\apps'
>> sf_cache: false
>> sf_cache_dir: 'D:\xampp\htdocs\jproject\cache'
>> sf_charset: utf-8
>> sf_check_lock: false
>> sf_compressed: false
>> sf_config_cache_dir: 'D:\xampp\htdocs\jproject\cache\frontend\dev\config'
>> sf_config_dir: 'D:\xampp\htdocs\jproject\config'
>> sf_csrf_secret: 4f9618e8dfa2b1dee68a78451c6fc90f941ab3bd
>> sf_data_dir: 'D:\xampp\htdocs\jproject\data'
>> sf_debug: true
>> sf_default_culture: en
>> sf_enabled_modules:
>>   - default
>> sf_environment: dev
>> sf_error_404_action: error404
>> sf_error_404_module: default
>> sf_error_reporting: 32767
>> sf_escaping_method: ESC_SPECIALCHARS
>> sf_escaping_strategy: true
>> sf_etag: false
>> sf_file_link_format: null
>> sf_i18n: false
>> sf_i18n_cache_dir: 'D:\xampp\htdocs\jproject\cache\frontend\dev\i18n'
>> sf_lib_dir: 'D:\xampp\htdocs\jproject\lib'
>> sf_log_dir: 'D:\xampp\htdocs\jproject\log'
>> sf_logging_enabled: true
>> sf_login_action: login
>> sf_login_module: default
>> sf_module_cache_dir: 'D:\xampp\htdocs\jproject\cache\frontend\dev\modules'
>> sf_module_disabled_action: disabled
>> sf_module_disabled_module: default
>> sf_no_script_name: false
>> sf_orm: doctrine
>> sf_plugins_dir: 'D:\xampp\htdocs\jproject\plugins'
>> sf_root_dir: 'D:\xampp\htdocs\jproject'
>> sf_secure_action: secure
>> sf_secure_module: default
>> sf_standard_helpers:
>>   - Partial
>>   - Cache
>> sf_symfony_lib_dir: 'D:\xampp\htdocs\jproject\lib\vendor\symfony\lib'
>> sf_template_cache_dir:
>> 'D:\xampp\htdocs\jproject\cache\frontend\dev\template'
>> sf_test_cache_dir: 'D:\xampp\htdocs\jproject\cache\frontend\dev\test'
>> sf_test_dir: 'D:\xampp\htdocs\jproject\test'
>> sf_upload_dir: 'D:\xampp\htdocs\jproject\web\uploads'
>> sf_use_database: true
>> sf_web_debug: true
>> sf_web_debug_web_dir: /sf/sf_web_debug
>> sf_web_dir: 'D:\xampp\htdocs\jproject\web'
>> request ...
>> options:
>>   path_info_key: PATH_INFO
>>   path_info_array: SERVER
>>   http_port: null
>>   https_port: null
>>   default_format: null
>>   logging: '1'
>>   relative_url_root: null
>>   formats: { txt: text/plain, js: [application/javascript,
>> application/x-javascript, text/javascript], css: text/css, json:
>> [application/json, application/x-json], xml: [text/xml, application/xml,
>> application/x-xml], rdf: application/rdf+xml, atom: application/atom+xml }
>>   no_script_name: false
>> parameterHolder:
>>   action: jay
>>   module: hello
>> attributeHolder:
>>   sf_route: 'sfRoute Object()'
>> response ...
>> status:
>>   code: 500
>>   text: 'Internal Server Error'
>> options:
>>   http_protocol: HTTP/1.1
>>   logging: '1'
>>   charset: utf-8
>>   send_http_headers: true
>>   content_type: 'text/html; charset=utf-8'
>> cookies: {  }
>> httpHeaders:
>>   Content-Type: 'text/html; charset=utf-8'
>> javascripts: {  }
>> stylesheets:
>>   main.css: {  }
>> metas: {  }
>> httpMetas:
>>   Content-Type: 'text/html; charset=utf-8'
>> user ...
>> options:
>>   auto_shutdown: false
>>   culture: null
>>   default_culture: en
>>   use_flash: true
>>   logging: '1'
>>   timeout: 1800
>> attributeHolder: {  }
>> culture: en
>> authenticated: false
>> credentials: {  }
>> lastRequest: 1302087698
>> global vars ...
>> cookie: {  }
>> env: {  }
>> files: {  }
>> get: {  }
>> post: {  }
>> server:
>>   AuthDigestEnableQueryStringHack: On
>>   COMSPEC: 'C:\Windows\system32\cmd.exe'
>>   DOCUMENT_ROOT: 'D:/xampp/htdocs'
>>   GATEWAY_INTERFACE: CGI/1.1
>>   HTTP_ACCEPT: 'image/jpeg, application/x-ms-application, image/gif,
>> application/xaml+xml, image/pjpeg, application/x-ms-xbap,
>> application/x-shockwave-flash, application/vnd.ms-excel,
>> application/vnd.ms-powerpoint, application/msword, */*'
>>   HTTP_ACCEPT_ENCODING: 'gzip, deflate'
>>   HTTP_ACCEPT_LANGUAGE: en-US
>>   HTTP_CONNECTION: Keep-Alive
>>   HTTP_HOST: localhost
>>   HTTP_USER_AGENT: 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
>> Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
>> 3.0.30729; .NET4.0C; Media Center PC 6.0; InfoPath.2; AskTbBT5/5.9.1.14019)'
>>   MIBDIRS: /xampp/php/extras/mibs
>>   MYSQL_HOME: \xampp\mysql\bin
>>   OPENSSL_CONF: /xampp/apache/bin/openssl.cnf
>>   PATH: 'C:\Perl\site\bin;C:\Perl\bin;C:\Program Files\PC Connectivity
>> Solution\;C:\Program Files\Common Files\Microsoft Shared\Windows
>> Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program
>> Files\Java\jdk1.6.0_21\bin;D:\tomcat_sakai\tomcat_sakai\bin;C:\Program
>> Files\Microsoft SQL Server\90\Tools\binn\;C:\xampp\mysql\bin;C:\Program
>> Files\Windows Live\Shared;C:\Sakai Development\subversion\bin;C:\Sakai
>> Development\maven-2.0.9\bin;D:\xampp\php'
>>   PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
>>   PATH_INFO: /hello/jay
>>   PATH_TRANSLATED: 'D:\xampp\htdocs\hello\jay'
>>   PHPRC: \xampp\php
>>   PHP_PEAR_SYSCONF_DIR: \xampp\php
>>   PHP_SELF: /jproject/web/frontend_dev.php/hello/jay
>>   QUERY_STRING: ''
>>   REMOTE_ADDR: '::1'
>>   REMOTE_PORT: '55071'
>>   REQUEST_METHOD: GET
>>   REQUEST_TIME: 1302087694
>>   REQUEST_URI: /jproject/web/frontend_dev.php/hello/jay
>>   SCRIPT_FILENAME: 'D:/xampp/htdocs/jproject/web/frontend_dev.php'
>>   SCRIPT_NAME: /jproject/web/frontend_dev.php
>>   SERVER_ADDR: '::1'
>>   SERVER_ADMIN: postmaster@localhost
>>   SERVER_NAME: localhost
>>   SERVER_PORT: '80'
>>   SERVER_PROTOCOL: HTTP/1.1
>>   SERVER_SIGNATURE: "<address>Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14
>> OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1
>> mod_perl/2.0.4 Perl/v5.10.1 Server at localhost Port 80</address>\n"
>>   SERVER_SOFTWARE: 'Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14
>> OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1
>> mod_perl/2.0.4 Perl/v5.10.1'
>>   SystemRoot: 'C:\Windows'
>>   TMP: \xampp\tmp
>>   WINDIR: 'C:\Windows'
>>   argc: 0
>>   argv: {  }
>> session: {  }
>> symfony v.1.4.11 - php 5.3.1
>> for help resolving this issue, please visit
>> http://www.symfony-project.org/.
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to