HTML Pages in RevIgniter MVC

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
LiveCodeBeginner
Posts: 26
Joined: Fri Oct 10, 2014 9:40 pm

HTML Pages in RevIgniter MVC

Post by LiveCodeBeginner » Thu Feb 18, 2016 6:09 am

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

rabit
Posts: 40
Joined: Wed May 31, 2006 8:30 am

Re: HTML Pages in RevIgniter MVC

Post by rabit » Thu Feb 18, 2016 2:41 pm

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

LiveCodeBeginner
Posts: 26
Joined: Fri Oct 10, 2014 9:40 pm

Re: HTML Pages in RevIgniter MVC

Post by LiveCodeBeginner » Thu Feb 18, 2016 4:36 pm

Hey Rabit,

Thank you very much for the informative response! :D

Thanks.

Post Reply