[symfony-users] Invitation to connect on LinkedIn
LinkedIn Luis Zarrabeitia requested to add you as a connection on LinkedIn: -- Sammi, I'd like to add you to my professional network on LinkedIn. - Luis Accept invitation from Luis Zarrabeitia http://www.linkedin.com/e/qO9B2I_WgRga1ha72C9BjT1ZSbs3iZVTpH9BLz9GKgVHV4/blk/I603591148_3/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cRYUd34NejkPc3p9bQxUiPsUemRGbPoVdPwTejcTcj4LrCBxbOYWrSlI/EML_comm_afe/ View invitation from Luis Zarrabeitia http://www.linkedin.com/e/qO9B2I_WgRga1ha72C9BjT1ZSbs3iZVTpH9BLz9GKgVHV4/blk/I603591148_3/0PnPwQcj4VdjcMdAALqnpPbOYWrSlI/svi/ -- Why might connecting with Luis Zarrabeitia be a good idea? Luis Zarrabeitia's connections could be useful to you: After accepting Luis Zarrabeitia's invitation, check Luis Zarrabeitia's connections to see who else you may know and who you might want an introduction to. Building these connections can create opportunities in the future. -- (c) 2010, LinkedIn Corporation -- 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 To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
[symfony-users] Linking to the upload path from a template.
Hello. I'm new to Symfony and I decided to learn by developing a small web app. Right now, I have a form that uploads an image: 'image' => new sfValidatorFile(array( 'required' => false, 'path' => sfConfig::get('sf_upload_dir').'/myImages', 'mime_types' => 'web_images', )), The images are getting uploaded to the right place (http://localhost/ myapp/uploads/myImages). Now, when I try to include them from a template, how do I access the web path? I don't want to hardcode / myapp/uploads, because at least the /myapp part could change (for instance, on deployment). Is there any configuration setting or variable that I could access from the template? Also, it seems that the sfValidatorFile stores/returns only the filename, which means that I will have to hardcode /myImages. Am I missing something? Is there a better way to retrieve the path relative to the upload dir? Luis. -- 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