Advertisement
Guest User

Untitled

a guest
May 29th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <? if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
  2. CModule::IncludeModule("search");
  3.  
  4. $arFilter = array(
  5. "SITE_ID" => LANG,
  6. "MODULE_ID" => "iblock",
  7. "PARAM1" => "catalog",
  8. "PARAM2" => 14
  9. );
  10.  
  11. $obSearch = new CSearch();
  12. $obSearch->Search($arFilter, array("CNT" => "DESC"), false, true);
  13.  
  14. while ($res = $obSearch->getNext()){
  15. $arResult[] = $res;
  16. }
  17. $this->IncludeComponentTemplate();
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement