cakephp disable routing for specific URLs -


I have a CakePHP 1.3.10 app that I am trying to do:

I want to embed an MP3 file in some scenes using Google's Reader Flash Audio Player. If I place the MP3 file in the Webroot directory of my app, then there is no problem. However, I'd like to put those files in a directory named Audio at the same level as My App Directory: [public_html] [app] [cake] [ The problem is that if I put my MP3 files there, when I link them to my view, the cake controller Audio , Which does not exist, rather than just adding my file, I believe it is something with routing, So I was wondering if I could disable automatic routing for a particular folder (audio in this case).

I want to do this in such a way because in the future I may have to reach those MP3s from other websites, so I do not want them deep in the cake directory system.

Thank you very much for any suggestions!

Files that should be served on the web server directly without going through the cake / app / Webroot directory You can create such a / webroot directory along with plugins (see), which would technically use routing, but behave just like normal webtrot directory is.

If you give them places anywhere you are going against cake traditions, which I would not recommend. This is not because it is not possible, you just make your life harder as much as it is needed if you really want to do this, you can use your archive or archive your media files (as told by the @ IO) You can edit the /app/webroot/.htaccess file to rewrite some URLs. / P>

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -