Php 使用codeigniter制作LI-an锚链
我试图理解如何将UL的LI元素转换为与codeigniter的链接,但我在文档中没有看到任何地方可以解释它的外观。我也尝试过谷歌搜索,但没有找到我想要的结果 我要找的东西是:Php 使用codeigniter制作LI-an锚链,php,html,codeigniter,Php,Html,Codeigniter,我试图理解如何将UL的LI元素转换为与codeigniter的链接,但我在文档中没有看到任何地方可以解释它的外观。我也尝试过谷歌搜索,但没有找到我想要的结果 我要找的东西是: <UL> <LI><a href="whatever.php">Test Link</a><LI> <LI><a href="whatever.php">Test Link</a><LI> </
<UL>
<LI><a href="whatever.php">Test Link</a><LI>
<LI><a href="whatever.php">Test Link</a><LI>
</UL>
-
-
以下是我目前掌握的情况:
<?php
$list = array(
'Login',
'Forgot Password'
);
$attributes = array(
'class' => 'uibutton-group'
);
echo ul($list, $attributes);
?>
如果您试图创建锚定,可以使用“锚定”,如中所示:
- 将ul的li元素转换为链接是什么意思。这是您想要的输出还是其他什么?我已经把你的问题读了4遍了,不知道你在找什么。
-
<?php
$list = array(
anchor('/login', 'Login', 'title="Login"'),
anchor('/forgot-password', 'Forgot Password', 'title="Forgot Password"')
);
$attributes = array(
'class' => 'uibutton-group'
);
echo ul($list, $attributes);
?>