testing search function
This commit is contained in:
parent
ffec00444f
commit
6c9aa4dcdd
include
@ -142,9 +142,9 @@ class Product extends Entity {
|
||||
}
|
||||
|
||||
if($matchAll && array_diff_assoc($terms, $matches)) {
|
||||
print('=== DEBUG $terms ===<br>');
|
||||
var_dump($terms);
|
||||
print('<br><br>');
|
||||
// print('=== DEBUG $terms ===<br>');
|
||||
// var_dump($terms);
|
||||
// print('<br><br>');
|
||||
print('=== DEBUG $matches ===<br>');
|
||||
var_dump($matches);
|
||||
print('<br><br>');
|
||||
|
@ -30,10 +30,9 @@ class SearchPage extends Page {
|
||||
}
|
||||
print('<br>');
|
||||
foreach(array('user', 'product') as $type) {
|
||||
print('=== DEBUG $type: ');
|
||||
print_r($type);
|
||||
print(' ===<br>');
|
||||
print('<br>');
|
||||
// print('=== DEBUG $type: ');
|
||||
// print_r($type);
|
||||
// print(' ===<br><br>');
|
||||
$result = $this->search($type, $this->terms);
|
||||
if($result) {
|
||||
$out[$type] = $result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user