Created
September 2, 2015 10:29
-
-
Save artemrogov/3f32958f061f90488847 to your computer and use it in GitHub Desktop.
вывод категорий и ссылок
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getCategories($param) { | |
$param = ORM::for_table('categories')->find_many(); | |
return $param; | |
} | |
$getCat = array(); | |
$resultCat = getCategories($getCat); | |
echo '<ul>'; | |
foreach($resultCat as $itemCat) { | |
echo '<li><a href =templates/getcatart.php?categories='.$itemCat['id_category'].'>'.$itemCat['cat_name'].'</a></li>'; | |
} | |
echo '</ul>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment