| |||||||||||||||||||||
}
$locs = AH::rsort($locs, "primary", "phones_cnt");
foreach ($locs as $loc) {
$city_name = $loc["city_name"].cs(", %s", NVL($loc["state"] ?? null, $loc["state_name"] ?? null));
if (!empty($loc["primary"])) {
$pfx_city = $city_name . cs(" (".number_format($loc["phones_cnt"]).")", $loc["phones_cnt"]);
}
}
}
return $pfx_city;
}
| Phone_Prefix
|
| 1 : {"locations":{"29-22***"Otoe County"],"zips":["68446","68454"]}
| <div class="column">
<?
echo "<br><h1 class='main-header-1'>The National Telephone Number Directory</h1>";
include T("/inc/breadcrumb");
echo "<h2>Area Code ".substr($phone,0,3)." with Central Office Code Prefix ".substr($phone,3)."</h2>";
$pfx_city = Phone_Prefix::cityByPrefix($prefix_info);
function _cb_p6($r) {
#vd($r);
$p = $r['phone8'];
# if (!$nofollow = (@$r["phones"] < 5)?' rel="nofollow"':'') {
$nofollow = (RDSite::siteID() === Phone::codeToSite($p))?' rel="nofollow"':'';
|
| include $__["tpl"];
| 1 : /rd/vhosts/phone/phoneowner.us/templates/prefix6.phtml
| //Log::notice("Template file missed: " . $__["tpl"], "", -1);
do404();
//Controller::dispatch("/page404", $_GET + $_POST, "_layout");
die;
} else {
include $__["tpl"];
}
Profiler::out();
} catch(Exception $e) {
$CACHE = false;
// ob_end_flush();
|
| show($TEMPLATE,$_,$CACHE,$CACHE_ARGS);
| 1 : /prefix6
1 : {"cssTableClass":"ow***"zips":["68446","68454"]},"count_ads":0} 1 : 0 1 : []
| }
// The same as show, but instead of printing template, returns it.
function fetch($TEMPLATE, $_=NULL, $CACHE=0, $CACHE_ARGS=[]) {
if (! $TEMPLATE) \Log::alert("no template");
ob_start();
show($TEMPLATE,$_,$CACHE,$CACHE_ARGS);
$r=ob_get_clean();
return $r;
}
// Returns full path or URL to template
// can be used as: include T('tpl');
|
| $body = fetch($template, $params);
| 1 : /prefix6
1 : {"cssTableClass":"ow***"zips":["68446","68454"]},"count_ads":0}
| self::$layout="";
}
// IMPORTANT! This part is being used only if project uses "template" mode. For "view" mode we should not appear here.
if (self::$layout ) {
Profiler::in("Template:$template");
$body = fetch($template, $params);
Profiler::out();
Profiler::in("Layout", $layout);
show($layout, ['body' => $body]);
Profiler::out();
return;
|
| Controller::dispatch($_SERVER["REDIRECT_URL"], $_GET + $_POST, "_layout");
| 1 : 402269
1 : {"cssTableClass":"ow***"zips":["68446","68454"]},"count_ads":0} 1 : _layout
| <?
Controller::dispatch($_SERVER["REDIRECT_URL"], $_GET + $_POST, "_layout");
exit; |
ErrorException: Undefined array key "phones_cnt" in lib/Phone/Prefix.php:642 #0 vhosts/phone/phoneowner.us/templates/prefix6.phtml:20 Phone_Prefix::cityByPrefix(Array) #1 lib.framework/Template/Template.php:228 include('...') #2 lib.framework/Template/Template.php:257 show('...', Array, 0, Array) #4 vhosts/phone/phoneowner.us/www/index.php:2 Controller::dispatch('...', Array, '...')