Welcome Guest, Not a member yet? Register   Sign In
want to call a function through a button php
#5

(09-03-2018, 01:10 PM)Wouter60 Wrote: Please, take some time (maybe several days) to read the CodeIgniter documentation. Without doing that, it will cost you twice the time (or more) to solve all the issues you will encounter, because you're missing so many basics.

Like making a hyperlink (button or not) refer to a controller/function:
PHP Code:
<?php echo anchor('users/logout'' <- Go back ''class="btn btn-sm btn-info float-left"');?>

You must (auto)load the url helper if you want to use the anchor() function.
How to pass parameter to the function using anchor
Reply


Messages In This Thread
RE: want to call a function through a button php - by kvanaraj - 09-06-2018, 11:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB