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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

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


Go to End


1540 Views

Avatar
pouic

Community Member, 19 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?