Find number of weekdays (Mon, Tues etc) between two dates
<?php function workingDays( $fromDate, $interval ) { $date_array = explode(‘-’, $fromDate ); $day = $date_array[0]; $month = $date_array[1]; $year = $date_array[2]; $working_date = array(); for ( $i = 1; $i <= $interval; $i++ ) { $working_date[] = date(“l”, mktime(0, 0, 0,$month,$day +(int)$i,$year)); } return $working_date; } $getDays = workingDays(’30-11-2011′, [...]
Facebook Connect (Graph API) in cake php
To implement Facebook connect using graph API you need to follow the steps 1) Extract the facebook_core_files.zip file and put all of them in vendors folder of cake php 2) In your apps controller include this code at the top of the file App::import(‘Vendor’, ‘facebook’, array(‘file’ => ‘facebook.php’)); 3) in your apps controller add this [...]



