Prev | Current Page 230 | Next

Rob Allen, Nick Lo, and Steven Brown

"Zend Framework in Action"

A
results);?> results found.



    results as $result) : ?>
  • B
    escape($result->title);?>


    escape($result->summary);?>
    C


  • Licensed to Menshu You
    Please post comments or corrections to the Author Online forum at
    http://www.manning-sandbox.com/forum.jspa?forumID=329

    A escape() to handle special characters
    B View helper to retrieve the URL
    C Mainly for interest! The user doesn??™t care
    As with any response to a user action, we provide important feedback about what the user searched for and
    how many results were found. We then iterate over the results array displaying each item??™s information within
    an unsigned list. The search results do not contain the url to the page containing the result, so we need to work
    it out from the class and key fields that we do have in the search index. This is outsourced to a view helper,
    getSearchResultUrl(), to keep the code contained which is shown in listing 8.13. The results are ordered
    by the score field which shows the weighting of each result.


    Pages:
    218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242
Kalkulator kredytowy zakłady bukmacherskie ziemme.bizor.pl ścianki biurowe baseny ogrodowe