Jump to content
Sign in to follow this  
Raphaël Malié

The dispatcher

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 :)

Share this post


Link to post
Share on other sites

Sounds great!

 

What if you're currently using commands to stretch out a PHP center column to right column.

 

I.E. Global.CCS

body#cms #center_column { width: 718px; margin: 0px 14px 0px 16px;}

Share this post


Link to post
Share on other sites

This will be a lot better for security & explains the changes in the globals.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More