Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

[SS 2.x] - Run php files on assets folder


Reply


450 Views

Avatar
pouic

Community Member, 16 Posts

17 January 2013 at 9:46am

I need create one php page for facebook applications and want added to my assets folder.

in my assets folder have another folder with the name fan-page. Inside that have .htaccess and index.php

.htaccess

<IfModule mod_rewrite.c>
   RewriteEngine On # Turn on the rewriting engine
   RewriteRule .* /index.php [L]
</IfModule>

index.php

<?php echo "hello facebook word"?>

When access to page have the message

The action 'fan_page' does not exist in class AssetAdmin

Any ideia to access content of php?