
Search In
Helpers is a classes which contains presentation logic that is shared between many views,layouts and elements.
First need to create helper file which must be stored inside app/Helper/EntriesHelper.php
App::uses('AppHelper', 'View/Helper');
class M
Metadata Management:-
There are a few guidelines of creating meta data. We must see that tags that we create should be inside the if it is a webpage.
Also we need to provide meta data in pairs of name and values.
Meta data is of two types, one whic
If you have created_at and updated_at columns in the DB table. Rails will automatically set these values when you create and update a model object. There are chances that we have to update the columns without touching these columns.
You can do this
To create a random string of x characters using defined string of possible characters we will first of all define a function which will return a random string of length that you have passed as a parameter to the function. The script is given below:
In the below example I have created extend array function. Here first I have define array length then extend new array value. You can see below program it will clearly describe to extend array after initialization by creating an new array.
pu
To get the full date with time you can use the below code. You can pass any date that you wan to change, I'm getting date in full date format in the below example:
/**
* Get full month day year format from Date
*
This tutorial will help a user to create an http server in Node.js and run an applications at server side.
Follow the steps as below:
Install Node.js
Lets create a file test.js which we will place in the root directory of our application
To cr
Laravel provide us the facility to create our custom middleware for user's authentication. We can create different MIddleware for different roles. To accomplish it we need to follow the following steps.
Step 1st:- Creating new Middleware for role
In the last tutorial we learnt how to install RVM. In this one we will take one step further by creating Gemsets.
Note - Gemsets are used to eliminate “Gem clutter” and version mismatches. Also by creating Gemsets we can install multiple versions of
Sometimes we may be required to get the get last N records of a table in SQL server based on ordering on a specific column . In this post we will create a query to get the result. First let us create a table which we will use in our query.
CREATE T
