tags:

views:

15

answers:

2

I have created index.ctp under views/controller_name/ folder, but the Missing view error is still appearing? any suggestions?

A: 

Hi srinivas,

your question shows, that you are a beginning cake developer, as this question is as basic as it could get (no offence intended).

I suggest you search a bit on SO about how to start developing with cake, as well as doing the often suggested introduction blog tutorial (yes, the one mentioned in the link section, after a successful cakephp installation).

By doing so, you can answer your question all by yourself. If you come up with further questions along your path, try to pose these more detailed, e.g. in the case at hand, add the relevant parts of your error message.

Good luck with your studies.

Kind regards, Benjamin.

benjamin
A: 

This one depends on the URL you try to reach. If you open yourwebsite.com/yourcontroller, you are supposed to view the index.ctp view from your views/yourcontroller directory. However, you might use a routed configuration and therefore redirect your URL to another path (controller+view combination at that matter).

Mario Peshev