<?php
또는 ?>
태그 전후의 여분의 공백을 검색하는 모든 파일을 검사 한 결과가 없습니다. Codeigniter가 개행하지 않고 HTML 코드를 출력하는 이유를 알고 있습니까? 예를 들어CodeIgniter에서 자동 개행이 작동하지 않는 이유는 무엇입니까?
:
<form action="http://localhost/login/validate_credentials" method="post" accept-charset="utf-8">
<input type="text" name="email" value="" id="email" placeholder="Email" />
<input type="password" name="password" value="" id="password" placeholder="password" />
<input type="submit" name="submit" value="login" />
<a href="http://localhost/login/signup">sign up</a>
</form>
하지만 난 얻을 :
<?php
echo form_open('/login/validate_credentials');
echo form_input('email', '', 'id="email" placeholder="Email"');
echo form_password('password', '', 'id="password" placeholder="password"');
echo form_submit('submit', 'login');
echo anchor('/login/signup', 'sign up');
echo form_close();
?>
나는 기대
<form action="http://localhost/login/validate_credentials" method="post" accept-charset="utf-8"><input type="text" name="email" value="" id="email" placeholder="Email" /><input type="password" name="password" value="" id="password" placeholder="Contraseña" /><input type="submit" name="submit" value="Iniciar Sesion" /><a href="http://localhost/login/registro">Crear Cuenta</a></form>
이는 형태 도우미로 발생되지 않으며, 예를 들어 내가 페이스 북을 사용하고 연결하면 언제 내가 내가 얻을 :
array(2) { ["me"]=> array(11) { ["id"]=> string(17) "101654498872" ["email"]=> string(20) "[email protected]" ["first_name"]=> string(8) "My Name" ["gender"]=> string(4) "male" ["last_name"]=> string(6)...... bla bla bla more code
어떤 도움이 필요합니까? 감사.
당신은 줄 바꿈을 추가하지 않는
수동으로 추가 할 때 추가 할 예정입니까? –
당신은 수동으로 html을 추가하면됩니까? 예, 완벽합니다. 문제는 내가 codeigniter와 함께 PHP를 사용할 때이다. – aluknot