Development

Changeset 8586

You must first sign up to be able to contribute.

Changeset 8586

Show
Ignore:
Timestamp:
04/21/08 21:39:26 (5 years ago)
Author:
Carl.Vondrick
Message:

sfSearch: fixed type-os in Quick Start guide

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfSearchPlugin/trunk/doc/00 - Quick Start.xt

    r8572 r8586  
    5454          ))); 
    5555  $bookService->addRetort(new xfRetortField); 
    56   $bookService->addRetort(new xfRetortRouter('book/preview?isbn=$isbn$')); 
     56  $bookService->addRetort(new xfRetortRoute('book/preview?isbn=$isbn$')); 
    5757 
    5858  $this->getServiceRegistry()->register($bookService); 
    5959} 
     60}}} 
     61 
     62To have sfSearch automatically update your model when you save or delete it, open {{{ lib/model/Book.php }}} and append the following to the bottom of the class declaration: 
     63 
     64{{{ 
     65xfPropelBehavior::register('Book', array('MySearchIndex')); 
    6066}}} 
    6167 
     
    105111We are now ready to start searching the index. 
    106112 
     113== Clear Cache == 
     114{{{ 
     115symfony cc 
     116}}} 
     117 
    107118=== Populate Index === 
    108119Build the index: