Category Archives: Codeigniter

Pagination in Codeigniter

Step1:create a database users with fields id,username,city and make necessary changes in the config.php file if required or else you can use the steps mentioned here below http://mydoubts.in/blog/username-validation-using-codeigniter-check-the-username-in-the-databse-for-validating-a-user/ step2:create a controler pagination.php

Step2: create view file mylist.php

Step3: create a model file paginationdata.php

how to styllish the error message in codeigniter

Please Refer this link http://mydoubts.in/blog/username-validation-using-codeigniter-check-the-username-in-the-databse-for-validating-a-user/ and do the below steps on the mentioned files step1:add the below code into the view file uservalidationpage.php

step2:add the below code in controllers/usernamevalidation.php $this->form_validation->set_error_delimiters(‘ ‘, ‘ ‘);

Removing index.php from the url in codeigniter

Eg:how to remove index.php from the below url ? http://localhost/hello/index.php/usernamevalidation/validateme after removing the index.php url will be look like as below http://localhost/hello/usernamevalidation/validateme For removing the index.php follow the following steps open the config.php php in config folder make the changes as below $config[‘index_page’] = “”; $config[‘uri_protocol’] = “REQUEST_URI” and create an .htaccess file and add… Read More »

Fatal error: Cannot redeclare class – Error message in codeigniter

class Usernamevalidation extends CI_Controller{ if you use the same name for modelfile and modle class it will throw this error message like below Class Usernamevalidation extends CI_Model { so please use separate class name for both model and controllers. Click to see the Demo Click here to see the detailed code and demo

username validation using codeigniter-check the username in the databse for validating a user

Here 2 validations are added first one is if user not entering any values it will alert message.second is if user enter ‘mydoubts.in’ in the username field it will throw alert message. step1:Create a database in mysql using phpmydmin.After installling the xaamp/Waamp Type the below url into the browser. http://localhost/phpmyadmin/ # create a database called… Read More »

username validation using codeigniter

Here 2 validations are added first one is if user not entering any values it will alert message.second is if user enter ‘mydoubts.in’ in the username field it will throw alert message. stept1:create view file inside the application/views-uservalidationpage.php uservalidationpage.php

step2: create a controller inside the application/controllers/usernamevalidation.php usernamevalidation.php

validation using codeigniter and jquery-input field validation using codeigniter and jquery

step1:create an assets folder in the root directory means structure will be like this /application /system /user_guide /assets/js/custom.js custom.js

step2:create controller inside application/controllers-validate.php

step3:create view files inside view folder application/views-mypage.php,jquerypage.php mypage.php

Automatic dropdown box loading using codeigniter and Jquery/Ajax

Step1:Open the database.php inside the config folder and make changes like as below

step2:create a table inside testlogin database and insert the values please see the query below. —————————————————————

————————————————————– step3:Create a model file inside application/model/countrystate.php

step4: create controllers inside the controllers folder-application/controllers/countrystate_disp.php

step5:create view file inside the application/view/loadcountrystate.php

Click… Read More »

Unable to load the requested class: jquery error in codeigniter