You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to put a simple txt file for users to read when going on my test site websi.test.xyz/accounts.txt and it would say no route matched and print a stack trace of
#0 /home/askydipco/public_html/public/index.php(49): Core\Router->dispatch('accounts.txt') #1 {main}
Thrown in '/home/askydipco/public_html/Core/Router.php' on line 136.
I tried to place it in App/Views/accounts.txt and just php-mvc main folder and tried to route it but it didn't work.
Can you help Dave? Thanks!
The text was updated successfully, but these errors were encountered:
Hi - you need to put that file in the public folder, so public/accounts.txt. You should then be able to access it at example.com/accounts.txt. If you have the framework in a subfolder, you need to include that in the URL: example.com/subfolder/accounts.txt
If you do have the framework in a subfolder, and it still doesn't work, you might need some additional .htaccess configuration. If so let me know.
Hi dave,
I was trying to put a simple txt file for users to read when going on my test site websi.test.xyz/accounts.txt and it would say no route matched and print a stack trace of
#0 /home/askydipco/public_html/public/index.php(49): Core\Router->dispatch('accounts.txt')
#1 {main}
Thrown in '/home/askydipco/public_html/Core/Router.php' on line 136.
I tried to place it in App/Views/accounts.txt and just php-mvc main folder and tried to route it but it didn't work.
Can you help Dave? Thanks!
The text was updated successfully, but these errors were encountered: