I just realized that some of developers get confused about the settings that related to the web applications that generated by PHPMaker which uses the Extensions I created (for version 9.2.0 and 10). Moreover, after step-by-step implementing Masino Extensions, then they changed the related settings from the generated configuration (ewcfg10.php) file, but unfortunately, the change does not happened in the web application. So, what's wrong with this?
All right, just relax and take an easy, guys! I know, this probably since they have not known, yet, that now they will have two options regarding the web application configuration settings. The first option came from the settings and users tables in the database. The second option came from the generated configuration (ewcfg10.php) file. So you have to choose one of those options.
By default, if you have implemented all the steps in the article in the first paragraph above, then the web application will use all the settings from the settings and users tables in the database. That being said, if you change the related constants from the generated configuration (ewcfg10.php) file, then you will not see the change in the web application. The solution is: You have to change the value either from the settings or users table. The user settings will actually override the general settings that defined in the settings table.
However, not all the web application settings that defined in the constants in the generated configuration file are handled also from the database. That being said, of course, if you do not see those such constants are not handled inside My_Global_Check() function, then the related settings will use the constants from the generated configuration file. A very simple logic, right?
If you want to obviously use the configuration settings from the generated configuration (ewcfg10.php) file and ignore all the configuration settings from the database, then simply change the following code in that ewcfg10.php file:
define("MS_USE_CONSTANTS_IN_CONFIG_FILE", FALSE, TRUE); // this is useful if you don't want to use the configuration settings from database, just use from this file!
become:
define("MS_USE_CONSTANTS_IN_CONFIG_FILE", TRUE, TRUE); // this is useful if you don't want to use the configuration settings from database, just use from this file!
This change will ignore all the settings from the settings and users tables in the database. In other words, if you enable the MS_USE_CONSTANTS_IN_CONFIG_FILE, then the web application will always use the related setting from the generated configuration file.
So, which one would you choose? All the decision now is in your hand. 🙂
Hi Masino,
i try to change settings of my web application from form but not working.
When I change value from grid and then save….i don’t see some changed.
Why? How can i do it?
I want to change ( example css, align menu, etc….) from form and not from phpmaker software.
Thank you,
i’m sorry for my english.
Andrea.
You need to logout and login again to apply the changes.
Thank you Masino.
If I have any problem, can i ask help you?
Thank again.
Andrea
Sure, you can.
Hi Masino,
When I select default theme from Themeslist, the theme don’t change.
To change theme, I need to copy ID THEME in field Default Theme into Setting Table.
How can i write automatically the id theme in fiele Default Theme (Setting table)?
Then, why can i do select more default theme from Themeslist table?
In setting table, when i not checked Option Default, the layout is wrong. Why?
Thank you so much,
Andrea.
Make sure you have already set the following constant in ewcfg*.php file:
define("MS_USE_CONSTANTS_IN_CONFIG_FILE", FALSE, TRUE);Hi Masino,
i have already set the constant in ewcfg11.php file in
define(“MS_USE_CONSTANTS_IN_CONFIG_FILE”, FALSE, TRUE);
but not working.
Thank you.
Andrea.
As mentioned above: you need to logout, and then login again to apply the changes.
I i ‘ve logged out and then login but not working.
Sorry,
Andrea
It should work, and this should be not an issue. I suggest you to try the new project I provided from this article.