• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

php files being taken over by xenforo.

Xarcell

Well-known member
#1
I understand it probably for security reasons, but I keep trying to add just normal php files to the directory where xenForo was installed.

When I go to view the file, it throws out this error: The controller does not define an action called

Very frustrating. How do I fix this?
 

Cory Booth

Well-known member
#2
There is a learning curve and it starts with a quick read on MVC.
Try putting your php file in an outside directory.
It's not that php is disabled for security, it is a completely a new method of rendering webpages based on - MVC
 

Xarcell

Well-known member
#3
I cannot put it in an outside directory if my if xf is installed at domain root.

Ok, i just created a new directory and placed it there. That worked.

Thanks.
 

ibnesayeed

Well-known member
#4
It is because, in MVC architecture, routing is handled differently. Not the way usual public directory path based architecture works.
 

Xarcell

Well-known member
#7
yeah, it works if I create a directory. However if I place that file in a directory such as "library", it throws that error at me. I don't know why.
 

Shadab

Well-known member
#8
yeah, it works if I create a directory. However if I place that file in a directory such as "library", it throws that error at me. I don't know why.
Any file inside your /library directory can not (and should not) be accessed publicly.
There's a .htaccess file inside that directory which blocks any http requests:

Code:
Order deny,allow
Deny from all