Codeigniter Form Elements
Input Element
How to add attributes to an HTML element using jQuery
Complete Program for adding required attribute, and setting some value in html element using jquery Example 1: Example 2:
Create a Mysql Database Connection Using PDO
Example: Create a MySql Connection using PDO (PHP Data Object) Example: Closing PDO Connection
Integrating HTML template into codeigniter
First create a folder “assets” in main folder for html template’s CSS, JS and Images Paste all css and js files inside assets folder Goto:- application>views> (create a test.php file and paste html code) Open:- Application>config>autoload.php (Pass ‘url’ in helper array) Open:- Application>config>autoload.php (Pass ‘database’,’session’ in libraries array) Write the following code in your test
Starting With Codeiginiter
Download and extract codeigniter zip file where you want to start the project. Create an .htaccess file with following content (for removing index.php) Goto:- application>core> (create a controller for having common mehods) – Optional Create and test a function for testing that controller and function is working or not