Tech-Today
How to integrate securimage captcha to codeigniter
Heres how:
1.) Download the open source securimage library from:
http://www.phpcaptcha.org/.
2.) Copy the library in your codeigniter's application/library folder.
3.) Create a function in your codeigniter's controller's class (example index)
function securimage() {
$this->load->library('securimage');
$img = new Securimage();
$img->show(); // alternate use: $img->show('/path/to/background.jpg');
}
4.) In the view where you will place the captcha, insert this line:
<img src="<?=site_url('index/securimage')?>" alt='captcha' />
site_url() - gives the base url with index.php in the end
index - controller
securimage - is the function
-
How To Upload A File In An Mvc3 C# Ajax Form
It's easy to upload file in a synchronous form, where you just post the file and read a HttpPostedFile variable in the server side: In plain html form, take note of the form enctype property: //the view (index.cshtml) @using (Html.BeginForm("Upload",...
-
Adding Loading Screen To C# Mvc Ajax Dialog Form Using Jquery
With my experience from telerik, I want my entity's add and edit form to be a popup so I don't have to change screen. I'm using C# MVC3, so I tried to look for jquery add on that would do the job. Fortunately I've come up with this article:...
-
Flexigrid's On Row Click - How To Implement Rowclick Action Of Flexigrid Using Codeigniter's Library
The objective of this writing is to update the flexigrid library so that it can handle the rowClick event. To do this we need to download the latest version of flexigrid's library here: http://flexigrid.eyeviewdesign.com/, extract and setup accordingly...
-
Allowing Url Query String In Codeigniter
As we all know codeigniter uses segment-based as url, example: Just like these: classname/methodname/parameter1/paramenter2, index.php/index/login/user/password Unfortunately, I was developing a web application that would accept payments via paypal. And...
-
How To Create A New Index Inside A Subdirectory In Codeigniter
I am using codeigniter framework in my php project and I have a requirement like this: When the url is */admin/, the application should call the index.php inside the admin folder. Folder structure: +codeigniter app +application +controller +index.php...
Tech-Today