저는 MVC를 처음 사용하고 있으며 codeignater를 사용하여 기존 프로젝트를 MVC로 변환하려고합니다. 아래는 현재 프로젝트 구조와 내용입니다.MVC 구조의 올바른 방법은 무엇입니까?
어떤 방법이 어떤 컨트롤러로 이동했는지 알고 싶습니다.. 안내가 도움이 될 것입니다.
index.php //contains links to students.php, professors.php, student_prof.php, admin/index.php
students.php //lists all students
professors.php //lists all professors
stud_prof.php //lists both students along with thier respective professors
admin //folder
index.php //login page
students.php // add, edit, delete, list students
professors.php // add, edit, delete, list professors
logout.php //logout for admin
내 시도 :
models
Students_model //add, edit, delete, list methods
Professors_model //add, edit, delete, list methods
Admin //login method
controllers
Index // show_links method
Students //add, edit, delete, list students methods
Professors //add, edit, delete, list professors methods
Admin //login, logout methods
CodeIgniter에는 MVC가 없습니다. –
질문을 편집하고 확장 할 수 있습니까? '평평한'사이트를 변환 할 때 방법/모범 사례 측면에서 더 잘 이해하고 싶은 MVC의 몇 가지 특정 측면을 포함 시키시겠습니까? – cerd
제 질문은 어떤 방법이 컨트롤러 어디에 있는지요? 나는 올바른 장소에 글을 쓰고 있는가? 고마워요 – Code