Advertisement
enkuso

sf1.4 fckeditor trick

Nov 12th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. // in ckfinder's config.php file
  2.  
  3. require_once(dirname(__FILE__).'/../../../config/ProjectConfiguration.class.php');
  4.  
  5. $configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', false);
  6.  
  7. // set 'current_form_upload_dir' to user's session
  8. $formDir = sfContext::createInstance($configuration)->getUser()->getAttribute('current_form_upload_dir');
  9.  
  10. $baseUrl = '/uploads/'.$formDir.'/';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement