1. Question:Define CodeIgniter framework? 

    Answer

    CodeIgniter is based on the Model-View-Controller (MVC) development pattern. MVC is a software approach that separates application logic from presentation. In practice, it permits web pages to contain minimal scripting since the presentation is separate from the PHP scripting.

    1. Report
  2. Question:Define Model, View and Controller? 

    Answer
    Model: The Model represents data structures. Typically model classes will contain functions that help to retrieve, insert, and update information in database.View: The View is the information that is being presented to a user. A View will normally be a web page, but in CodeIgniter, a view can also be a page fragment like a header or footer. It can also be an RSS page, or any other type of "page".Controller: The Controller serves as an intermediary between the Model and the View, and any other resources needed to process the HTTP request and generate a web page.

    1. Report
  3. Question:What is unit testing? 

    Answer

    Unit testing is an approach to software development in which tests are written for each function in your application. CodeIgniter's Unit Test class is quite simple, consisting of an evaluation function and two result functions.

    1. Report
  4. Question:What is xss filtering? 

    Answer
    The Input and Security Class comes with a Cross Site Scripting hack prevention filter, which can be run on a per-item basis, or can be set to filter all POST and COOKIE data automatically.

    1. Report
  5. Question:What do you mean by cross-site scripting (XSS)? 

    Answer
    Cross-site scripting (XSS) is a way of injecting malicious JavaScript code into the application. This type of exploit can be used to hijack a user's cookie, which can effectively let the user who injected the code take the ID of any user on the website, simply by linking them to the site with the code added in.

    1. Report
  6. Question:
    What is pagination?
     

    Answer
    pagination refers to the system of numbering pages a list of numbered links usually found at the bottom of the pages.

    1. Report
  7. Question:What is framework? 

    Answer
    Its goal is to enable to developer projects much faster than developers writing code from scratch, by providing a rich set of libraries for commonly needed tasks.

    1. Report
  8. Question:Define flash data in codeigniter? 

    Answer

    Codeigniter supports flash data, data that is only available for one server request, and is than removed. Flash data is very useful, and is usually used for informational massages.


    1. Report
  9. Question:What is form validation? 

    Answer
    Form validation is an important part of any application. It is important that have rules that should be adhered and also helps to keep a layer secure.

    1. Report
  10. Question:List the validation rules in term of Codeigniter? 

    Answer

    The validation rules of Codeignniter are as follows:

    • Required
    • Matches[field_name]
    • Min_length[x]
    • Max_length[x]
    • Exact_length[x]
    • Alpha
    • Alpha_numeric
    • Alpha_dash
    • Numeric
    • Integer
    • Is_natural
    • Is_natural_no_zero
    • Valid_email
    • Valid_emails
    • Valid_ip
    • Valid_base64

    1. Report
Copyright © 2024. Powered by Intellect Software Ltd