Update / Synchronize Project in Codeigniter

-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 on the link and the project is updated to the latest version.

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

    
asked by anonymous 18.10.2017 / 18:16

1 answer

-1

Good afternoon, what you can do is to use $ _GET to create a URL and when accessing update what you need, this can be done in 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.
    };

GET link: link

    
18.10.2017 / 19:51