Jump to content

Prestashop 1.7 local environment and symfony server:run command


AndrewRadchenko
 Share

Recommended Posts

Prestashop 1.7+ is based on Symfony.
 
Symfony local environment debug mode means, that you runs command "php app/console (or bin/console at Symfony v3+) server:run" to start local webserver emulation and to view your project with local browser at localhost address (e.g. 127.0.0.1) without any WAMP, MAMP, XAMPP etc. 
 
Also, local debug mode means, that you use app_dev.php prefix to view site in debug mode (with error and performance reports, profilers and other cool symfony features)
 
There is also commands in Symfony like "php app/console (or bin/console at Symfony v3+) doctrine:schema:validate)", to validate if Doctrine entities model correlate with Mysql database.
 
So my questions are:
 
1. Is Prestashop 1.7+ support "php app/console (or bin/console at Symfony v3+) server:run"?
2. Is Prestashop 1.7+ support Symfony app_dev.php debug mode?
3. Should I use "php app/console (or bin/console at Symfony v3+) doctrine:schema:validate)" to ensure that model and database are correct?
4. Are there any plans to use Twig instead of Smarty?
 

 

Thanks.
Edited by AndrewRadchenko (see edit history)

Share this post


Link to post
Share on other sites

Hi and welcome to the forum.

 

 

Prestashop 1.7+ is based on Symfony.
 

 

Well this is not quite true, it is not based, but PrestaShop do use Symfony and it is version 2.8.6.

It is used though just in back office Product and Module page., so not whole store for sure. And if you install 1.7 version you can test commands you want

but if you enable debug mode you will see on just those pages Symfony web debug toolbar. 

 

For plans maybe in 2.0 but who knows when that is going to happen.

Share this post


Link to post
Share on other sites

  • 3 years later...

hey @SPolischook

Yes it is in progress think with every 1.7 version more admin pages got turned to Symfony ones. 

You can see in demos it is slightly different theme on different admin page.

Check this https://build.prestashop.com/news/prestashop-in-2019-and-beyond-introduction/ could be interesting for you.

 

But answer to your question about help please ask on prestashop.slack.com

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

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