Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rafaelcalleja/phpcrfileattachainline
Download automatic inline file's documents
https://github.com/rafaelcalleja/phpcrfileattachainline
Last synced: 7 days ago
JSON representation
Download automatic inline file's documents
- Host: GitHub
- URL: https://github.com/rafaelcalleja/phpcrfileattachainline
- Owner: rafaelcalleja
- Created: 2013-03-04T14:09:34.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-16T13:12:51.000Z (almost 11 years ago)
- Last Synced: 2024-04-04T04:58:46.895Z (8 months ago)
- Language: PHP
- Size: 348 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PHPCRFileAttachaInline
======================# Installation
## Step 1: Installation
```
php composer.phar install rc/phpcr-fai-bundle
```## Step 2: Enable the bundle
Enable the bundle in the kernel:
``` php
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/(.*\.(pdf|zip|doc|txt|PDF|ZIP|DOC|TXT))$
RewriteRule .* app.php [QSA,L,E=_ROUTING__route:rcphpcr_file_attach_inline_homepage,E=_ROUTING_file:%1,E=_ROUTING_DEFAULTS__controller:RC\\PHPCR\\FileAttachInlineBundle\\Controller\\DefaultController\:\:FindAction]
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]```