first commit
This commit is contained in:
18
autoload/front/view/class.Search.php
Normal file
18
autoload/front/view/class.Search.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace front\view;
|
||||
|
||||
class Search
|
||||
{
|
||||
public static function search_results( $articles )
|
||||
{
|
||||
$tpl = new \Tpl;
|
||||
$tpl -> articles = $articles;
|
||||
return $tpl -> render( 'search/search-results' );
|
||||
}
|
||||
|
||||
public static function search_form()
|
||||
{
|
||||
$tpl = new \Tpl;
|
||||
return $tpl -> render( 'search/search-form' );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user