Welcome Guest, Not a member yet? Register   Sign In
Payment page filtering
#1

[eluser]nofearinc[/eluser]
There is a site that offers services. All the services are presented as different controller methods and require user payment.

Which is the best practice to implement a check whether user have enough funds and charge him: before filter, some library, method in constructor or anything else?
#2

[eluser]Milos Dakic[/eluser]
If the services are different controller methods, you can do it in the constructor. Otherwise if they are different controllers you can always extend the controller with MY_Controller.php (which goes in the libraries folder of your application) and do everything there.




Theme © iAndrew 2016 - Forum software by © MyBB