ga('send', 'pageview');

Top JavaScript Trends In 2019

As we realize that the advanced world is multi-layered, a few bits of innovation meet up to offer you experience through a savvy screen. On the off chance that you ever consider how pages and sites are giving your business a lift, at that point there are numerous things behind the drape including top full stack web advancement organizations. In this blog, we will separate such innovations/pattern...

Life Cycle of Yii 1.x

1. Pre-initialize the application with CApplication::preinit(); 2. Set up the class autoloader and error handling; 3. Register core application components; 4. Load application configuration; 5. Initialize the application with CApplication::init() • Register application behaviors; • Load static application components; 6. Raise an onBeginRequest event; 7. Process the user request: • C...

Application components available on Yii

Yii predefines a set of core application components to provide features common among Web applications. For example, the request component is used to collect information about a user request and provide information such as the requested URL and cookies. By configuring the properties of these core components, we can change the default behavior of nearly every aspect of Yii. Yii core components th...

WordPress Contact Form 7 create a custom URL validation

In WP the Contact Form 7 is one of the most popular plugins for creating contact forms. One thing that you might have noticed though is that the validation of the URL field will not fail when you expect them to fail. For example, with the URL value of http://ikodes.com, the plugin will consider this as a valid URL, even though, the URL value is missing top level domain part. The solution to this p...

different types errors php

What are the different types of errors in PHP? Please find out the below details - E_ERROR: A fatal error that causes script termination - E_WARNING: Run-time warning that does not cause script termination - E_PARSE: Compile time parse error. - E_NOTICE: Run time notice caused due to error in code - E_CORE_ERROR: Fatal errors that occur during PHP's initial startup (installation) - E_CORE...

add category tree structure in magento

this post we will see how generate a category tree, recursively showing all categories and sub categories. Preparing function in  magento
public function getCategoriesArray() { $categoriesArray = Mage::getModel('catalog/category') ->getCollection() ->addAttributeToSelect('name') ->addAttributeToSort('path',...

product tier price addupdate magento

you can use some PHP code that uses the Magento code to query for a list of products that match those criteria and then adjust each one  
 <?php require 'app/Mage.php'; $app = Mage::app('default'); // Mage_Core_Model_App $store = $app->getStore(); // Mage_Core_Model_Store $products = Mage::getModel('catalog/product')->getCollection(); // filt...

Object Oriented Concepts in php

Important terms related to Object Oriented Programming. Class − This is a programmer-defined data type, which includes local functions as well as local data. You can think of a class as a template for making many instances of the same kind (or class) of object. Object − An individual instance of the data structure defined by a class. You define a class o...