
Search In
make a controller name Pagescontroller.php and paste the following below code
<?php
class PagesController extends AppController {
public $name = 'Pages';
/* Use Customer model */
public $uses = array('Customer');
public functi
If you are creating subdomains using htaccess for this, you have to set the virtual host
Follow the below steps.
Step 1: Create a wildcard DNS entry first.
*.domain.com. 3600 A 127.0.0.1
Step 2: Now Setup the Virtual Host, in your vhost fil
Most of cakephp developer write custom query to join two table of database but cakephp provides best facility to join more than one two table in single query using association .
Let see an Example:-
SELECT *
FROM `messages`
INNER JOIN users ON mess
Hi Readers,
Below are steps you need to follow when you are checking if their is an Active Internet connection in an Iphone using (ARC and GCD compatible) class.
1) Add SystemConfiguration framework to the project but don’t worry about including it
Hello everyone,
I was working with navigation bar and found a way so that you could make the status as well as navigation bar transparent, your views could be shown bellow to the navigation bar, by default activity is shown above the navigation bar
User Name Validation Code: Use below code, to check if the name field only contains alphabet and white space.
$name = test_input($_POST["name"]);
if (!preg_match("/^[a-zA-Z ]*$/",$name)) {
$nameErr = "Only alphabet and white space allowed";
}
E-
I have a situation where we have to make query for searching on the basis of multiple fields with Laravel 4.x. So for this we have many method either we will concatenate or we will use OR query in Laravel
Example:
$searchqueryResult =User::where('
screen.availHeight:
This denotes the available height in the screen, i.e., the height of the user’s screen. Thus, if the screen resolution of the
user’s screen is 1366 × 768 pixels and the height of the taskbar is 25 pixels, this
property will retur
To create a multilingual ecommerce website we need to add language packages. So I am explaining how to add language pack in magento. We can install the language packs by following these steps -
1) Go to magentocommerce website and search the desire
<?php
session_start();
include_once('config.php');
$user=htmlentities(stripslashes($_POST['username']));
$password=htmlentities(stripslashes($_POST['password']));
// Some query processing on database
if(($id_user_fetched<=$id_max_fetched)
