Vatican – Church WordPress Theme

LIVE PREVIEWBUY FOR $45 Vatican is the latest WordPress Theme for Churches, Mosques or simply for Donations or Fundraising websites. It comes with Support for the Charitable Donations Plugin(The most popular donations plugin). Vatican also comes with niche functionalities for churches, such as: MT Sermons – Sermons on grid formats with support for audio, text and video media. MT Events – Modern and interactive events timelines with Single events pages (with countdowns, texts, maps and images). MT Pastors – list the members from the church using our shortcodes for crews.…

Read More

Aravira – Hotel WordPress Theme

LIVE PREVIEWBUY FOR $39 The Ultimate Theme for Hotel,Motel,Resort We’re proud to present to you the powerful, sharp and incredibly diverse WordPress theme built precisely for hotel, hostel, resort or any other accommodation services and excellent on line reservation system. Aravira is an incredible and exceptionally powerful WordPress theme designed from the ground up to build amazing and beautifully designed websites specifically for hotel, hostel, resort or any other accommodation services, and just about any other eatery business out there. Pixel Perfect Layouts Built with immense flexibility, with Aravira you…

Read More

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/patterns which you should know. The advancement of JavaScript is evolving quickly, particularly over the most recent a year. 2018 was per year with…

Read More

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: • Collect information about the request; • Create a controller; • Run the controller; 8. Raise an onEndRequest event;

Read More

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 that are pre-declared by CWebApplication • assetManager: CAssetManager – manages the publishing of private asset files. • authManager: CAuthManager – manages role-based access control (RBAC). • cache: CCache…

Read More

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 problem is to have a custom validation for the URL field. This article will show you…

Read More

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_WARNING: Warnings that occur during PHP’s initial startup – E_COMPILE_ERROR: Fatal compile-time errors indication problem with script. – E_USER_ERROR: User-generated error message. – E_USER_WARNING: User-generated warning message.…

Read More

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’, ‘asc’) ->load() ->toArray(); $categories = array(); foreach ($categoriesArray as $categoryId => $category) { if (isset($category[‘name’]) && isset($category[‘level’])) { $categories[] = array( ‘label’ => $category[‘name’], ‘level’ =>$category[‘level’], ‘value’ => $categoryId ); } } return $categories; } Front end  form please add below code to display your category $fieldset->addField(‘categories’, ‘multiselect’, array( ‘label’ => $this->__(‘Categories’), ‘name’ => ‘categories’, ‘values’ => $this->getCategoriesArray(), ));

Read More

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(); // filter out anything that doesnt match the customer group 4 $products->addFieldToFilter(‘customer_group’, ‘4’); // loop through each product and delete it for ($products->load() as $product) { $product->delete(); }

Read More

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 once and then make many objects that belong to it. Objects are also known as instance. Member Variable − These are the variables defined inside a class. This…

Read More