ankit's Profile
Senior Developer
260
Points

Questions
52

Answers
4

  • Senior Developer Asked 5 days ago in CODEIGNITER.

    In Codeigniter code will run without routes.php
    routes.php is used to customise the url of the website. like if you have url like

    avianceschool.com/pages/contactus
    Here “pages” is a controller and “contactus” is method in that controller.If you want to show url without controller like avianceschool.com/contactus, then you need to write down the code as below.

    
    $route['contactus'] = ['pages/contactus'];
    
    
    • 26 views
    • 1 answers
    • 0 votes
  • Senior Developer Asked 5 days ago in CODEIGNITER.
    $sqlstatement = $this->db->last_query();

    OR

    There is a new public method get_compiled_select that can print the query before running

    echo $this->db->get_compiled_select(); // before $this->db->get();
    • 21 views
    • 1 answers
    • 0 votes
  • Senior Developer Asked 5 days ago in CODEIGNITER.

    Driver directory and file structure layout:

    /application/libraries/Driver_name
    Driver_name.php
    drivers
    Driver_name_subclass_1.php
    Driver_name_subclass_2.php

    • 49 views
    • 1 answers
    • 0 votes
  • Senior Developer Asked 5 days ago in AJAX.

    Advantages of Ajax:

    1) Reduce the server traffic in both side request. Also reducing the time consuming on both side response.
    2) Response time is faster so increases performance and speed.
    3) AJAX make asynchronous calls to a web server. This means client browsers are avoid waiting for all data arrive before start the rendering
    4) No require to completely reload page again.

    Disadvantages of Ajax:

    1) Search engine would not crawl ajax generated content. So the Search Engines can’t index AJAX pages.
    2) Security is less in as View source is allowed and anyone can view the source code written for AJAX.
    3)Impossible to bookmark ajax updated page content.

    • 33 views
    • 1 answers
    • 0 votes