I’m preparing for an interview and i’m new to cakephp, while searching in the internet i came across this questions…
“What is the first file that gets loaded when you run a application using cakephp?”
Answer:
Interviewer : what is the first file that gets loaded when you run a application using cakephp.,
Candidate : can you change that file.
Interviewer: yes
bootstrap.php , yes it can be changed , either through index.php , or through htaccess
Which file is loaded first, if that particular file is not changable.
I tried to find out the answer, but couldn’t get it.
Can any one help me on this please?
I’m preparing for an interview and i’m new to cakephp, while searching in the
Share
The very first file being loaded is
index.php(as per the.htaccessrewrite rules) in the webroot folder, which will add CakePHP’s core in the include pathCakePHP 1.3
CakePHP 2.1
It then includes
bootstrap.phpin both case.So the answer is :
index.phpand you shall not modify it (unless you are in some particular cases), thenapp/Config/bootstrap.phpand you may modify it.