Jump to content

Recommended Posts

The dispatcher is one of the main new technical feature of 1.5 version. Instead of using multiple files on the root folder like product.php, order.php or category.php, only one file is used : index.php.

 

URI will look like index.php?controller=category, index.php?controller=product, etc.

 

There are several advantages for this system :

  • It's easier to add a controller.
  • You can use custom routes to change your friendly urls (really better for SEO !)
  • Only one single entry point in programm, which improve reliability of PrestaShop, and facilitates developments

You can discuss here about the dispatcher and give us feedbacks and ideas :)

Link to comment
Share on other sites

An other great adding for devs' around controllers : 1.5 will have 3 abstract classes : Controller, FrontController and AdminController (The two last inheriting from the first one). Thanks to Raphaël who worked a lot on that.

Link to comment
Share on other sites

  • 4 weeks later...

Another thing that I was waiting for, great ! :)

 

When I first used PrestaShop I was suprised that you were using several scripts to do the same thing...

 

However, IMHO there is still a major problem is PS : folders with source code are accessible by URL.

Those should be stored one folder up the public folder of the server.

The only public folders should be the theme, the css, js, and so on...

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...