Why not just a javascript library for a lightbox instead of using a
Symfony module?

On Jan 18, 10:19 am, Martin Settle <martin.set...@gmail.com> wrote:
> In the call to light_modallink you need to point to the module action
> that will return the contents of the lightbox...
>
> i.e. rather than 'sfLightboxPlugin/modal' you might have
> 'myModule/index' or whatever other action returns the information you
> want to display.
>
> Regards,
> Marti
>
> 2010/1/18 Javier Garcia <tirengar...@gmail.com>:
>
> > Hi,
>
> > i've just installed sfLightboxPlugin in sf 1.2.10 through:
>
> > symfony plugin:install sfLightboxPlugin
> > symfony plugin:publish-assets
> > symfony cc
>
> > Then i wrote this code (i copied it from sfLighboxplugin "Readme"):
>
> > <?php use_helper('Lightbox'); ?>
>
> > <?php
> > // Modal Lightbox plugin test
> > $link_options = array(
> >     'title' => 'sfLightboxPlugin',
> >     'size'  => '550x200',
> >     'speed' => '6'
> > );
>
> > // or
> > //$link_options='title=sfLightboxPlugin size=450x180 speed=5';
> > //$link_options='title="sfLightboxPlugin" class=resizespeed_5
> > blocksize_450x180';
>
> > echo light_modallink(
> >   '&raquo; Link to test the modal box &laquo;',
> >   'sfLightboxPlugin/modal',
> >   $link_options
> > );
>
> > When i click over the link created  the modal window appears for an
> > instant (the typical icon that spins is showed ) but i get this error
> > message:
>
> > 404 | Not Found | sfError404Exception
> > Action "sfLightboxPlugin/modal" does not exist.
> > stack trace
>
> >     * at ()
> >       in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/
> > sfController.class.php line 202 ...
> >              199.         $this->dispatcher->notify(new sfEvent($this,
> > 'application.log', array(sprintf('Action "%s/%s" does not exist',
> > $moduleName, $actionName))));
> >              200.       }
> >              201.
> >              202.       throw new sfError404Exception(sprintf('Action
> > "%s/%s" does not exist.', $moduleName, $actionName));
> >              203.     }
> >              204.
> >              205.     // create an instance of the action
> >     * at sfController->forward('sfLightboxPlugin', 'modal')
> >       in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/
> > sfFrontWebController.class.php line 48 ...
> >               45.       }
> >               46.
> >               47.       // make the first request
> >               48.       $this->forward($moduleName, $actionName);
> >               49.     }
> >               50.     catch (sfException $e)
> >               51.     {
> >     * at sfFrontWebController->dispatch()
> >       in SF_ROOT_DIR/lib/vendor/symfony/lib/util/sfContext.class.php
> > line 159 ...
> >              156.    */
> >              157.   public function dispatch()
> >              158.   {
> >              159.     $this->getController()->dispatch();
> >              160.   }
> >              161.
> >              162.   /**
> >     * at sfContext->dispatch()
> >       in SF_ROOT_DIR/web/frontend_dev.php line 13 ...
> >               10. require_once(dirname(__FILE__).'/../config/
> > ProjectConfiguration.class.php');
> >               11.
> >               12. $configuration =
> > ProjectConfiguration::getApplicationConfiguration('frontend', 'dev',
> > true);
> >               13. sfContext::createInstance($configuration)->dispatch
> > ();
> > 14.
>
> > symfony settings ...
>
> > app_categories:
> >   Perfil: @perfil
> >   Amigos: @amigos
> > app_params_to_escape_list:
> >   - loadingString
> >   - closeString
> > sf_admin_module_web_dir: /sfDoctrinePlugin
> > sf_admin_web_dir: /sf/sf_admin
> > sf_app: frontend
> > sf_app_base_cache_dir: /opt/lampp/htdocs/rs/cache/frontend
> > sf_app_cache_dir: /opt/lampp/htdocs/rs/cache/frontend/dev
> > sf_app_config_dir: /opt/lampp/htdocs/rs/apps/frontend/config
> > sf_app_dir: /opt/lampp/htdocs/rs/apps/frontend
> > sf_app_i18n_dir: /opt/lampp/htdocs/rs/apps/frontend/i18n
> > sf_app_lib_dir: /opt/lampp/htdocs/rs/apps/frontend/lib
> > sf_app_module_dir: /opt/lampp/htdocs/rs/apps/frontend/modules
> > sf_app_template_dir: /opt/lampp/htdocs/rs/apps/frontend/templates
> > sf_apps_dir: /opt/lampp/htdocs/rs/apps
> > sf_cache: false
> > sf_cache_dir: /opt/lampp/htdocs/rs/cache
> > sf_calendar_web_dir: /sf/calendar
> > sf_charset: utf-8
> > sf_check_lock: false
> > sf_check_symfony_version: false
> > sf_compressed: false
> > sf_config_cache_dir: /opt/lampp/htdocs/rs/cache/frontend/dev/config
> > sf_config_dir: /opt/lampp/htdocs/rs/config
> > sf_csrf_secret: false
> > sf_data_dir: /opt/lampp/htdocs/rs/data
> > sf_debug: true
> > sf_default_culture: en
> > sf_doc_dir: /opt/lampp/htdocs/rs/doc
> > sf_enabled_modules:
> >   - default
> >   - sfGuardAuth
> >   - sfLightboxPlugin
> > 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: false
> > sf_etag: false
> > sf_i18n: false
> > sf_i18n_cache_dir: /opt/lampp/htdocs/rs/cache/frontend/dev/i18n
> > sf_jquery_autocomplete: jquery.autocomplete.min.js
> > sf_jquery_core: jquery-1.3.2.min.js
> > sf_jquery_ui: jquery-ui-1.7.2.custom.min.js
> > sf_jquery_web_dir: /sfJqueryReloadedPlugin
> > sf_lazy_cache_key: false
> > sf_lib_dir: /opt/lampp/htdocs/rs/lib
> > sf_lightbox_css_dir: /sfLightboxPlugin/css/
> > sf_lightbox_images_dir: /sfLightboxPlugin/images/
> > sf_lightbox_js_dir: /sfLightboxPlugin/js/
> > sf_log_dir: /opt/lampp/htdocs/rs/log
> > sf_logging_enabled: true
> > sf_login_action: signin
> > sf_login_module: sfGuardAuth
> > sf_max_forwards: 5
> > sf_module_cache_dir: /opt/lampp/htdocs/rs/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: /opt/lampp/htdocs/rs/plugins
> > sf_prototype_web_dir: /sfProtoculousPlugin
> > sf_rich_text_js_dir: js/tiny_mce
> > sf_root_dir: /opt/lampp/htdocs/rs
> > sf_secure_action: secure
> > sf_secure_module: sfGuardAuth
> > sf_standard_helpers:
> >   - Partial
> >   - Cache
> >   - Form
> > sf_strip_comments: true
> > sf_symfony_lib_dir: /opt/lampp/htdocs/rs/lib/vendor/symfony/lib
> > sf_template_cache_dir: /opt/lampp/htdocs/rs/cache/frontend/dev/
> > template
> > sf_test_cache_dir: /opt/lampp/htdocs/rs/cache/frontend/dev/test
> > sf_test_dir: /opt/lampp/htdocs/rs/test
> > sf_upload_dir: /opt/lampp/htdocs/rs/web/uploads
> > sf_use_database: true
> > sf_validation_error_class: form_error
> > sf_validation_error_id_prefix: error_for_
> > sf_validation_error_prefix: ' &darr;&nbsp;'
> > sf_validation_error_suffix: ' &nbsp;&darr;'
> > sf_web_debug: true
> > sf_web_debug_web_dir: /sf/sf_web_debug
> > sf_web_dir: /opt/lampp/htdocs/rs/web
>
> > request ...
>
> > parameterHolder:
> >   action: modal
> >   module: sfLightboxPlugin
> > attributeHolder:
> >   sf_route: 'sfRoute Object()'
>
> > response ...
>
> > 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: {  }
> > metas: {  }
> > httpMetas: {  }
>
> > user ...
>
> > options:
> >   auto_shutdown: false
> >   culture: null
> >   default_culture: en
> >   use_flash: true
> >   logging: '1'
> >   timeout: 1800
> > attributeHolder:
> >   sfGuardSecurityUser: { user_id: '1' }
> >   symfony/user/sfUser/attributes: {  }
> > culture: en
>
> > global vars ...
>
> > cookie:
> >   symfony: 63j6jgv88vq4ed10v8pdc48fi6
> > env: {  }
> > files: {  }
> > get: {  }
> > post: {  }
> > server:
> >   DOCUMENT_ROOT: /opt/lampp/htdocs/rs/web
> >   GATEWAY_INTERFACE: CGI/1.1
> >   HTTP_ACCEPT: 'text/javascript, text/html, application/xml, text/xml,
> > */*'
> >   HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
> >   HTTP_ACCEPT_ENCODING: 'gzip,deflate'
> >   HTTP_ACCEPT_LANGUAGE: 'en-us,en;q=0.5'
> >   HTTP_CONNECTION: keep-alive
> >   HTTP_COOKIE: symfony=63j6jgv88vq4ed10v8pdc48fi6
> >   HTTP_HOST: rs.localhost
> >   HTTP_KEEP_ALIVE: '300'
> >   HTTP_REFERER: 'http://rs.localhost/frontend_dev.php/mensaje/prueba'
> >   HTTP_USER_AGENT: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
> > 1.9.1.7) Gecko/20091221 Firefox/3.5.7'
> >   HTTP_X_PROTOTYPE_VERSION: 1.6.0.3
> >   HTTP_X_REQUESTED_WITH: XMLHttpRequest
> >   PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/
> > usr/X11R6/bin'
> >   PATH_INFO: /sfLightboxPlugin/modal
> >   PATH_TRANSLATED: 'redirect:/index.php'
> >   PHP_SELF: /frontend_dev.php/sfLightboxPlugin/modal
> >   QUERY_STRING: ''
> >   REMOTE_ADDR: 127.0.0.1
> >   REMOTE_PORT: '40622'
> >   REQUEST_METHOD: GET
> >   REQUEST_TIME: 1263664884
> >   REQUEST_URI: /frontend_dev.php/sfLightboxPlugin/modal
> >   SCRIPT_FILENAME: /opt/lampp/htdocs/rs/web/frontend_dev.php
> >   SCRIPT_NAME: /frontend_dev.php
> >   SERVER_ADDR: 127.0.0.1
> >   SERVER_ADMIN: y...@example.com
> >   SERVER_NAME: rs.localhost
> >   SERVER_PORT: '80'
> >   SERVER_PROTOCOL: HTTP/1.1
> >   SERVER_SIGNATURE: "<address>Apache/2.2.12 (Unix) DAV/2 mod_ssl/
> > 2.2.12 OpenSSL/0.9.8k PHP/5.3.0 mod_apreq2-20051231/2.6.0 mod_perl/
> > 2.0.4 Perl/v5.10.0 Server at rs.localhost Port 80</address>\n"
> >   SERVER_SOFTWARE: 'Apache/2.2.12 (Unix) DAV/2 mod_ssl/2.2.12 OpenSSL/
> > 0.9.8k PHP/5.3.0 mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/
> > v5.10.0'
> >   UNIQUE_ID: s...@9h8aaqeaackisa8aaaal
> > session:
> >   symfony/user/sfUser/attributes: { symfony/user/sfUser/attributes:
> > {  }, sfGuardSecurityUser: { user_id: '1' } }
> >   symfony/user/sfUser/authenticated: true
> >   symfony/user/sfUser/credentials: {  }
> >   symfony/user/sfUser/culture: en
> >   symfony/user/sfUser/lastRequest: 1263664879
>
> > symfony v.1.2.10 - php 5.3.0
> > for help resolving this issue, please visithttp://www.symfony-project.org/.
>
> > Any idea?
>
> > Javi
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "symfony users" group.
> > To post to this group, send email to symfony-us...@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.
-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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