Phalcon Framework 1.3.4

ErrorException: Trying to get property of non-object

/var/www/vhosts/winkworth-search/src/app/Views/winkworth/property/view.phtml (153)
#0exceptions_error_handler(8, Trying to get property of non-object, /var/www/vhosts/winkworth-search/src/app/Views/winkworth/property/view.phtml, 153, Array(23))
<?php
/**
 * @var \WAI\Search\Models\Winkworth\Property $property
 * @var string $cssClass
 * @var bool $isRent
 * @var \Phalcon\Mvc\Model\Resultset $photos
 * @var \Phalcon\Mvc\Model\Resultset $brochures
 * @var \Phalcon\Mvc\Model\Resultset $epcs
 * @var \Phalcon\Mvc\Model\Resultset $floorplans
 * @var \SimpleXMLElement $soldPropertyInfo
 * @var array $averagePrices
 * @var array $averageListingPrice
 * @var array $landRegistrySalesForMonth
 */
use \Phalcon\Tag;
 
if(!isset($canSeeMarketTrends)) {
    $canSeeMarketTrends = false;
}
 
if(isset($property)) : ?>
    <?php
    /** @var \WAI\Search\Models\Winkworth\Office $office */
    $office = $property->office;
    ?>
 
    <div id="fullDetailsWrapper" class="clearfix searchtype<?= isset($cssClass) ? $cssClass : ''; ?>">
        <div id="fd-nav-wrapper">
            <ul id="fdNav">
                <li>
                     <?php if(isset($backToSearchUrl)) : ?>
                        <a href="<?= $backToSearchUrl; ?>" class="backSearch" title="Back to search results">Back to search results</a>
                        &nbsp;&nbsp;|&nbsp;&nbsp;
                    <?php endif; ?>
                </li>
                <li class="new-search">
                    <a href="/" title="New Search">New search</a>
                </li>
 
                <li class="currency">
                    <a class="selected currencyselect" id="currencypound" title="Switch price to Pounds">&pound;</a> |
                    <a class="currencyselect" id="currencydollar" title="Switch price to Dollars">&#36;</a> |
                    <a class="currencyselect" id="currencyeuro" title="Switch price to Euro's">&euro;</a>
                </li>
 
                <?php if(isset($nextPropertyUrl)) : ?>
                    <li class="nextProperty">
                        <a href="<?= $nextPropertyUrl; ?>" class="site-icons-next-property" title="Next property">Next</a>
                    </li>
                <?php endif; ?>
                <?php if(isset($previousPropertyUrl)) : ?>
                    <li class="prevProperty">
                        <a href="<?= $previousPropertyUrl; ?>" class="site-icons-prev-property" title="Previous property">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;
                    </li>
                <?php endif; ?>
            </ul>
        </div>
 
 
        <div id="fdPropertyHeader" class="clearfix">
            <div class="priceBlock">
                <h3>
                    <span id="pricepound" class="prices"><?= $property->getDisplayPrice(); ?></span>
                    <span id="pricedollar" class="prices" style="display:none"><?= $property->getDisplayPriceDollars(); ?></span>
                    <span id="priceeuro" class="prices" style="display:none"><?= $property->getDisplayPriceEuros(); ?></span>
                    <?= $property->getTenure(); ?>
                </h3>
                <?php if($isRent) : ?>
                    <h2 class="altPrice">
                        <span id="altpricepound" class="prices"><?= $property->getDisplayPrice(true); ?></span>
                        <span id="altpricedollar" class="prices" style="display:none"><?= $property->getDisplayPriceDollars(true); ?></span>
                        <span id="altpriceeuro" class="prices" style="display:none"><?= $property->getDisplayPriceEuros(true); ?></span>
                    </h2>
                    <div class="clearfix">
                        <p>
                            <?= $property->getAsaLettingsFeesUrl($property, 'Tenant(s) Fees Apply', 'asaTerms'); ?>
                        </p>
                    </div>
                <?php endif; ?>
 
                <p>Ref No: <?= $property->propertyCode; ?></p>
            </div>
 
            <h1><?= $property->getDisplayAddressShortPostcode(); ?></h1>
            <?php
            $bedroomText = $property->bedrooms > 0 ? $property->bedrooms . ' bedroom' : "Studio";
            if($property->getHouseSubType() === 'development plot') : ?>
                <h2 class="property-subtitle"><?= ucfirst($property->getHouseSubType()); ?> in <?= $property->getArea(); ?></h2>
            <?php else : ?>
                <h2 class="property-subtitle"><?= $bedroomText; ?> <?= $property->getHouseSubType(); ?> in <?= $property->getArea(); ?></h2>
            <?php endif; ?>
        </div>
 
 
        <div id="image-office-area">
            <?php if ($property->getPropertyStatus() !== '') : ?>
                <div class="propertyStatus"><?= $property->getPropertyStatus(); ?></div>
            <?endif;?>
 
            <div id="mainImage">
                <?php
                $count = 0;
                /** @var \WAI\Search\Models\Asset $photo */
                foreach ($photos as $photo) :
                    echo Tag::image(array($photo->getResizedUrl(615, 410), 'width' => 615, 'height' => 410));
 
                    $count++;
                    if ($count == 5) {
                        break;
                    }
                endforeach; ?>
            </div>
 
            <div id="thumbanil-panel" class="clearfix">
                <ul id="thumbNav" class="clearfix">
                    <?php
                    $count = 0;
                    /** @var \WAI\Search\Models\Asset $photo */
                    foreach ($photos as $photo):?>
                        <li>
                            <a href="#">
                                <?= Tag::image(array($photo->getResizedUrl(102, 60), 'width' => 102, 'height' => 60)); ?>
                            </a>
                        </li>
                        <?php
                        $count++;
                        if ($count == 5) {
                            break;
                        }
                    endforeach; ?>
                </ul>
                <ul id="lightbox-thumbs" class="clearfix">
                    <?php if($property->isActive() === true) : ?>
                        <?php foreach ($photos as $photo):?>
                            <li>
                                <a href="/<?= $photo->getResizedUrl(800, 533); ?>" rel="main-images">
                                    <?= Tag::image(array($photo->getResizedUrl(102, 60), 'width' => 102, 'height' => 60)); ?>
                                </a>
                            </li>
                        <?php endforeach;?>
                    <?php endif; ?>
                    <li class="full-width">
                        <p>Click on a thumbnail to see an enlarged view</p>
                    </li>
                </ul>
 
                <a href="#" class="text-link show-link" title="See Gallery">See more images</a>
                <a href="#" class="text-link hidden-link" title="Hide Gallery">Back</a>
            </div>
 
            <div id="office">
                <h4>
                    <a href="<?= $office->url; ?>">Winkworth <?= $office->name; ?></a>
                </h4>
                <div class="office-negotiator clearfix">
                    <p class="officeAddress">
                        <?php foreach ($office->getAddressAsArray() as $address) : ?>
                            <?= $address; ?>
                            <br />
                        <?php endforeach;?>
                    </p>
                    <ul class="officeContact">
                        <li id="phone-fax">
                            T: <?= $office->telephone; ?>
                            <?php if (isset($office->fax) && $office->fax !== ''):?>
                                | F: <?= $office->fax; ?>
                            <?php endif;?>
                        </li>
                        <li id="email">
                            E: <?= $this->utilities->emailContactFormLink($office->email); ?>
                        </li>
                    </ul>
                </div>
                <div class="form-buttons">
                  <?= Tag::linkTo(array(
                    $this->pssForms->getContactAgentFormUrl($property),
                    "<span>Arrange a viewing</span>",
                    'class' => 'arrange-a-viewing lightboxContactAgent button enquire',
                    'title' => 'Arrange a Viewing',
                    'onclick' => "_gaq.push(['_trackEvent', 'Property Enquiry', 'Arrange a Viewing', '{$property->getSeoUrl()}']);"
                  )); ?>
                  <?= Tag::linkTo(array(
                    $this->pssForms->getRequestValuationFormUrl($office),
                    '<span class="request">Request a valuation</span>',
                    'class' => 'button',
                    'title' => 'Request Valuation',
                    'onclick' => "_gaq.push(['_trackEvent', 'Office Enquiry', 'Request Valuation', '{$office->url}']);"
                  )); ?>
                </div>
                <p>
                  <?= Tag::linkTo(array(
                    $office->getSearchUrl($property),
                    'View more properties from this office',
                    'class' => 'office-buttons',
                    'title' => 'View more properties from this office',
                    'onclick' => "_gaq.push(['_trackEvent', 'Office Enquiry', 'More Properties', '{$office->url}']);"
                  )); ?>
                </p>
                <p>
                  <?= Tag::linkTo(array(
                    ltrim($office->url, '/'),
                    "{$office->name} office microsite",
                    'class' => 'office-buttons',
                    'title' => "{$office->name} office microsite",
                    'onclick' => "_gaq.push(['_trackEvent', 'Office Enquiry', 'More Properties', '{$office->url}']);"
                  )); ?>
                </p>
            </div>
        </div>
        <div id="propFDLeft">
 
            <div class="inner-left">
                <?php if($property->isActive() === true) : ?>
                    <?php $formattedDescription = $property->getDescriptionFormatted(); ?>
                    <?php if(strip_tags($formattedDescription) !== '') : ?>
                        <h4>Description</h4>
                        <?= $formattedDescription; ?>
                    <?php else : ?>
                        <h4>Summary</h4>
                        <p><?= $property->getSummary(); ?></p>
                    <?php endif; ?>
                <?php else : ?>
                    <h4>Property no longer available</h4>
                <?php endif; ?>
                <p>
                    <a href="<?= $office->areaGuideUrl; ?>" title="Local Guide" class="reverse arrow-link">
                        <strong>Your local guide: <?= $office->name; ?></strong>
                    </a>
                </p>
            </div>
            <?php
            $total = $property->receptions + $property->bedrooms + $property->bathrooms + count($property->features);
 
            if($total > 0) : ?>
                <div class="inner-right">
                    <h4>At a glance</h4>
                    <ul>
                        <?php if($property->bedrooms > 0) : ?>
                            <li class="site-icons-bedrooms"><?= $property->bedrooms; ?> Bedrooms</li>
                        <?php endif; ?>
                        <?php if($property->receptions > 0) : ?>
                            <li class="site-icons-reception-rooms"><?= $property->receptions; ?> Reception rooms</li>
                        <?php endif; ?>
                        <?php if($property->bathrooms > 0) : ?>
                            <li class="site-icons-bathrooms"><?= $property->bathrooms; ?> Bathrooms</li>
                        <?php endif; ?>
                        <?php foreach ($property->features as $feature):?>
                            <li class="feature"><?= $feature; ?></li>
                        <?php endforeach;?>
                    </ul>
                </div>
            <?php endif; ?>
            <?php if(count($property->children) > 0 || $property->parent !== false) : ?>
                <div class="related-properties">
                    <table>
                        <thead>
                            <tr>
                                <th>Unit</th>
                                <th>Beds</th>
                                <th>Ref</th>
                                <th>Price</th>
                                <th width="140"></th>
                            </tr>
                        </thead>
                        <tbody>
                        <?php
                        if(count($property->children) > 0) { // is parent
                            $parentProperty = $property;
                            $relatedProperties = $property->children;
                        } elseif($property->parent !== false) {
                            $parentProperty = $property->parent;
                            $relatedProperties = $property->parent->children;
                        } else {
                            $parentProperty = array();
                            $relatedProperties = array();
                        }
 
                        if(!empty($parentProperty)) :
                        ?>
                            <tr class="master-record">
                                <td><?= isset($parentProperty->houseName) ? $parentProperty->houseName : ''; ?></td>
                                <td><?= $parentProperty->bedrooms; ?></td>
                                <td class="ref"><?= $parentProperty->propertyCode; ?></td>
                                <td>
                                    <span class="pricepound prices"><?= $parentProperty->getPriceWithPrefix(); ?></span>
                                    <span class="pricedollar prices" style="display:none"><?= $parentProperty->getDisplayPriceDollars(); ?></span>
                                    <span class="priceeuro prices" style="display:none"><?= $parentProperty->getDisplayPriceEuros(); ?></span>
                                </td>
                                <td>
                                    <a href="<?= $parentProperty->getSeoUrl(); ?>" class="button">
                                        <span>More details</span>
                                    </a>
                                </td>
                            </tr>
                        <?php
                        endif;
                        /** @var \WAI\Search\Models\Property $relatedProperty */
                        foreach($relatedProperties as $relatedProperty) : ?>
                            <tr>
                                <td><?= $relatedProperty->houseName; ?></td>
                                <td><?= $relatedProperty->bedrooms; ?></td>
                                <td class="ref"><?= $relatedProperty->propertyCode; ?></td>
                                <td>
                                    <span class="pricepound prices"><?= $relatedProperty->getPriceWithPrefix(); ?></span>
                                    <span class="pricedollar prices" style="display:none"><?= $relatedProperty->getDisplayPriceDollars(); ?></span>
                                    <span class="priceeuro prices" style="display:none"><?= $relatedProperty->getDisplayPriceEuros(); ?></span>
                                </td>
                                <td>
                                    <a href="<?= $relatedProperty->getSeoUrl(); ?>" class="button">
                                        <span>More details</span>
                                    </a>
                                </td>
                            </tr>
                        <?php endforeach; ?>
                        </tbody>
                    </table>
                </div>
            <?php endif; ?>
        </div>
        <div id="propFDRight">
            <ul id="buttons" class="clearfix">
                <?php if($property->isActive() === true) : ?>
                    <li>
                        <?= $this->pssMySite->getSavePropertyLink($property, 'button'); ?>
                    </li>
                <?php endif; ?>
                <?php if ($canSeeMarketTrends !== false): ?>
                    <li>
                        <?= Tag::linkTo(array(
                            '#',
                            '<span>View market trends</span>',
                            'class' => 'button market-trends',
                            'id' => 'market-trends',
                            'title' => 'Market trends',
                            'onclick' => "_gaq.push(['_trackEvent', 'Property Details', 'View market trends', '{$property->getSeoUrl()}']);"
                        )); ?>
                    </li>
                <?php endif; ?>
            </ul>
 
            <div class="property-social-media">
                <!-- AddThis Button BEGIN -->
                <div class="addthis_toolbox addthis_default_style ">
                    <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
                    <a class="addthis_button_tweet" tw:count="none" tw:via="<?= $office->getTwitterUsername(); ?>"></a>
                    <a class="addthis_button_google_plusone" g:plusone:size="medium" g:plusone:count="false"></a>
                    <a class="addthis_button_pinterest_pinit" count-layout="none"></a>
                </div>
                <!-- AddThis Button END -->
                <a href="#" title="Follow Us" class="follow-us-trigger">
                    <span>Follow us</span>
                </a>
 
                <ul class="follow-us">
                    <li class="close">
                        <a href="#" title="Close">X</a>
                    </li>
                    <li class="googleplus">
                        <a href="https://plus.google.com/<?= $office->getGoogleplusUsername(); ?>" title="Google +" target="_blank">Google +</a>
                    </li>
                    <li class="facebook">
                        <a href="https://www.facebook.com/<?= $office->getFacebookUsername(); ?>" title="Facebook" target="_blank">Facebook</a>
                    </li>
                    <li class="twitter">
                        <a href="https://twitter.com/<?= $office->getTwitterUsername(); ?>" title="Twitter" target="_blank">Twitter</a>
                    </li>
                    <li class="pintrest">
                        <a href="http://www.pinterest.com/<?= $office->getPinterestUsername(); ?>" title="Pinterest" target="_blank">Pinterest</a>
                    </li>
                </ul>
            </div>
 
            <ul id="property-quick-links" class="clearfix">
                <?php if (isset($brochures) && count($brochures) > 0) : ?>
                    <?php
                    $brochure = $property->getBrochure(0);
 
                    if($brochure !== false) : ?>
                        <li>
                          <?= Tag::linkTo(array(
                            $brochure->getUrl(),
                            "Print brochure",
                            'class' => 'site-icons-print',
                            'title' => "Print brochure for {$property->getDisplayAddress(1, 1)}, {$property->getDisplayAddressShortPostcode(2, 10, false)}",
                            'onclick' => "_gaq.push(['_trackEvent', 'Property Details', 'Print brochure', '{$property->getSeoUrl()}']);",
                            'target' => '_blank'
                          )); ?>
                        </li>
                    <?php endif;?>
                <?php endif;?>
 
                <?php if($office->id != 181) : ?>
                    <li>
                      <?= Tag::linkTo(array(
                        '#',
                        "Journey heatmap",
                        'class' => 'site-icons-journey-heatmap',
                        'id' => 'heatmap',
                        'title' => 'See the journey heatmap',
                        'onclick' => "_gaq.push(['_trackEvent', 'Property Details', 'Journey heatmap', '{$property->getSeoUrl()}']);",
                        'target' => '_blank'
                      )); ?>
                    </li>
                <?php endif; ?>
 
                <?php if (isset($epcs) && count($epcs) > 0) :
                    $epc = $property->getEpc(0);
                    $epc2 = $property->getEpc(1);
                    $isEpcPdf = false;
 
                    if ($epc2 !== false && !preg_match("/.pdf$/i", $epc->getUrl())) {
                        if (preg_match ("/.pdf$/i", $epc2->getUrl())) {
                            $epc = $epc2;
                            $isEpcPdf = true;
                        }
                    }
                    ?>
                    <li>
                        <?= Tag::linkTo(array(
                          $epc->getUrl(),
                          "EPC",
                          'class' => $isEpcPdf === true ? 'site-icons-epc' : 'site-icons-epc epc-lightbox',
                          'title' => 'View property EPC',
                          'onclick' => "_gaq.push(['_trackEvent', 'Property Details', 'EPC', '{$property->getSeoUrl()}']);",
                          'target' => '_blank'
                        )); ?>
                    </li>
                <?php endif;?>
 
                <?php if (!$isRent) : ?>
                    <li>
                      <?= Tag::linkTo(array(
                        $this->pssForms->getMortgageCalculatorUrl($property),
                        "Mortgage calculator",
                        'class' => 'site-icons-mortgage-calculator',
                        'title' => 'Mortgage Calculator',
                        'onclick' => "_gaq.push(['_trackEvent', 'Property Enquiry', 'Mortgage calculator', '{$property->getSeoUrl()}']);"
                      )); ?>
                    </li>
                <?php endif;?>
 
                <?php
                $floorplanUrl = $property->getFloorplanPDFUrl();
                $class = 'site-icons-floorplans';
                if($floorplanUrl === false && isset($floorplans) && count($floorplans) > 0) {
                  $fp = $property->getFloorplan(0);
                  if($fp !== false) {
                    $floorplanUrl = $fp->getUrl();
                    $class .= ' floorplan-lightbox';
                  }
                }
 
                if ($floorplanUrl !== false) : ?>
                    <li>
                      <?= Tag::linkTo(array(
                        $floorplanUrl,
                        "Floorplans",
                        'class' => $class,
                        'title' => 'View property floorplans',
                        'target' => '_blank',
                        'onclick' => "_gaq.push(['_trackEvent', 'Property Details', 'Floorplans', '{$property->getSeoUrl()}']);"
                      )); ?>
                    </li>
                <?php endif;?>
 
                <li>
                  <?= Tag::linkTo(array(
                    $this->pssForms->getEmailFriendFormUrl($property),
                    "Share with a friend",
                    'class' => 'site-icons-share-friend',
                    'title' => 'Share with friend',
                    'onclick' => "_gaq.push(['_trackEvent', 'Share with friend', 'Open form', '{$property->getSeoUrl()}']);"
                  )); ?>
                </li>
                <?php
                // try and get the panoramic imaging virtual tour link
                $vtLink = $property->getVirtualTourVideoLinks();
                // if we have a valid panoramic imaging virtual tour link
                if($vtLink) :
                    echo $vtLink;
                endif;
 
                if ($property->getVirtualTourLink(1) !== false) : ?>
                    <li>
                      <?= Tag::linkTo(array(
                        "property-virtual-tour?property={$property->propertyCode}",
                        "Virtual tour",
                        'class' => 'site-icons-virtual-tour',
                        'title' => 'See the property Virtual Tour',
                        'onclick' => "_gaq.push(['_trackEvent', 'Property Details', 'Virtual tours', '{$property->getSeoUrl()}']);"
                      )); ?>
                    </li>
                <?php endif;?>
 
                <?php if (isset($property->micrositeLink)) : ?>
                    <li class="full-width">
                        <?= Tag::linkTo(array(
                            $property->micrositeLink,
                            isset($property->micrositeLabel) ? $property->micrositeLabel : "Property website",
                            'class' => 'site-icons-property-website',
                            'title' => "See the property website",
                            'target' => '_blank'
                        )); ?>
                    </li>
                <?php endif;?>
 
                <?php if ($property->getInteractiveFloorplans() !== false) : ?>
                    <li class="full-width">
                        <?= Tag::linkTo(array(
                            "search/interactive-floorplan?property={$property->propertyCode}",
                            'View interactive floorplan',
                            'class' => 'site-icons-interactive-presentation',
                            'title' => "Interactive Floorplans",
                            'target' => '_blank',
                            'id' => 'interactive-floorplans',
                        'onclick' => "_gaq.push(['_trackEvent', 'Property Details', 'Interactive floorplan', '{$property->getSeoUrl()}']);"
                        )); ?>
                    </li>
                <?php elseif (isset($property->floorplanLink)): ?>
                    <li class="full-width">
                        <?= Tag::linkTo(array(
                            $property->floorplanLink,
                            isset($property->floorplanLabel) ? $property->floorplanLabel : "Interactive property presentation",
                            'class' => 'site-icons-interactive-presentation',
                            'title' => "See an interactive presentation",
                            'target' => '_blank'
                        )); ?>
                    </li>
                <?php endif;?>
 
                <?php
                if(!isset($brochure)) {
                    $brochure = $property->getBrochure(0);
                }
                if($brochure !== false) {
                    $brochure = $brochure->getFullUrl();
                    $local = false;
                } else {
                    $brochure = 'pdf/view?property=' . $property->propertyCode;
                    $local = true;
                }
                ?>
                <li class="full-width">
                    <?= Tag::linkTo(array(
                        $brochure,
                        "View brochure",
                        'class' => 'site-icons-interactive-presentation',
                        'title' => "View brochure",
                        'target' => '_blank',
                        'id' => 'brochure-link',
                        'local' => $local
                    )); ?>
                </li>
            </ul>
            <div class="gmap_enlarge_icon">
                <div id="gmap_enlarge">
                    <?= Tag::linkTo(array(
                        $this->pssForms->getMapFormUrl($property),
                        "",
                        'class' => 'enlarge_map'
                    )); ?>
                </div>
                <div id="gmap">
                    <img src="http://maps.google.com/maps/api/staticmap?zoom=15&size=296x198&maptype=roadmap&markers=icon:http://<?= $_SERVER['HTTP_HOST'] .'/search/map-icon/'.($property->isHouse() ? "house" : "flat").'/25/'.($property->isHouse() ? "H" : "F"); ?>|<?=$property->latitude?>,<?=$property->longitude?>&sensor=false" width="296" height="198" />
                </div>
            </div>
        </div>
 
        <?= $this->view->partial('partials/recent-modules'); ?>
    </div>
 
    <div class="popup-wrapper">
        <div id="heatmap-popup" class="panel">
            <h3>Journey heatmap</h3>
            <div class="loadingBlock">
                <p>Your heatmap is loading. Please be patient.</p>
            </div>
        </div>
    </div>
 
    <?php if($canSeeMarketTrends !== false) : ?>
        <div class="popup-wrapper">
            <div id="market-trends-popup" >
                <h3>Market trends</h3>
                <div id="market-trends-holder">
                    <div class="panel">
                        <h4>Average prices in this area</h4>
                        <?php if (!empty($averagePrices)): ?>
                            <table border="0" cellpadding="0" cellspacing="0" width="210">
                                <tr valign="top">
                                    <th class="column-1">Nearby streets</th>
                                    <th class="column-2">Average price</th>
                                </tr>
 
                                <?php foreach ($averagePrices as $street => $averagePrice): ?>
                                    <tr valign="top">
                                        <td class="column-1"><?= ucwords($street); ?></td>
                                        <td class="column-2"><?= $averagePrice; ?></td>
                                    </tr>
                                <?php endforeach; ?>
                            </table>
                        <?php else: ?>
                            <p>No information available</p>
                        <?php endif; ?>
                    </div>
 
                    <div id="market-activity" class="panel">
                        <h4>Market activity in <?= $property->addressPostcodePrefix; ?></h4>
                        <p>
                            <span>Average Listing Price</span><br />
                            <?= isset($averageListingPrice['thisQuarterPrice']) ? $averageListingPrice['thisQuarterPrice'] : ''; ?>
                            <?= isset($averageListingPrice['lastQuarterDiff']) ? $averageListingPrice['lastQuarterDiff'] : ''; ?>
                            (<?= isset($averageListingPrice['lastQuarterDiffPercent']) ? $averageListingPrice['lastQuarterDiffPercent'] : ''; ?>%)
                            <?= isset($averageListingPrice['startDate']) ? $averageListingPrice['startDate'] : ''; ?> - <?= isset($averageListingPrice['endDate']) ? $averageListingPrice['endDate'] : ''; ?>
                        </p>
                        <p>
                            <span>Land Registry Sales for <?= isset($landRegistrySalesForMonth['compareDate']) ? $landRegistrySalesForMonth['compareDate'] : ''; ?></span><br />
                            <?= isset($landRegistrySalesForMonth['lastMonthCount']) ? $landRegistrySalesForMonth['lastMonthCount'] : ''; ?>,
                            <?= isset($landRegistrySalesForMonth['lastMonthDiff']) ? $landRegistrySalesForMonth['lastMonthDiff'] : ''; ?>
                            (<?= isset($landRegistrySalesForMonth['lastMonthDiffPercent']) ? $landRegistrySalesForMonth['lastMonthDiffPercent'] : ''; ?>%) month-on-month
                        </p>
                        <p>
                            <span>Properties for Sale</span><br/>
                            <?php if($soldPropertyInfo !== false) : ?>
                                <?= (string) $soldPropertyInfo->forsaleText; ?>
                            <?php endif; ?>
                        </p>
 
                    </div>
                </div>
            </div>
        </div>
    <?php endif; ?>
<?php endif;
#1Phalcon\Mvc\View\Engine\Php->render(/var/www/vhosts/winkworth-search/src/app/Views/winkworth/property/view.phtml, Array(18), true)
#2Phalcon\Mvc\View->_engineRender(Array([.volt] => Object(Phalcon\Mvc\View\Engine\Volt), [.phtml] => Object(Phalcon\Mvc\View\Engine\Php)), property/view, true, true, null)
#3Phalcon\Mvc\View->render(property, view, Array([type] => sale, [code] => WNKMDP000247))
#4Phalcon\Mvc\Application->handle()
<?php
 
//try {
    /** Define the environment */
    require_once __DIR__ . "/../app/config/environment.php";
 
    $debug = new \Phalcon\Debug();
    $debug->listen();
 
    /**
     * Read the configuration
     */
    $config = include APP_DIR . "/config/config.php";
 
    /**
     * Read auto-loader
     */
    include APP_DIR . "/config/loader.php";
 
    /**
     * Read services
     */
    include APP_DIR . "/config/services.php";
 
    /**
     * Handle the request
     */
    $application = new \Phalcon\Mvc\Application($di);
 
 
    echo $application->handle()
                     ->getContent();
 
//} catch (\Exception $e) {
   // echo $e->getMessage();
//}
#5require_once(/var/www/vhosts/winkworth-search/src/public/index.php)
<?php
if(preg_match('/(staging)/', $_SERVER['HTTP_HOST'])) {
    $folder = '/../../winkworth-search';
    $file = 'src/app/config/clients/config.winkworth.staging.php';
} elseif(preg_match('/(dev)/', $_SERVER['HTTP_HOST'])) {
    $folder = '/../../search';
    $file = 'src/app/config/clients/config.winkworth.dev.php';
} else {
    $folder = '/../../winkworth-search';
    $file = 'src/app/config/clients/config.winkworth.php';
}
 
if(file_exists(__DIR__ . "{$folder}/{$file}")) {
    $clientConfig = require_once(__DIR__ . "{$folder}/{$file}");
}
 
require_once(__DIR__ . "{$folder}/src/public/index.php");
KeyValue
_url/sale/property/WNKMDP000247
KeyValue
REDIRECT_STATUS200
HTTP_HOSTwww.winkworth.co.uk
HTTP_ACCEPT_ENCODINGx-gzip, gzip, deflate
HTTP_USER_AGENTCCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT_LANGUAGEen-us,en-gb,en;q=0.7,*;q=0.3
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
PATH/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWAREApache
SERVER_NAMEwww.winkworth.co.uk
SERVER_ADDR172.24.32.114
SERVER_PORT80
REMOTE_ADDR54.204.146.61
DOCUMENT_ROOT/var/www/vhosts/site.winkworth.supadu.com/httpdocs
SERVER_ADMINjamie.hannaford@wai.co.uk
SCRIPT_FILENAME/var/www/vhosts/site.winkworth.supadu.com/httpdocs/phalcon.php
REMOTE_PORT49460
REDIRECT_QUERY_STRING_url=/sale/property/WNKMDP000247
REDIRECT_URL/sale/property/WNKMDP000247
GATEWAY_INTERFACECGI/1.1
SERVER_PROTOCOLHTTP/1.0
REQUEST_METHODGET
QUERY_STRING_url=/sale/property/WNKMDP000247
REQUEST_URI/sale/property/WNKMDP000247
SCRIPT_NAME/phalcon.php
PHP_SELF/phalcon.php
REQUEST_TIME_FLOAT1422180784.471
REQUEST_TIME1422180784
#Path
0/var/www/vhosts/site.winkworth.supadu.com/httpdocs/phalcon.php
1/var/www/vhosts/winkworth-search/src/app/config/clients/config.winkworth.php
2/var/www/vhosts/winkworth-search/src/public/index.php
3/var/www/vhosts/winkworth-search/src/app/config/environment.php
4/var/www/vhosts/winkworth-search/src/app/config/config.php
5/var/www/vhosts/winkworth-search/src/app/config/loader.php
6/var/www/vhosts/winkworth-search/src/vendor/autoload.php
7/var/www/vhosts/winkworth-search/src/vendor/composer/autoload_real.php
8/var/www/vhosts/winkworth-search/src/vendor/composer/ClassLoader.php
9/var/www/vhosts/winkworth-search/src/vendor/composer/autoload_namespaces.php
10/var/www/vhosts/winkworth-search/src/vendor/composer/autoload_psr4.php
11/var/www/vhosts/winkworth-search/src/vendor/composer/autoload_classmap.php
12/var/www/vhosts/winkworth-search/src/app/config/services.php
13/var/www/vhosts/winkworth-search/src/app/config/routes.php
14/var/www/vhosts/winkworth-search/src/app/Router/Router.php
15/var/www/vhosts/winkworth-search/src/app/Router/Routes/Winkworth/Routes.php
16/var/www/vhosts/winkworth-search/src/app/Router/Routes/Routes.php
17/var/www/vhosts/winkworth-search/src/app/Controllers/Winkworth/SearchController.php
18/var/www/vhosts/winkworth-search/src/app/Controllers/SearchControllerBase.php
19/var/www/vhosts/winkworth-search/src/app/Controllers/ControllerBase.php
20/var/www/vhosts/winkworth-search/src/app/Controllers/Winkworth/PropertyController.php
21/var/www/vhosts/winkworth-search/src/app/Controllers/PropertyControllerBase.php
22/var/www/vhosts/winkworth-search/src/app/Plugins/MobileRedirect.php
23/var/www/vhosts/winkworth-search/src/app/Plugins/NotFound.php
24/var/www/vhosts/winkworth-search/src/app/Models/Winkworth/Property.php
25/var/www/vhosts/winkworth-search/src/app/Models/Property.php
26/var/www/vhosts/winkworth-search/src/app/Models/ModelBase.php
27/var/www/vhosts/winkworth-search/src/app/Library/SphinxPropertySearch/Search.php
28/var/www/vhosts/winkworth-search/src/app/Library/Utilities/Utilities.php
29/var/www/vhosts/winkworth-search/src/app/Library/SphinxPropertySearch/BitConfig.php
30/var/www/vhosts/winkworth-search/src/app/Library/SphinxPropertySearch/Bit.php
31/var/www/vhosts/winkworth-search/src/app/Models/Winkworth/Asset.php
32/var/www/vhosts/winkworth-search/src/app/Models/Asset.php
33/var/www/vhosts/winkworth-search/src/app/Views/winkworth/property/view.phtml
34/var/www/vhosts/winkworth-search/src/app/Models/Winkworth/Office.php
35/var/www/vhosts/winkworth-search/src/app/Models/Office.php
36/var/www/vhosts/winkworth-search/src/app/Library/Currency/Converter.php
Memory
Usage3670016