Hello all,
I have been trying to get my MVC to launch .HTML pages currently within the VIEW folder but to no avail. I have even created a sub folder in there called HTML but with no luck either.
Is this possible or do I need to convert everything to .LC files from .HTML files and setup all the paths via the Controller -- View scheme?
Thank you
HTML Pages in RevIgniter MVC
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: HTML Pages in RevIgniter MVC
revIgniter expects ".lc" as file extension even if your
view file is pure HTML. To be precise: the file extension
of the index file defines the extension expected by revIgniter.
Replace ".html" with ".lc" and all should be fine. You need to
load your view file in your controller of course.
To request any ".html" file without interference of revIgniter
the file must be located in your root folder.
In case you just like to make the page appear to be of type HTML
you can specify a suffix in application/config/config.lc that will
be added to all URLs generated by revIgniter. This means, if
".html" is set as suffix, http://your.domain.com/welcome.html
is a valid URL.
Ralf
view file is pure HTML. To be precise: the file extension
of the index file defines the extension expected by revIgniter.
Replace ".html" with ".lc" and all should be fine. You need to
load your view file in your controller of course.
To request any ".html" file without interference of revIgniter
the file must be located in your root folder.
In case you just like to make the page appear to be of type HTML
you can specify a suffix in application/config/config.lc that will
be added to all URLs generated by revIgniter. This means, if
".html" is set as suffix, http://your.domain.com/welcome.html
is a valid URL.
Ralf
-
- Posts: 26
- Joined: Fri Oct 10, 2014 9:40 pm
Re: HTML Pages in RevIgniter MVC
Hey Rabit,
Thank you very much for the informative response!
Thanks.
Thank you very much for the informative response!

Thanks.