Update/Sync Project in Codeigniter

Asked

Viewed 110 times

-1

I am developing a web system in codeigniter and will have a link to update the project version when you have an update. That is, the client will access the system, a message will appear warning that there are pending updates, the user clicks the link and the project is updated to the latest version.

How can I make this logic? I am using the Codeigniter framework.

1 answer

-1

Good afternoon, what you can do is use $_GET to create a URL and when accessing update what you need, this can be done at index(). Example:

   url = http://localhost/articles?update=1 
   if ($_GET['update'] == '1') {
        aqui voce cria uma função nome_da_função() e criar a lógica do update.
    };

Link to the GET : http://php.net/manual/en/reserved.variables.get.php

Browser other questions tagged

You are not signed in. Login or sign up in order to post.