S
S
semki0962016-06-26 19:49:37
CodeIgniter
semki096, 2016-06-26 19:49:37

How to make a redirect to the application installation page?

There is a certain web application for which I am writing an installer. Everything is fine, but I don’t understand how best to redirect to the installation page from any page. There is a routing file, I can prescribe in it and after installation rewrite this routing. But perhaps there are easier ways?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-06-26
@semki096

As an option:

if (file_exists('install.php')) {
  header('Location: /install.php');
}

This is if routing is not used in install.php.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question