JavaScript
- 2 ответа
- 0 вопросов
3
Вклад в тег
$testString = '/index.php?route=product/category&path=60';
parse_str(parse_url($testString, PHP_URL_QUERY), $params);
print_r($params);
Array
(
[route] => product/category
[path] => 60
)
http {
sendfile off;
}
$news = [
0 => [
'photo' => 'photoValue',
'title' => 'Title Value',
'description' => 'Some long Description',
],
1 => [
'photo' => 'photoValue',
'title' => 'Title Value',
'description' => 'Some long Description',
],
];
<div class="card" style="height: 30px;">
<?php foreach (get_menu_items() as $menuItem) : ?>
<a href="<?= $menuItem['url'] ?>"><?= $menuItem['title'] ?></a>
<?php endforeach; ?>
</div>