Warning (2): Invalid argument supplied for foreach() [APP/View/Elements/header.ctp, line 4]Code Context<?php
if(count(@$categories)>0){
foreach (@$categories as $category) { //echo '<pre>'; print_r($category);
$viewFile = '/var/www/html/app/View/Elements/header.ctp' $dataForView = array( 'watchlist_data' => array(), 'categories' => '', 'user' => false, 'countries' => array( (int) 0 => array( 'Country' => array( [maximum depth reached] ), 'Region' => array( [maximum depth reached] ) ), (int) 1 => array( 'Country' => array( [maximum depth reached] ), 'Region' => array( [maximum depth reached] ) ), (int) 2 => array( 'Country' => array( [maximum depth reached] ), 'Region' => array( [maximum depth reached] ) ), (int) 3 => array( 'Country' => array( [maximum depth reached] ), 'Region' => array( [maximum depth reached] ) ), (int) 4 => array( 'Country' => array( [maximum depth reached] ), 'Region' => array( [maximum depth reached] ) ), (int) 5 => array( 'Country' => array( [maximum depth reached] ), 'Region' => array( [maximum depth reached] ) ), (int) 6 => array( 'Country' => array( [maximum depth reached] ), 'Region' => array( [maximum depth reached] ) ), (int) 7 => array( 'Country' => array( [maximum depth reached] ), 'Region' => array( [maximum depth reached] ) ), (int) 8 => array( 'Country' => array( [maximum depth reached] ), 'Region' => array( [maximum depth reached] ) ), (int) 9 => array( 'Country' => array( [maximum depth reached] ), 'Region' => array( [maximum depth reached] ) ) ), 'bg_advertise' => '', 'favourite_add' => '', 'session_regions_list' => array(), 'session_regions' => array(), 'verify_document' => (int) 0, 'login_user_count' => (int) 24, 'messages_count' => (int) 58, 'content_for_layout' => '<div class="all-content-part profile-page"> <section class="profile-page-sec"> <div class="container"> <div class="profile-container"> <div class="tabing-sec"> <div id="all_sec"> <!-- Public View section start --> <div class="tab-content tabing-conntent"> <div id="profile" class="tab-pane active" role="tabpanel"> <div class="profile-content"> <div class="tab-content"> <div id="public-view" class="tab-pane active" role="tabpanel"> <div class="user-profile"> <div class="left-sec"> <figure> <img alt="" src="/images/user-icon.png"> <figcaption></figcaption> </figure> </div> <div class="right-sec"> <h3><span></span> <a href="javascript:void(0);" id="fav_" onclick="watchlist()" class="add-to-wishlist"><i class="fa fa-star-o"></i>Add to Watchlist <span class="toll-tip-hover information-tip">Get notified when this user upload new ad</span> </a> </h3> <p> Business </p> <p><a class="link" href="#"><img class="not-verified-icon" alt="" src="/images/verified.png">Verified</a></p> </div> </div> <div class="discp-sec"> <div class="col-md-6 col-sm-6"> <h3>About </h3> <p></p> </div> <div class="col-md-6 col-sm-6"> <h3>Identity </h3> <ul> <li><span class="lft"> Location </span><span class="right"> <img alt="" src="/"></span></li> <li><span class="lft">Member Since: </span><span class="right"> 31 Dec 1969 </span></li> <li><span class="lft">Last Login </span><span class="right">31 Dec 1969</span></li> </ul> </div> </div> </div> <div class="my_ads_sec" id="my_ads_sec"> <div class="my_ads_sec_cont"> <h3> My Ads(0)</h3> <div class="my-ads-products"> <div class="drop-down-sec all-categories"> <div class="dropdown"> <button id="all-categories" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> All Category <span class="caret"></span> </button> </div> </div> <div class="drop-down-sec dates-drop"> <div class="dropdown"> <button id="date-filter" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Date <span class="caret"></span> </button> <ul class="dropdown-menu" aria-labelledby="date-filter"> <li><a href="javascript:void(0);" onclick="date_filter('asc');" class=""> Ascending</a></li> <li><a href="javascript:void(0);" onclick="date_filter('desc');" class="">Descending</a></li> </ul> </div> </div> <div class="products list-view"> <div>No ads found in this category</div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </section> </div> <div class="advertise-ment-sec two-add-with"> <div class="container"> <div class="large-add"> <img alt="" src="/images/advertise.png" class="img-responsive"> </div> <div class="small-add"> <img alt="" src="/images/add-1.png" class="img-responsive"> </div> </div> </div> <script> function watchlist(user_id){ //var id=$("#id").val(); //alert(post_id); $.ajax({ 'url':'/products/watchlist', 'data':{'id':user_id}, 'type':'POST', 'dataType':'JSON', 'success':function(result){ if(result.status =='done'){ // $("#fav_"+post_id).hide(); /* $("#fav_"+post_id).css('color','red'); $("#fav_"+post_id).removeAttr('onclick'); $("#fav_"+post_id).removeAttr('href');*/ location.reload(); } } }); } function rem_watchlist(user_id){ //var id=$("#id").val(); //alert(del_val); $.ajax({ 'url':'/products/rem_watchlist', 'data':{'id':user_id}, 'type':'POST', 'dataType':'JSON', 'success':function(result){ if(result.status =='done'){ // $("#fav_"+post_id).hide(); /*$("#fav_"+post_id).css('color','red'); $("#fav_"+post_id).removeAttr('onclick'); $("#fav_"+post_id).removeAttr('href');*/ location.reload(); } } }); } function date_filter(type) { if(type == 'asc') { var loc = '/products/public_view?ui='; window.location.href = loc+'&date='+type; } else { var loc = '/products/public_view?ui='; window.location.href = loc+'&date='+type; } } </script>', 'scripts_for_layout' => '', 'title_for_layout' => 'Products' ) $watchlist_data = array() $categories = '' $user = false $countries = array( (int) 0 => array( 'Country' => array( 'id' => '46', 'name' => 'Cote d'Ivoire', 'short_name' => 'Cl', 'flag' => '1461151960_ci-img.png', 'thumbnails' => 'thumbnails/1461151960_ci-img.png', 'currency' => 'F CFA', 'status' => true, 'language' => 'French', 'created' => '2016-04-12 02:59:07', 'modified' => '2016-04-12 02:59:07' ), 'Region' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ), (int) 8 => array( [maximum depth reached] ), (int) 9 => array( [maximum depth reached] ), (int) 10 => array( [maximum depth reached] ), (int) 11 => array( [maximum depth reached] ), (int) 12 => array( [maximum depth reached] ), (int) 13 => array( [maximum depth reached] ) ) ), (int) 1 => array( 'Country' => array( 'id' => '45', 'name' => 'Mali', 'short_name' => 'ML', 'flag' => '1461912790_ml-img.png', 'thumbnails' => 'thumbnails/1461912790_ml-img.png', 'currency' => 'F CFA', 'status' => true, 'language' => 'French', 'created' => '2016-04-12 02:54:10', 'modified' => '2016-04-12 02:54:10' ), 'Region' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ), (int) 8 => array( [maximum depth reached] ) ) ), (int) 2 => array( 'Country' => array( 'id' => '44', 'name' => 'Senegal', 'short_name' => 'SN', 'flag' => '1461152026_sn-img.png', 'thumbnails' => 'thumbnails/1461152026_sn-img.png', 'currency' => 'F CFA', 'status' => true, 'language' => 'French', 'created' => '2016-04-12 02:48:36', 'modified' => '2016-04-12 02:48:36' ), 'Region' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ), (int) 8 => array( [maximum depth reached] ), (int) 9 => array( [maximum depth reached] ), (int) 10 => array( [maximum depth reached] ) ) ), (int) 3 => array( 'Country' => array( 'id' => '42', 'name' => 'Nigeria', 'short_name' => 'NG', 'flag' => '1461152198_ng-img.png', 'thumbnails' => 'thumbnails/1461152198_ng-img.png', 'currency' => 'NGN', 'status' => true, 'language' => 'English', 'created' => '2016-04-12 02:47:04', 'modified' => '2016-04-12 02:47:04' ), 'Region' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ), (int) 8 => array( [maximum depth reached] ), (int) 9 => array( [maximum depth reached] ), (int) 10 => array( [maximum depth reached] ), (int) 11 => array( [maximum depth reached] ), (int) 12 => array( [maximum depth reached] ), (int) 13 => array( [maximum depth reached] ), (int) 14 => array( [maximum depth reached] ), (int) 15 => array( [maximum depth reached] ), (int) 16 => array( [maximum depth reached] ), (int) 17 => array( [maximum depth reached] ), (int) 18 => array( [maximum depth reached] ), (int) 19 => array( [maximum depth reached] ), (int) 20 => array( [maximum depth reached] ), (int) 21 => array( [maximum depth reached] ), (int) 22 => array( [maximum depth reached] ), (int) 23 => array( [maximum depth reached] ), (int) 24 => array( [maximum depth reached] ), (int) 25 => array( [maximum depth reached] ), (int) 26 => array( [maximum depth reached] ), (int) 27 => array( [maximum depth reached] ), (int) 28 => array( [maximum depth reached] ), (int) 29 => array( [maximum depth reached] ), (int) 30 => array( [maximum depth reached] ), (int) 31 => array( [maximum depth reached] ), (int) 32 => array( [maximum depth reached] ), (int) 33 => array( [maximum depth reached] ), (int) 34 => array( [maximum depth reached] ), (int) 35 => array( [maximum depth reached] ) ) ), (int) 4 => array( 'Country' => array( 'id' => '35', 'name' => 'Liberia', 'short_name' => 'LR', 'flag' => '1461152215_lr-img.png', 'thumbnails' => 'thumbnails/1461152215_lr-img.png', 'currency' => 'LRD', 'status' => true, 'language' => 'English', 'created' => '2016-04-12 02:39:44', 'modified' => '2016-04-12 02:39:44' ), 'Region' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ), (int) 8 => array( [maximum depth reached] ), (int) 9 => array( [maximum depth reached] ), (int) 10 => array( [maximum depth reached] ), (int) 11 => array( [maximum depth reached] ), (int) 12 => array( [maximum depth reached] ), (int) 13 => array( [maximum depth reached] ), (int) 14 => array( [maximum depth reached] ), (int) 15 => array( [maximum depth reached] ) ) ), (int) 5 => array( 'Country' => array( 'id' => '34', 'name' => 'Kenya', 'short_name' => 'KE', 'flag' => '1461153038_kenya.png', 'thumbnails' => 'thumbnails/1461153038_kenya.png', 'currency' => 'KSH', 'status' => true, 'language' => 'English', 'created' => '2016-04-12 02:20:19', 'modified' => '2016-04-12 02:20:19' ), 'Region' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ), (int) 8 => array( [maximum depth reached] ), (int) 9 => array( [maximum depth reached] ), (int) 10 => array( [maximum depth reached] ), (int) 11 => array( [maximum depth reached] ), (int) 12 => array( [maximum depth reached] ), (int) 13 => array( [maximum depth reached] ), (int) 14 => array( [maximum depth reached] ), (int) 15 => array( [maximum depth reached] ), (int) 16 => array( [maximum depth reached] ), (int) 17 => array( [maximum depth reached] ), (int) 18 => array( [maximum depth reached] ), (int) 19 => array( [maximum depth reached] ), (int) 20 => array( [maximum depth reached] ), (int) 21 => array( [maximum depth reached] ), (int) 22 => array( [maximum depth reached] ), (int) 23 => array( [maximum depth reached] ), (int) 24 => array( [maximum depth reached] ), (int) 25 => array( [maximum depth reached] ), (int) 26 => array( [maximum depth reached] ) ) ), (int) 6 => array( 'Country' => array( 'id' => '29', 'name' => 'Guinea', 'short_name' => 'GN', 'flag' => '1474724059_guinea_flag.png', 'thumbnails' => 'thumbnails/1474724059_guinea_flag.png', 'currency' => 'FG', 'status' => true, 'language' => 'French', 'created' => '2016-04-05 08:43:38', 'modified' => '2016-04-05 08:43:38' ), 'Region' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ) ) ), (int) 7 => array( 'Country' => array( 'id' => '28', 'name' => 'Ghana', 'short_name' => 'GH', 'flag' => '1461153070_gh-img.png', 'thumbnails' => 'thumbnails/1461153070_gh-img.png', 'currency' => 'GHS', 'status' => true, 'language' => 'English', 'created' => '2016-04-05 08:33:54', 'modified' => '2016-04-05 23:56:27' ), 'Region' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ), (int) 8 => array( [maximum depth reached] ), (int) 9 => array( [maximum depth reached] ) ) ), (int) 8 => array( 'Country' => array( 'id' => '26', 'name' => 'Burkina Faso', 'short_name' => 'BF', 'flag' => '1461153089_bf-img.png', 'thumbnails' => 'thumbnails/1461153089_bf-img.png', 'currency' => 'F CFA', 'status' => true, 'language' => 'French', 'created' => '2016-04-05 08:29:05', 'modified' => '2016-04-05 23:55:54' ), 'Region' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ), (int) 8 => array( [maximum depth reached] ), (int) 9 => array( [maximum depth reached] ), (int) 10 => array( [maximum depth reached] ), (int) 11 => array( [maximum depth reached] ), (int) 12 => array( [maximum depth reached] ) ) ), (int) 9 => array( 'Country' => array( 'id' => '24', 'name' => 'Gabon', 'short_name' => 'GA', 'flag' => '1474724281_1461153054_ga-img.png', 'thumbnails' => 'thumbnails/1474724281_1461153054_ga-img.png', 'currency' => 'F CFA', 'status' => true, 'language' => 'French', 'created' => '2016-04-05 07:35:24', 'modified' => '2016-04-05 23:56:10' ), 'Region' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ), (int) 8 => array( [maximum depth reached] ) ) ) ) $bg_advertise = '' $favourite_add = '' $session_regions_list = array() $session_regions = array() $verify_document = (int) 0 $login_user_count = (int) 24 $messages_count = (int) 58 $content_for_layout = '<div class="all-content-part profile-page"> <section class="profile-page-sec"> <div class="container"> <div class="profile-container"> <div class="tabing-sec"> <div id="all_sec"> <!-- Public View section start --> <div class="tab-content tabing-conntent"> <div id="profile" class="tab-pane active" role="tabpanel"> <div class="profile-content"> <div class="tab-content"> <div id="public-view" class="tab-pane active" role="tabpanel"> <div class="user-profile"> <div class="left-sec"> <figure> <img alt="" src="/images/user-icon.png"> <figcaption></figcaption> </figure> </div> <div class="right-sec"> <h3><span></span> <a href="javascript:void(0);" id="fav_" onclick="watchlist()" class="add-to-wishlist"><i class="fa fa-star-o"></i>Add to Watchlist <span class="toll-tip-hover information-tip">Get notified when this user upload new ad</span> </a> </h3> <p> Business </p> <p><a class="link" href="#"><img class="not-verified-icon" alt="" src="/images/verified.png">Verified</a></p> </div> </div> <div class="discp-sec"> <div class="col-md-6 col-sm-6"> <h3>About </h3> <p></p> </div> <div class="col-md-6 col-sm-6"> <h3>Identity </h3> <ul> <li><span class="lft"> Location </span><span class="right"> <img alt="" src="/"></span></li> <li><span class="lft">Member Since: </span><span class="right"> 31 Dec 1969 </span></li> <li><span class="lft">Last Login </span><span class="right">31 Dec 1969</span></li> </ul> </div> </div> </div> <div class="my_ads_sec" id="my_ads_sec"> <div class="my_ads_sec_cont"> <h3> My Ads(0)</h3> <div class="my-ads-products"> <div class="drop-down-sec all-categories"> <div class="dropdown"> <button id="all-categories" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> All Category <span class="caret"></span> </button> </div> </div> <div class="drop-down-sec dates-drop"> <div class="dropdown"> <button id="date-filter" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Date <span class="caret"></span> </button> <ul class="dropdown-menu" aria-labelledby="date-filter"> <li><a href="javascript:void(0);" onclick="date_filter('asc');" class=""> Ascending</a></li> <li><a href="javascript:void(0);" onclick="date_filter('desc');" class="">Descending</a></li> </ul> </div> </div> <div class="products list-view"> <div>No ads found in this category</div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </section> </div> <div class="advertise-ment-sec two-add-with"> <div class="container"> <div class="large-add"> <img alt="" src="/images/advertise.png" class="img-responsive"> </div> <div class="small-add"> <img alt="" src="/images/add-1.png" class="img-responsive"> </div> </div> </div> <script> function watchlist(user_id){ //var id=$("#id").val(); //alert(post_id); $.ajax({ 'url':'/products/watchlist', 'data':{'id':user_id}, 'type':'POST', 'dataType':'JSON', 'success':function(result){ if(result.status =='done'){ // $("#fav_"+post_id).hide(); /* $("#fav_"+post_id).css('color','red'); $("#fav_"+post_id).removeAttr('onclick'); $("#fav_"+post_id).removeAttr('href');*/ location.reload(); } } }); } function rem_watchlist(user_id){ //var id=$("#id").val(); //alert(del_val); $.ajax({ 'url':'/products/rem_watchlist', 'data':{'id':user_id}, 'type':'POST', 'dataType':'JSON', 'success':function(result){ if(result.status =='done'){ // $("#fav_"+post_id).hide(); /*$("#fav_"+post_id).css('color','red'); $("#fav_"+post_id).removeAttr('onclick'); $("#fav_"+post_id).removeAttr('href');*/ location.reload(); } } }); } function date_filter(type) { if(type == 'asc') { var loc = '/products/public_view?ui='; window.location.href = loc+'&date='+type; } else { var loc = '/products/public_view?ui='; window.location.href = loc+'&date='+type; } } </script>' $scripts_for_layout = '' $title_for_layout = 'Products'include - APP/View/Elements/header.ctp, line 4 View::_evaluate() - CORE/Cake/View/View.php, line 931 View::_render() - CORE/Cake/View/View.php, line 893 View::_renderElement() - CORE/Cake/View/View.php, line 1191 View::element() - CORE/Cake/View/View.php, line 408 include - APP/View/Layouts/user_with_default.ctp, line 162 View::_evaluate() - CORE/Cake/View/View.php, line 931 View::_render() - CORE/Cake/View/View.php, line 893 View::renderLayout() - CORE/Cake/View/View.php, line 525 View::render() - CORE/Cake/View/View.php, line 470 Controller::render() - CORE/Cake/Controller/Controller.php, line 952 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 194 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162 [main] - APP/webroot/index.php, line 110
Your account will activate by clicking ‘Activate’ button in an email you will receive from DYULANI.
Already registered?Login Now