CodeIgniter 4 is a rewrite of the framework. On February 24, 2020, which would be Jim Perry’s birthday, CodeIgniter 4 was launched. Between the launch of the first stable version of CodeIgniter 3 and CodeIgniter 4, it took almost 5 years.

The “lean, mean, and simple” philosophy has been retained, but the implementation has a lot of differences, compared to CodeIgniter 3.

CodeIgniter 4 is very different from 3 and below you will see the main differences between them.

1. PHP versions

  • CodeIgniter 4 required minimum PHP version 7.2
  • CodeIgniter 3 it is possible to use PHP version 5.6 (The developers of PHP are no longer supporting PHP 5.6)

2. Composer

  • CodeIgniter 4 can be download in two ways
    #1 Available as a ready-to-run zip or tarball.
    #2 It can also be installed using Composer
  • CodeIgniter 3 can not be installed using composer

3. Directory Structure

  • CodeIgniter 4 devided into 5 directory /app,/system,/public,/writable,/tests
  • CodeIgniter 3 has 2 directories:/application and /system`

4. Namespaces

  • CodeIgniter 4 is built for PHP7.2+, and everything in the framework is namespaced, except for the helpers.
  • CodeIgniter 3 does not use namespaces.

5. Autoloading

  • CodeIgniter 4 has a autoload process of class, by use of namespaces
  • CodeIgniter 3 has a manual process to configure most of the files to be loaded.

Thank you for reading and Keep visit here for more latest updates on PHP frameworks.

woocommerce_custom_img

Motto: Client wants to change the layout of single product page of Woocommerce, the challenge is when we upgrade the Woocommerce plugin, it will overwrite all the code files so customization will be removed. So we need to find out the way by which we can customize the Woocommerce & we can upgrade it by just once click from WordPress back end.
Read more

Follow the below 7 steps to create a Test or Demo site on your server.

  1. Create a subdirectory: Create a Subdirectory on your server where you want to create a “Test” site.

    cd /home/domain/public_html/
    mkdir test

  2. Copy all Magento files from public_html directory to the newly created “test” folder

    cp -r /home/domain/public_html/* /home/domain/public_html/test/
    cp /home/domain/public_html/.htaccess /home/domain/public_html/test/

  3. Create a new database for test site: Test environment will use a separate database, So we need to create a database as well. This can be done in the control panel of your hosting account. for ex: test_db
  4. Export the database: Now we need to export the current Magento database. You can use phpmyadmin to export the database or you can use the below command to export the database.

    mysqldump –insert-ignore –single-transaction -u[USERNAME]  -p[PASSWORD] [DB_NAME] | zip > dump.sql.gz

    Notes : You need to replace the SQUARE BRACKETS values with your values.

  5. Import the database: Now we need to import the database which we have export in above step. you can import the database from phpmyadmin IMPORT tab or you can do that with the following command also.

    gunzip < dump.sql.gz | mysql -f -u[USERNAME] -p[PASSWORD] [DB_NAME]

    Notes : You need to replace the SQUARE BRACKETS values with your values.

  6. Change the base_url: You must have to change the base-URL in the Magento database table called “core_config_data”.

    UPDATE core_config_data SET value=”http://www.domain.com/test/” WHERE path=’web/secure/base_url’;
    UPDATE core_config_data SET value=”http://www.domain.com/test/” WHERE path=’web/unsecure/base_url’;

  7. Clear the cache: Last step is to clear the cache. you can do it from the following directory.

    “/home/domain/public_html/test/var/”

best-technology

There are a plenty of plateforms / technology available to start your website but which is best for you ? here’s possibly the most comprehensive guide ever.

What needs to be considerd before you choose the platform ?

  1. Cost
  2. Easy
  3. Scalability
  4. Performance
  5. Compatibility
  6. Advantages
  7. Disadvantages

Read more

htc-vive

In the last 10 years the world has changed beyond our expectations.

It will be hard to believe that The technology that we are using now are not aged more than 12years. For example smart-phones and ATM’s. And they became a part of our life in a short period of time.

The words which we are heard frequently nowadays is

    1. Virtual reality (Oculus rift and HTC vive) : We can expect VR system will become more popular in coming years.

Read more