Welcome Guest, Not a member yet? Register   Sign In
incorrect views directory when using hmvc
#1

[eluser]Unknown[/eluser]
hello,
i got a hmvc CI. i want to load a view from my admin module but hmvc looks for it in my default app directory (with views). is this correct?
#2

[eluser]wiredesignz[/eluser]
Hi Alvy, Yes, if the view is not found in the module/views directory, the application/views directory is checked next, and finally an error is generated if the view is not located.

Welcome to CI forums.
#3

[eluser]Unknown[/eluser]
what if it is located in both... or only in module/view dir but it fails to load? it keeps telling me the view wasn't found. maybe the issue is : it loads "main.php" OK but in main i include $content for which the hmvc looks in application/views. is there a workaround for that?
#4

[eluser]Unknown[/eluser]
[quote author="wiredesignz" date="1216956401"]Hi Alvy, Yes, if the view is not found in the module/views directory, the application/views directory is checked next, and finally an error is generated if the view is not located.

[/quote]

What about if i want to check first if there's a view file in application/views directory and if the view not found, then check if the view is module/view directory?




Theme © iAndrew 2016 - Forum software by © MyBB