Tutorials
This is our main category for all our tutorial based articles. You can find almost anything from server configuration to website optimization.
PHP Smarty var_dump alternative and prestashop errors

PHP Smarty var_dump alternative and prestashop errors If you work on prestashop for example, and you want to make a debug for all or a certain variable from within a page you will have problems because you cannot use var_dump since Smarty is a templating language for PHP. Method 1
1 2 3 4 5 6 7 |
{php} $var = $this->get_template_vars('var'); var_dump($var); {/php} |
Method 2
1 |
{$var|@print_r} |
Method
How to change wordpress multisite URL

How to change WordPress Multisite URL I recently had a client that was trying to change WordPress Multisite URL to a new domain name, well for those that do not know already, WordPress usually hard code the URL inside the database, the table wp_options (wp_ being the table prefix of course). Right so why so
Transform a csv file to associative array in PHP
Working with Entities in Symfony2

Working with Entities in Symfony2 Symfony is a very powerfull PHP framework that helps you do amazing projects in small amount of time. It has built in support for Doctrine which is an incredible tool for interacting with databases, not through tables but through php objects. First let’s see what is an ORM and after that
How to do a batch insert in MySQL?
How to sort a multidimensional array based on key?
6 free mobile device emulators for testing your app

6 free mobile device emulators for testing your app If you made at least one website that was responsive, you certainly know how important these tools are. Here is a list with helpful websites in which I tested my apps during and after development. This is NOT a top, just a list. 1) Responsinator Responsinator
Symfony mapped entities error while generating getters and setters

Symfony mapped entities error while generating getters and setters If you ever used Symfony php framework, and you wanted to generate through command line the setters and getters for your entity after you defined everything in your entities files, and you got an error like this:
1 |
Namespace "Apn\ApnBundle\Entity\Users.php" does not contain any mapped entities. |
you probably want to know the solution of
How to set JAVA_HOME in your in your environment

How to set JAVA_HOME in your in your environment When installing some applications that would require to set JAVA_HOME path for your environment you would need in most cases to manually set the JAVA_HOME path as it would not be there automatically. Normally the error you get for this is:
1 |
java_home not found in your environment |
Adding JAVA_HOME in your
How to install open source video drivers in Ubuntu

How to install open source video drivers in Ubuntu In my earlier article I wrote about how to install the proprietary video drivers in ubuntu, however some of you will notice that not all video cards are supported. Especially ATI cards which usually have support for linux dropped quite early. With these cards you have