Codeigniter Tutorials
- What is codeigniter?
- Application_Architecture
- MVC Architecture
- HMVC Architecture
- Codeigniter Configuration
- Remove index.php from url in codeigniter
- MVC Concept
- View
- Alternate PHP Syntax for View Files
- Routing
- Codeigniter URL
- Get Current URL
- Previous page URL get
- Seo Friendly URL
- Slug Create in codeigniter
- What is _remap() function
- Remove controller name from url in codeigniter
- Codeigniter Controller Class
- Class Constructor
- GET $ POST method in Codeigniter
- Models
- Basepath, Apppath, FCPATH
- URI Segment
- Page Redirect
- Helper class
- Custom Helper class
- Form Helper
- Common Helper Functions
- Common Function
- Array Problems
- Call controller in Helper
- Add active class to menu using Helper class
- Custom Library
- Custom Library Example
- when to use get_instance()
- Codeigniter Hook
- how to work inline css in codeigniter
- Custom 404 page
- 404 custom error page
- Create custom config file in codeigniter
- How to set and get config item value
- How to Speed Up CodeIgniter App?
- Codeigniter Functions
- Session
- cookies
- How to Set & Get Tempdata in Codeigniter
- flash messages in Codeigniter
- Flashdata
- Encryption and Decryption In CodeIgniter
- Codeigniter security
- csrf token form security
- Password Hashing
- Form Validation
- Custom Validation
- Registration Form with validation
- Server Side Form Validation
- Validate Select Option Field
- Date Format Validation
- Date Format change in codeigniter
- Date Functions
- DOB Validation
- CI CRUD
- User SignUp
- User Login
- User Logout
- Login Account
- Login form with RememberMe
- Login Form with session
- User change password
- Change Password with Callback Validation to Check Old Password
- Forgot password
- Reset password
- Insert data in database
- Fetch data from database
- Update data in database
- Delete data in database
- File Upload
- Image Upload with resize Image
- Upload Multiple file and images
- Upload Multiple images with CRUD
- File and image update
- Upload Image Using Ajax.
- Email Send
- Email Send Using Email library
- Email Send Using SMTP Gmail
- Notification send
- store data in json format in DB
- Json parse
- Fetch data Using Ajax with Json data
- How to Show data Using Ajax with Json parse
- Get JSON Data from PHP Script using jQuery Ajax
- Insert data Using Ajax
- Submit data Using Ajax with form validation
- How to show data Using Ajax in codeigniter
- Insert & Update Using Ajax
- Registration Form With Validation Using Ajax in codeigniter
- Delete data Using Ajax Confirmation
- Delete All data Using checkbox selection
- Ajax CSRF Token
- Ajax Post
- Ajax serverside form validation
- Contact form using AJAX with form validation
- DataTable Using Ajax dynamically
- DataTables pagination using AJAX with Custom filter
- DataTables AJAX Pagination with Search and Sort in codeigniter
- DataTables in Codeigniter using Ajax
- Ajax Custom Serarch
- Ajax Live Data Search using Jquery PHP MySql
- Ajax Custom Serarch and sorting in datatable
- Dynamic Search Using Ajax
- Autocomplete using jquery ajax
- Jquery Ajax Autocomplete Search using Typeahead
- Dynamic Dependent Dropdown Using Ajax
- Dynamic Dependent Dropdown list Using Ajax
- Dynamic Dependent Dropdown in codeigniter using Ajax
- ajax username/email availability check using JQuery
- Check Email Availability Using Ajax
- Data Load on mouse scroll
- Ajax CI Pagination
- Pagination in codeigniter
- Ajax Codeigniter Pagination
- email exists or not using ajax with json
- CRUD using AJAX With Modal popup in CI
- Add / Show Data on modal popup using Ajax
- Modal popup Validation using Ajax
- Data show on Modal popup Using Ajax
- Add / Remove text field dynamically using jquery ajax
- How to Add/Delete Multiple HTML Rows using JavaScript
- Delete Multiple Rows using Checkbox
- Multiple Checkbox value
- Form submit using jquery Example
- REST & SOAP API
- Multi-Language implementation in CodeIgniter
- How to pass multiple array in view
- Captcha
- create zip file and download
- PhpOffice PhpSpreadsheet Library (Export data in excel sheet)
- data export in excel sheet
- Excel File generate in Codeigniter using PHPExcel
- Dompdf library
- tcpdf library
- Html table to Excel & docs download
- CI Database Query
- Database Query
- SQL Injection Prevention
- Auth Model
- Join Mysql
- Tree View in dropdown option list
- OTP Integration in codeigniter
- curl post
- download file using curl
- Sweet Alert
- Sweet alert Delete & Success
- Log Message in Codeigniter
- Menu & Submenu show dynamically
- Set Default value in input box
- Cron Jobs
- Stored Procedure
- Display Loading Image when AJAX call is in Progress
- Send SMS
- IP Address
- Codeigniter Tutorialspoint
- Website Link
- How To Create Dynamic Xml Sitemap In Codeigniter
- Paypal Payment Integration
- Get Latitude and Longitude From Address in Codeigniter Using google map API
- How To Create Simple Bar Chart In Codeigniter Using AmCharts?
- dynamic Highcharts in Codeigniter
- Barcode in Codeigniter
- Codeigniter Interview Questions
- Project
Codeigniter Interview Questions.
what is codeigniter?
what is codeigniter?+
Codeigniter is a php MVC Framework.
what is difference between die and exist.
what is difference between die and exist.+
Die() first terminate the script and then print message.
Exit() first print message and then terminate the script.
if you comment to die() statement then exit also print
http://www.iamrohit.in/codeigniter-interview-questions-and-answers-fresher-experienced/ +
Explain routing in CodeIgniter?
Explain routing in CodeIgniter? +
In CodeIgniter, the way PHP files served is different rather than accessing it directly from the browser. This process is called routing. Routing in CodeIgniter gives you freedom to customize the default URL pattern to use our own URL pattern according to the requirement.
So, whenever there is a request made and matches our URL pattern, it will automatically direct to the specified controller and function.
What are the features of codeigniter?
What are the features of codeigniter? +
* It is free to use as for open source framework.
* CodeIgniter is Fast. It is faster than any other framework in php.
* It is extremely light weighted.
* Excellent documentation
* CodeIgniter Uses MVC (Model View Controller) which allows great separation between logic and presentation.
How to access config variable in codeigniter?
How to access config variable in codeigniter? +
$this->config->item('variableName');
Explain how you can enable CSRF (Cross Site Request Forgery) in CodeIgniter?
Explain how you can enable CSRF (Cross Site Request Forgery) in CodeIgniter? +
Go To: application/config/config.php and set
$config['csrf_protection'] = TRUE;
How to load a model in CodeIgniter?
How to load a model in CodeIgniter? +
$this->load->model('ModelName');
How to unset session in Codeigniter?
How to unset session in Codeigniter? +
$this->session->unsetuserdata('SessionVariableName');
How do you get last inserted ID in Codeigniter?
How do you get last inserted ID in Codeigniter? +
$this->db->insert_id();
Explain what is inhibitor in CodeIgniter?
Explain what is inhibitor in CodeIgniter? +
For CodeIgniter, inhibitor is an error handler class, using the native PHP functions like set_exception_handler, set_error_handler, register_shutdown_function to handle parse errors, exceptions, and fatal errors.
How to print SQL statement in codeigniter model?
How to print SQL statement in codeigniter model? +
$this->db->last_query();
How to load helpers in CodeIgniter?
How to load helpers in CodeIgniter? +
$this->load->helper('helperName');
How you will use or add CodeIgniter libraries?
How you will use or add CodeIgniter libraries? +
$this->load->library('LibName');
How can you connect models to a database manually?
How can you connect models to a database manually? +
$this->load->database();
What are the different types of hook in Codeigniter?
What are the different types of hook in Codeigniter? +
* post_controller_constructor
* pre_controller
* pre_sytem
* post_sytem
* cache_override
* display_override
* post_controller
what is difference between md5 and sha1
what is difference between md5 and sha1? +
MD5 stands for Message Digest whereas While SHA1 stands for Secure Hash Algorithm.
MD5 can have 128 bits length of message digest whereas SHA1 can have 160 bits length of message digest.
The speed of MD5 is fast in comparison of SHA1’s speed.
MD5 is simple than SHA1 While SHA1 is more complex than MD5.
MD5 provides indigent or poor security While it provides balanced or tolerable security.
If one want to seek two messages having same identical message digest, 264 operations to be performed whereas If one want to seek two messages having same identical message digest, 280 operations to be performed.
MD5 has 16 Rounds whereas SHA-1 has 20 Rounds.
It is less secure whereas sha1 is more secure
Message Digest :- A message-digest algorithm is also called a hash function or a cryptographic hash function.
It accepts a message as input and generates a fixed-length output, which is generally less than the length of the input message. The output is called a hash value, a fingerprint or a message digest.
Message Digest 5 (MD5) processes the input text in 512-bit blocks. These blocks are further divided into 16 32-bit sub-blocks.
MD5 is a 128-bit hash.
The MD5 algorithm is intended for digital signature applications, where a large a file must be “compressed” in a secure manner before being en private key under a public-key cryptosystem such as RSA.
How to get current url with query string in codeigniter?
How to get current url with query string in codeigniter? +
// $parameters = $this->input->get();
$this->load->helper('url');
$currentURL = current_url();
$params = $_SERVER['QUERY_STRING'];
$fullURL = $currentURL . '?' . $params;
print_r($fullURL);
How to get Ip Address in Codeigniter?
How to get Ip Address in Codeigniter? +
$ip = $this->input->ip_address();
print_r($ip);
<?php
function getClientIp() {
$ipAddress = '';
if (isset($_SERVER['HTTP_CLIENT_IP'])){
$ipAddress = $_SERVER['HTTP_CLIENT_IP'];
} else if(isset($_SERVER['REMOTE_ADDR'])){
$ipAddress = $_SERVER['REMOTE_ADDR'];
}else{
$ipAddress = 'UnKnown';
}
return $ipAddress;
}
echo getClientIp();
?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+