You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 26, 2019. It is now read-only.
Ken Price edited this page Oct 27, 2015
·
4 revisions
Sandbox
Make a nice sandbox with prepend!
Save following as prepend.php
<?php
include ('src/search-api/search-engine.php');
foreach (glob("{src/models/*.php,src/services/*.php,src/providers/*.php}", GLOB_BRACE) as $filename)
{
include $filename;
}
$searchEngine = new SearchApi\SearchEngine();
$request = new SearchApi\Models\SearchRequest();
$response = $searchEngine->handle_request( $request );
To use it, run:
php -d auto_prepend_file=$PWD/prepend.php -a