This is my knowledge when i managed Insaniah University College servers and their web based system. I did this so that i can remember what i did and share with you and probably someone could help me to make it better than what i have done. Hopefully this will help someone...
its to maintain the design template that they create or use. for me, ill try to make my controller clean as possible. its easier for me in case i need to debug my code. so the code in my controller must be as minimal as it can be. only a form process and a few things that is very important should be there in the controller.
in order to do that, i need help from a helper which is
its been a while. im rusted a lot. havent done codeigniter n php for nearly 2 years..
ok, im going to share how i sanitized a data from user before that data can be taken n record to the database. to validate and sanitized data is quite a tedious process if we do it from a scratch.
usually its depends a lot of regex. for example, how we make sure that our user insert his email to our input?
we need to know the pattern of the input. in php this is the regex for any email address.
that makes our code r very long n its hard to track.
when u r in the process of debugging. just use the built in function that comes with the codeigniter. simple right?
ok, we come to cross scripting or XSS features. this is quite intesting topic for me cos previously i havent thought how "naughty people" violate the whole system website untill i reach this page. Cross-site Scripting (XSS) Attack. u can learn more cos im not going to cover this topic, whats important to me is that i must use this feature in codeigniter..haha