Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

jQuery Ajax POST with PHP

In jquery we have function named ajax() which have two arguments such as url and settings. Settings are a set of key/value pairs that configure the ajax request. This argument is optional. We are going to take an small example to understand the...

How to make custom error pages in CakePHP 2.0

Hello reader! If you want to set a custom error webpage for your whole cakePHP project you can set this page at /views/layouts/default.ctp as layout for these error pages like 404/ page not found To customize it and set your own message, o...

How to use Bootstrap pagination with CakePHP pagination helper

Hello, if you are using pagination with cakephp framework and want to change the view of pagination just like twitter bootsrap then you can do this by doing follow changes in you view and css. We can do it by writing some custom classes in view ...

Find where field is not null in cakephp

Hello Readers! if you have a database table "users" which has a field "email". And you are looking for a query that fetch out every email field only which are not null in cakephp Here is the following code below you can use, and its working ...

How to get Latitude/longitude from address in PHP

Hello All, In this blog we will discuss about how to fetch the lat/long from the given address in PHP. So we will be using curl request for fetching the same via using Google maps api. Below is the code, you can use to generate lat/long...

Find method with JOIN in CakePHP

Hello, if you are working on cakephp and you need the joins with find method here is an example. Here $my_joins is and array having multiple join cases in other different arrays inside it. $my_joins=array( 'joins' =&g...

How to Add a prefix to every URL in CakePHP?

Hello Reader! If you looking to fix a default language prefix for your all url in cakePhp then you can follow the steps which is the easiest and clean way :- Open file routes.php from the location Config/routes.php There in first line wri...

PHP TEAMLEADER FR EINES DER SPANNENDSTEN UNTERNEHMEN BERLINS GESUCHT !!!

Fr den Standort Berlin suchen wir zum nchstmglichen Termin eine/n PHP Leadentwickler/Teamleiter (m/w) Deine Aufgaben Aufbau eines eigenen Entwickler-Teams mit dem Ziel fachliche und eventuell disziplinarische Fhrung eines bis zu 5 kpfig...

Wir are looking for PHP / WEB Senior & Developers

Wir suchen begeisterte und erfahrene Software-Entwickler*innen fr Spryker-Projekte! Hereinspaziert, aber: Fe abtreten und Hnde waschen! Denn wir produzieren ausschlielich Clean Code. Kannst du? Willst du? Dann knnen wir Freunde werden und ei...

How to Install DebugKit on CakePHP

Hello Nerds! If you are going to develop a new project in cakephp then you might need Debugkit for that, and its really a lifesaving tool for rapid developments. You can install DebugKit using doing the following steps as:- Step 1:- You ne...

Functions and Arrays in PHP - Tutorial 5

This tutorial explains User Defined functions in PHP. It also explains Array, there types and how to iterate through arrays.

CakePHP 2.0 with Twitter Bootstrap

Hello nerds, If you want to start your new CakePHP project with Twitter Bootstrap set with it, you can follow the steps as following:- Step 1: You need to Download CakePHP and Twitter Bootstrap versions. You can easily download them from ...

How Cake PHP redirect with parameters in url

Hello readers, If you are using cakephp and want to redirect user to any other page/controller with some passing values in url, Well cakephp provides you its own syntax written in php, check bellow example: $this->redirect( arra...

How to create global variables in CakePHP?

The majority of the developers, develop skepticism in which, what's the correct place/Page in which they should declare the constant variable in cakephp. Previous going to variable declaration, we must consider that any of us will work over a ...

Why I switched from CakePHP to Symfony2

CakePHP or Symphony2? This is a common question that are arising in the developers community and topic lists this may lead developers sometimes get undermine to clarify users as which is the best framework in php. Lets talk about Symphony2...

base_url in CakePHP

Hello if you want current base url(Include Domain) or Get current url. Lets take an example http:// localhost/root_folder. you just need to write the following code below:- <?php echo $this->Html->url('/', true)?>

How to disable caching completely in Cakephp?

Hello if you want to disable you website's caching complety you just need to write configure code in core.php file ex You will have to look into /app/config/core.php and look for the line Open app/config/core.php file and try to find Con...

Submitting current timestamp in CakePHP

Hi If you want to send curret_timestamp, you can store it by using function below. DboSource::expression('NOW()'); Lets take an example, save your timestamp in a key 'your_datetime_field' $this->data['SomeModel']['your_datetime_f...

How to use another model in current model using cakephp?

Hi If you want a condition where you can load another model inside you model. you can do as I code, see the example below App::import('Model', 'MyModel'); $my_model = new MyModel(); Or you can write $this->SomeModel->MyModel;...

cakephp excel/csv export component

Hello, If you want to add CSV export component using cake php, for that you can do by following steps:- First take the controller file and create an action, the code will go like this:- <?php class Export_my_dataController extend...

What is the equivalent to getLastInsertId() in Cakephp?

Hello if you want to get last insert id or something equivalent to this you can try following steps:- Lets take this example, Here I just inserted the field in column $data = array('menuName' =$_REQUEST['menuname']) $this->Menu...

What is a .ctp file used for in CakePHP?

CakePHP provides user to do advance view designing and making custom architecture for designing, for quick web developments. The CTP file extension is associated with the CakePHP. Ctp file contains template CakePHP template. It is as same as a...

How to get complete current URL using Cakephp Framework in PHP

If you need to print the complete current url you can do following steps. 1. In the view file code will go like this: <?php echo $this->here; ?> This syntax'll give you the absolute url starting from hostname i.e. /controller/...

Facebook login using CakePHP

To create a Facebook login using cakephp we need facebook app with appId, apiKey and secret key which are required for facebook login to work. Facebook connect and enables users to authenticate your application instantly with a Facebook Account. ...

How to set crone for scheduling Push notifications?

hello I want to send automatic server notifications (push) on every Sunday. Also is there any way how to activate the new links activate only after 24 hrs.

PHP functions for applying user defined functions on array values.

There are two predefined functions in PHP for applying user defined function on each element of an array. 1. array_walk() : array_walk() applied a user function on each element of an array. It returns TRUE on success and FALSE on failure. The...

Submit form data in Ajax

We will learn here, how we can submit form data with the help of Ajax. First step:- Create index.html file and create a form with the three labels/fields:- Name,Email and Superhero Alias. Inside head tag we have included one css file and ...

How can we find the number of days between given two dates on php 5.3 and above

Hi if you are using php version 5.3 or greater then some functions are really very quick to write and use. In this blog I am calculating the days between your given two dates. This is by far the most accurate way of calculating the differenc...

Fetch Outlook contacts using PHP imap

Is there any way to get Outlook contacts using PHP imap functions? I need urgent help please

Drupal 7 authentication with javascript using Phone gap or Sencha

How to implement Drupal 7 authentication with javascript using Phone gap or Sencha Using Drupal 7 authentication with javascript using phone gap or sencha?

Exceptions Handling in PHP

PHP 5 comes with an exception model similar to that of other coding languages. Exceptions are essential and supplies a better management around problem managing. Try - Operate utilizing an exception to this rule ought to be within a "try" obst...

Insert and Remove value from end of an array

This article demonstrate how to add and remove value on start and end of an array using predefined functions of PHP. The four important array functions in PHP are : 1. array_push() : This function is used to add one or more values to the end o...

Create a Log File in PHP

Log file is very helpful in debugging a large amount of data. We can create a Log file with the piece of code below :- $file = fopen ( "testfile.txt" , "a+" ); fwrite ( $file , serialize ( print_r ( $_POST , true ) ) ); fopen() is php in...

What is php.ini ?

The php.ini file also known as (configuration file) is where we declare changes for Php settings. If you want to use the default settings then you can use existing php.ini file for the server else change settings by editing the existing php.ini ...

Creating a custom password encrypt for Auth in laravel 5.0

Many times when we have an existing database with existing multiple records with set password, encrypted with a specific encrypt technique and then we try to immigrate to Laravel 5.0 and try to use Laravel Auth, it clashes. Since, Lara...

Use of Transaction in Mysql

Transaction is very useful in large rich applications such as eCommerce, Real Estate etc etc. It is mostly used in Customer Relationship Management (CRM), Enterprise Resource Plan (ERP). What is Transaction? When we need to execute more than ...

How to store constants in laravel 5.0

In laravel 5.0 the way to define constants and use them through out the project. Following are the steps to accomplish it:- Step 1st :- Creating a separate file under /config folder named as constants.php ( it can be any name) for storing all ...

Datatypes in PHP and String Functions - Tutorial 3

Datatypes supported by PHP String Integer Floating point Boolean Array Object NULL Resource String Functions Strlen() : Returns the length of a string (number of characters). <?php echo strlen("Hello world!"); // output...

How to Fill Dropdown using jquery without using Ajax

Step 1=> Get all the countries data in an array and all states data corresponding to country wise. <?php $countries_Array = array( 'IN' => 'INDIA', 'BG' => 'Belgium', 'AU' => 'Australia', ...

How to fix TCPDF file opening issue on smart devices

Hello Friends, If you are using TCPDF( A Plugin used to generate PDf files) then sometime you may face that this files are not opening in smart devices. You may see some garbage data instead of pdf file. Then do not worry, just put a exit; af...

Convert array to string in php

We can convert array to string using php predefined function named as implode(). Syntax for implode is: implode('separator',array); Example - $split_data [0] = 'This'; $split_data [1] = 'is'; $split_data [2] = 'a'; $split_data...

Convert a string to array in php

We can convert string to array using php predefined function named as explode(). Syntax for explode is: explode('separator',string); Example - $string = "This is a text"; $split_data = explode('',$string); // splitting by space as a...

Google Map Integration in PHP- Display Latitude and Longitude On Google Map

This code will point the Latitude and Longitude On Google Map with a marker. For this include a script: Here is the code hope it may help you somewhere <html> <head> <script type="text/javascript"...

How to rename php file

After discussing about open, read and copying PHP files we will be discussing about rename function. rename (): The rename() function is used for renaming a file or directory.It takes two parameters : 1.the original filename 2.the new...

Google Map integration in PHP to Calculate Latitude and Longitude

This code will calculate the latitude and longitude of the place in background on entering the place name. For integration of Google map to calculate Latitude and Longitude major script is : <script src="https://maps.googleapis.com/maps/...

Visibility Scope Of Variable And Functions

There are three type of visibility scope: Public Private Protected PUBLIC: Variable or function of public scope can be accessed throughout the program. PRIVATE : Variable or function of private scope can be accessed only with...

Add prefix to urls in CakePHP

CakePHP has power to do a lot with conventions by using routes. Its additionally possible to utilize custom prefixes adjacent to your admin routes for extra flexibility. Prefix routing can be enabled from within the core configuration file by set...

PHP filters to Sanitize and Validate data

Hello Readers , Today we will going to understand the concept of PHP filters to Sanitize and Validate data. PHP filters are used to validate and sanitize external input. Validating data = Determine if the data is in proper form. Sanit...

PHP sr. developer

Experiencia mnima de 3 aos programando con frameworks PHP MVC Experiencia en desarrollos utilizando web services REST Conocimientos en diseo y desarrollo de bases de datos relacionales (PosgreSQL, Oracle) Experiencia mnima trabajando co...
1 15 17
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: