![]() |
[Solved] Button not changing correct after module installed - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: [Solved] Button not changing correct after module installed (/showthread.php?tid=62904) |
[Solved] Button not changing correct after module installed - wolfgang1983 - 09-06-2015 I am creating a module install controller. I am having issue with my view, when I click install button then install the module it should change to the button to modify, or some reason even though module installed button still says install. How can I make sure that is module is installed then button will say modify and then if module not installed then will say install As you can see in my image that I attached in the var dump it's showing slideshow installed into database there for button should now be modify but still says install. View PHP Code: <div class="container-fluid"> Controller PHP Code: <?php Model PHP Code: <?php RE: Button not changing correct after module installed - wolfgang1983 - 09-08-2015 I have solved my problem Used this $extension = preg_replace('/\\.[^.\\s]{3,4}$/', '', basename($file)); |