Welcome Guest, Not a member yet? Register   Sign In
Presentation Page before index.php
#1

[eluser]ferex[/eluser]
Hi

is there a way to make a presentation page

like to have

presentation.php
index.php
...


so when I access the site it first goes to presentation
to choose the desired language accompanied with a nice logo image
and then, after a language has been chosen
the index page comes in


Another question please

Is there a way to while looking at this presentation page
the index is being loaded? to save time.


Thank you for reading.
#2

[eluser]Andrew A.[/eluser]
In your default controller, create a function _presentation() to load the presentation files. Then in index(), check if the language has been set yet (I assume via sessions or cookies?) via an if/else. If the variable is not set, return _presentation(). If it is set, then show the index.
#3

[eluser]ferex[/eluser]
Thank you very much Andrew for your sugestion

I'll do that

is there an answer for the second question?

to preload the site while the presentation is being showed?

because i have lot of images

thank you.
#4

[eluser]Andrew A.[/eluser]
Sorry i didn't even see the second part. I'm actually not quite sure what is the best method for this, as I have never had to encounter it in my work. The best thing i can think of now is having a hidden div with images that can load into the cache, but i'll leave it to other members in the community who might have experience with pre-loading.
#5

[eluser]ferex[/eluser]
Ok, thank you, once again.

Hope to hear some advice of that question.




Theme © iAndrew 2016 - Forum software by © MyBB