Azure error: I can’t load view from the controller!

Asked

Viewed 31 times

1

I have a news registration system developed in PHP (MVC) in which each url triggers a controller that calls a view.

But in Azure is not called the corresponding view while in xampp/apache the system works perfectly.

How to configure access the view from the controller inside Azure ?

web code.config

<?xml version="1.0" encoding="UTF-8"?>
 <configuration>
    <system.webServer>
         <rewrite>
             <rules>
                 <rule name="Clean URL" stopProcessing="true">
                     <match url="^(.*)$" />
                     <conditions>
                         <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                         <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                     </conditions>
                     <action type="Rewrite" url="index.php/{R:1}" appendQueryString="false" />
                 </rule>
             </rules>
         </rewrite>
     </system.webServer>
 </configuration>

URL of PHP system in MVC: http://crudmvcphp.azurewebsites.net/

Repository of system code: https://github.com/alexjosesilva/CrudMVCPHP

inserir a descrição da imagem aqui

  • 1

    What is the PHP framework you are using?

  • 1

    I am using a pure framework. With minimal structure

  • https://github.com/alexjosesilva/CrudMVCPHP

  • So, have you ever tried to open up a leak on github about this problem? It may be a problem in the framework given that your settings are correct.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.