If you have created subfolders inside the controller's view folder, I
think you have to set the viewpath variable. Maybe in the controller
with $this->viewPath = 'folder'

http://api.cakephp.org/search/viewpath

On Mar 26, 12:05 pm, John Andersen <[email protected]> wrote:
> Please confirm that your view is to be found in the directory path /
> views/controller/action.ctp, where controller = your controllers name,
> and action.ctp = your controllers action that you invoked in the
> browser.
>
> Best wishes,
>    John
>
> On Mar 26, 8:43 am, programguru <[email protected]> wrote:
>
> > does anyone know why my view/sub1/sub2/filename.ctp cannot access the 
> > controller which is in my /controllers dir?
>
> > I tested everything to ensure my MVC code was correct in /view/sub1 and all 
> > was OK, but when I drop one level deeper in views it seems to disconnect 
> > and connection to my controller.
>
> > Anyone know a fix for this? I've been through the only cake forum, manual, 
> > and searched google, but have not found anything that works as of yet.
>
> > i would appreciate any tips, suggestions or the right direction. Thanks.
> > --
> > View this message in 
> > context:http://n2.nabble.com/controller-not-being-detected-when-view-index-fi...
> > Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to