ical-file을 만들려고합니다.cakephp Router :: parseExtensions ('ics')가 제대로 작동하지 않습니다.
그래서 Router::parseExtensions('ics')
을 router.php
에 설정합니다.
나는 내가 ical()
조치를 작성 /app/views/reservations/ics/
에 ical.ctp
을 만들어 내 reservationsController에서이 내용에
<?php
header('Content-Type: text/calendar');
echo $content_for_layout;
?>
을 폴더 app/views/layouts
에 ics
과 default.ctp
를 만들었습니다.
Error: The view for ReservationsController::ical() was not found.
Error: Confirm you have created the file: C:\xampp\htdocs\ers\app\views\reservations\ical.ctp
그래서 나는 오류 메시지에 대해 조금 혼란 스러워요 : 나는
http://localhost/reservations/ical/1.ics
에 액세스하기 위해 노력하고있어 경우
그래서, 나는 오류가 발생합니다. ical.ctp
을 app\views\reservations\
에 검색하고 app\views\reservations\ics\
을 검색하지 않는 이유는 무엇입니까?
내가 .xml
오류 메시지와 같은 다른 확장자를 사용하고 다음과 같습니다
Error: Confirm you have created the file: C:\xampp\htdocs\ers\app\views\reservations\xml\ical.ctp
왜 XML 작업과 ICS하지합니까? 무엇이 잘못 되었습니까?