Blog - codeem
Top 5 way to find whether a string contains a substring or not in JavaScript

Top 5 way to find whether a string contains a substring or not in JavaScript

How to check whether a string contains a substring in JavaScript ? This tutorial will help you to find a substring in a string using javascript’s function or methods. Here we are listed top 5 way to check whether a string contains a substring or not.   Top 5 way check whether a string contains a substring in Read more about Top 5 way to find whether a string contains a substring or not in JavaScript[…]

Top 10 way to Make a Page Redirect using Javascript

Top 10 way to Make a Page Redirect using Javascript

JavaScript redirect to another page. Here is top 10 way which show how you can make a page redirect using JavaScript. How JavaScript Redirect to Another Page When you entered a URL in browser to reach a website or page  X but internally you were directed to another website or page Y. It called JavaScript page Read more about Top 10 way to Make a Page Redirect using Javascript[…]

Website Screenshot using PHP

Website Screenshot using PHP

Want to capture Website Screenshot using PHP. This tutorial will help you to capturing website screenshot Here we are getting screen shot via use of Google page insights API. Using this we can easily capture websites screenshot. Both size of screenshot you can capture like desktop or mobile. Website Screenshot using PHP with Google API Key Below Read more about Website Screenshot using PHP[…]

How to include file in Smarty Template Engine

How to include file in Smarty Template Engine

Smarty include tags are used for include other smarty templates in the current template. Current template’s variables is also available within the included template. Smarty Include – File Attribute The {include} tag must have the file attribute which contains the template resource path. <html> <head> <title>{$title}</title> </head> <body> {include file=’page_header.tpl’} {* body of template goes Read more about How to include file in Smarty Template Engine[…]

Combining Smarty Modifiers

Combining Smarty Modifiers

Combining Smarty Modifiers is so easy. You can apply number of modifiers to a variables.They combined from left to right and separated by | (pipe) character See our last tutorial for  Smarty Variable Modifiers in details. Example for Combining Smarty Modifiers <?php $smarty->assign(‘articleTitle’, ‘Smokers are Productive, but Death Cuts Efficiency.’); ?> where template is: {$articleTitle} {$articleTitle|upper|spacify} Read more about Combining Smarty Modifiers[…]

Smarty Functions

Smarty Functions

Smarty functions are used to invokes some sort of function.Every Smarty tag either prints a variable or invokes function. Syntax:- {funcname attr1=”val1″ attr2=”val2″}. Smarty Functions Code Example To pass values to the function when calling it, follow the function name with name=”value” pairs: {function_name name1=”some value” name2=”some other value”} If the value of an attribute Read more about Smarty Functions[…]

Smarty Template Variable

Smarty Template Variable

Smarty Template Variable used to assign data as every languages have its own variable type smarty use variable which below points are match. Smarty Template variables start with the $dollar sign. They can contain numbers. We can also use letters. underscores is only special character, which use by smarty templates. Smarty variables is much like Read more about Smarty Template Variable[…]