Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'symfony'

1350863 - DateHelper: symfony
  1. <?php
  2.  
  3. function format_daterange($start_date, $end_date, $format = 'd', $full_text, $start_text, $end_text, $culture = null, $charset = null)
  4. {
  5.   if ($start_date != '' && $end_date != '')
  6.   {
  7.     return sprintf($full_text, format_date($start_date, $format, $culture, $charset), format_date($end_date, $format, $culture, $charset));
  8.   }
  9.  
1266639 - CrossAppUrlHelper for sf 1.1: cross app symfony linker
  1. <?php
  2. /**
  3.  * @author Olivier Mansour
  4.  * @source http://www.glagla.org/weblog/2008/07/24/liens-inter-applications-avec-symfony-11/
  5.  */
  6.  
  7. /**
  8.  * return an url for a given symfony application and an internal url
  9.  
1082525 - Untitled: link app symfony helper
  1. function cross_app_link_to($app, $route, $args=null)
  2. {
  3.   /**
  4.    * Don't try to generate routes for the current app
  5.    */
  6.   $currentApp = sfConfig::get('sf_app') ;
  7.   sfConfig::set('foo', 'bar') ;
  8.   $currentConfig = sfConfig::getAll() ;
  9.  
worth-right
worth-right
fantasy-obligation