Book Image

Sphinx Search Beginner's Guide

By : Abbas Ali
Book Image

Sphinx Search Beginner's Guide

By: Abbas Ali

Overview of this book

Table of Contents (15 chapters)
Sphinx Search
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface

Time for action - creating a form to add feeds


  1. 1. Create the master layout at /path/to/webroot/feeds/views/layout.thtml:

    <!-- File: /path/to/webroot/feeds/views/layout.thtml -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
    <head>
    <title>Feed Search</title>
    <link rel="stylesheet" type="text/css" href="style.css" />
    </head>
    <body>
    <div id="header">
    <h1>Feed search using Sphinx</h1>
    </div>
    <div id="nav">
    <ul>
    <li><a href="search.php">Search</a></li>
    <li><a href="add.php">Add Feed</a></li>
    </ul>
    </div>
    <div id="content">
    <?php echo $contents; ?>
    </div>
    </body>
    </html>
    
  2. 2. Create /path/to/webroot/feeds/style.css:

    /** File: /path/to/webroot/feeds/style.css **/
    body {
    font-family: verdana,arial,sans-serif;
    font-size: 12px;
    margin: 0;
    overflow...