jewelry displays boxes wholesale PHP Multi -language source code

jewelry displays boxes wholesale

3 thoughts on “jewelry displays boxes wholesale PHP Multi -language source code”

  1. wholesale costume jewelry no minimum order This should be said that the quality of open source code you see. Many well -known open source products are multi -language, such as Magento, Joomla, WordPress, Drupal, etc.
    Is for language switching, one may be that the open source products you use do not support, but more may be that the example code does not implement this function. Check if an open source product supports multi -language. You can usually see if there are Language or similar directory in the source code.
    For how to realize language switching, a simple process is as follows:
    1- Click the switching language button on the page
    2- Trigger a AJAX request, the language to be switched will notify the PHP terminal
    3- PHP is saved with new language code (such as zh-cn) in session to replace the original value (such as _Session [Language] = EN)
    4- Ajax Requests to trigger the callback function
    5- callback function after completion Refresh the current page
    Example
    u003Cinput type = "Button" Onclight = "(zh-cn)" value = "Chinese" />
    u003Cscript> nFunction (lang) {
    $ .post (/. PHP, {language: lang}, function () {
    local n}
    .php
    $ lang = $ _Request [language];
    $ _Session [language] = $ lang;

Leave a Comment