Featured post
php - Linking to a file in the Zend Framework -
when link directly uploaded file in zend framework based project differing results depending on if i'm working in local environment or remote environment.
in both cases want link uploaded photo. generated url looks like:
http://whateverserverweareon/projectfiles/project18/photos/aphoto.jpg
on local machine clicking link show me photo, in remote machine gives me warning "invalid controller..." (as, while not have "projectfiles" controller, uploaded photos in projectfiles directory on path specified in sample url).
so how link these uploaded photos? create controller can link them? can bypass controller altogether , link directly? there sort of custom route need create? should doing in different manner? suggestions?
the exception means on remote mashine file not exists in specified location. standard rewrite rules in .htaccess file written if file exists (i.e. /projectfiles/project18/photos/aphoto.jpg) index.php file of zf not executed. should check file exists.
- Get link
- X
- Other Apps
Comments
Post a Comment