Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 为什么不在my<;中设置CodeIgniter\n\r;表格></表格>;输入标签?_Html_Codeigniter - Fatal编程技术网

Html 为什么不在my<;中设置CodeIgniter\n\r;表格></表格>;输入标签?

Html 为什么不在my<;中设置CodeIgniter\n\r;表格></表格>;输入标签?,html,codeigniter,Html,Codeigniter,根据CodeIgniter生成的HTML源代码, 为什么,对于某些标记有\n\r而对于之间的大多数标记没有\n\r?(例如和标记) 我应该做什么来拥有/管理\n\r <!DOCTYPE html> <html lang="fr"> <head> <meta charset="utf-8"> <title>Chauffeurs</title> <link rel="stylesheet"

根据CodeIgniter生成的HTML源代码, 为什么,对于某些标记有\n\r而对于
之间的大多数标记没有\n\r?(例如标记)

我应该做什么来拥有/管理\n\r

 <!DOCTYPE html>
<html lang="fr">

<head>

    <meta charset="utf-8">

    <title>Chauffeurs</title>

    <link rel="stylesheet" href="http://localhost/CI/CI220_FMT1/ressources/css/styles.css" type="text/css" />

</head>

<body>

<form action="http://localhost/CI/CI220_FMT1/index.php/CHAUFFEURS/chauffeurs_c" id="englobe_tout" method="post" accept-charset="utf-8">
<div id="div_menu_general" class="flexbox">

    <a href="http://localhost/CI/CI220_FMT1/index.php/ACCUEIL/accueil" class="bouton">Accueil</a><a href="http://localhost/CI/CI220_FMT1/index.php/BIENVENUE/bienvenue" class="bouton">Bienvenue</a><a href="http://localhost/CI/CI220_FMT1/index.php/QUI_ES_TU/qui_es_tu" class="bouton">Qui es tu ?</a><a href="http://localhost/CI/CI220_FMT1/index.php/TEST2b/test2b" class="bouton">Test2b</a><a href="http://localhost/CI/CI220_FMT1/index.php/TEST2b_mvc/test2b_c" class="bouton">Test2b_c</a><a href="http://localhost/CI/CI220_FMT1/index.php/CHAUFFEURS/chauffeurs_c" class="bouton_selectionne">Chauffeurs</a><a href="http://localhost/CI/CI220_FMT1/index.php/CONTACTS/contacts_c" class="bouton">Contacts</a>
</div>
etc.

司机
等
这是为
标记生成上述HTML代码的代码段(它们没有任何\n\r):


如果要格式化源代码,必须回显“\n”以插入换行符,或者使用CI推荐的格式,如下面所示,将php代码插入html源代码:

<div>
    <?= anchor('ACCUEIL/accueil', 'Accueil', array('class' => preg_match("/accueil/i", current_url()) ? "bouton_selectionne" : "bouton")) ?>

</div>


<我也缩写了你的…如果……如果我的回答对你有帮助,请考虑投票吧,@ NilsBAY。
<div>
    <?= anchor('ACCUEIL/accueil', 'Accueil', array('class' => preg_match("/accueil/i", current_url()) ? "bouton_selectionne" : "bouton")) ?>

</div>