Top codeigniter interview question and answers

codeigniter interview question

 What is codeigniter?
Codeigniter is open source , web application framework.Its is for building websites using php.Codeigniter is loosely based on MVC pattern.Most simple framework in php , which is you will easily learn.Its mostly known for its speed as compare to other frameworks in php.
Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries.

 When and who developed codeigniter?
The first public version of CodeIgniter was released on February 28, 2006.

 What are the features of codeigniter?
 Codeigniter is free to use,its an open source framework.
 Its light weight.The core system requires only a few very small libraries.Not like other frameworks that require heavy file libraries.
Why codeigniter?
 CodeIgniter is Fast.Its faster than any other framework in php.
 The URLs generated by CodeIgniter are clean and search-engine friendly.You will change any url to what ever you want from files.
 CodeIgniter is Extensible.The system can be easily extended through the use of your own libraries, helpers, or through class extensions or system hooks.

What is MVC
 CodeIgniter Uses MVC(Model View Controller) which allows great separation between logic and presentation.

 CodeIgniter requires nearly zero configuration,does not require you to use the command line,not forced to learn a templating language.

 Full Featured database classes with support for several platforms,Security and XSS Filtering,Error Logging.
 Explain Codeigniter File Structure.

When you download Codeigniter you will see the following folder structure :-

    application
        cache
        Config
        Controllers
        core
        errors
        helpers
        hooks
        language
        libraries
        logs
        models
        thirdparty
        views
    system
        core
        database
        fonts
        helpers
        language
        libraries
 Explain MVC in Codeigniter.
  Controller:- The Controller serves as an intermediary between the Model
, the View. controller mediates input, converting it to
commands for the model or view.

Model:-The Model represents your data structures. Typically your model classes will contain functions that help you retrieve, insert,
and update information in your database.The model consists of application data and business rules.

View:-The View is the information that is being presented to a user. A View will normally be a web page.A view can be any output representation of data.

What are the hooks in codeigniter?
CodeIgniter’s Hooks feature provides a means to tap into and modify the inner workings of the framework without hacking the core files.How ever you like to cause some action to take place at a particular stage in the execution process.
he hooks feature can be globally enabled/disabled by setting the following item in the application/config/config.php file:
$config['enable_hooks'] = TRUE;

Hooks are defined in application/config/hooks.php file.For example
    $hook['pre_controller'] = array(
     'class'    => 'MyClass',
     'function' => 'Myfunction',
     'filename' => 'Myclass.php',
     'filepath' => 'hooks',
     'params'   => array('test', 'test1', 'webs')
     );

What are the helpers in codeigniter?
Helpers, as the name suggests, help you with tasks. Each helper file is simply a collection of functions in a particular category.There are URL Helpers, that assist in creating links, there are Form Helpers that help you create form elements, Text Helpers perform various text formatting routines, Cookie Helpers set and read cookies, File Helpers help you deal with files, etc.

Loading a helper file is quite simple using the following function:
    $this->load->helper('name');

How you will use or add codeigniter libraries?
All of the available libraries are located in your system/libraries folder. In most cases, to use one of these classes involves initializing it within a controller using the following initialization function:-
    $this->load->library('class name');

Probationary Officer Job-STATE BANK Of INDIA-Bank Job

Probationary Officer Job-STATE BANK Of INDIA-Bank Job

STATE BANK Of INDIA
Probationary Officers posts in State Bank of India Associate Banks
Post
  • Probationary Officer -PO : 2986 posts in various states in India SBBJ-350, SBH-900, SBM-500, SBP-100, SBT-1136 
  • Pay Scale : Rs.14500-25700/-, 
  • Qualification : Graduation in any discipline,  
  • Age : 21-30 years as on 01/09/2014. Age relaxation as per Govt. rules.
Process : Final selection will be made on the basis of
 performance in the written test on 07/08/2011 and Group Discussion
 & Interview for selected candidates.

Application Fee : Rs.500/- for SC/ST/PWD Rs.100/- only to be
 deposited in any branch of SBI by a prescribed deposit slip and
get receipt up to 23/06/2011. Details of the payment should be
 entered in online application form. 

How to Apply : Apply Online at SBI website from
 01/09/2014 to 18/09/2014.

Dates



  • Date of starting of Online submission of application : 01/09/2014
  • Last date of Online submission of Application : 18/09/2014
  • Date of Written Examination : November 2014 tentatively

  • View Details:https://www.sbi.co.in/portal/web/home/careers-with-us

    Upcoming HTC Desire 820

    Upcoming HTC Desire 820

    HTC Desire 820 will be the first device to sport Qualcomm's new
     Snapdragon 615 chipset, which is set to run on a 64-bit architecture.
     Now, the device has been thoroughly pictured ahead of its
    expected IFA announcement on Thursday.

     Keep in mind that the leaked images look eerily like the
     Desire 816, so take this with more than the usual grain of salt.
     Besides sporting four 1.8GHz cores and four 1.0GHz cores -
    both of the new Cortex-A53 variety - the new Snapdragon 615
     chipset will also feature the latest generation Adreno 405 GPU.
     The 5.5-inch device will have a rather disappointing screen of
    720p resolution, but will make up for it with a 13MP/8MP camera
     combo, 2,600mAh battery, 8GB of storage, and 1.5GB RAM.
     Meanwhile, HTC also announced another 64-bit-capable
    smartphone recently, the Desire 510. The Desire 510 is
    decidedly the less robust of the two, with a quad-core
     chip and 4.7-inch screen.


    Sony z3-Tablet Specs
    Samsung Galaxy Tab 4 Nook
    Iphone fantastic camera
    Oppo Neo 5 Lte Smartphone

    Top Tech Info

    New Moto X+1 -emerged online

    A new set of Moto X+1 photos emerged online,
    giving a clear look at the upcoming handset.
     The anonymous source revealed that the Moto logo on
     the phone's back could be, in fact, a power button, which
    can also be programmed for other shortcuts.

    Several months passed since the LTE-enabled version
     of Motorola's popular trooper – the Moto G – got unveiled.
    Apart from flaunting an increased price tag, microSD slot,
     and 4G LTE capabilities, the device was otherwise identical
     to its 3G-only peer. The often-lauded device runs on usually
     the most up-to-date version of almost-stock Android, which
     paves the way for smooth performance and, therefore, pretty
    good overall user experience. 

    The MOTO app is visible on the handset's home-screen,
     which means there will be some additional software features.
     Additionally, the front panel is decorated with four sensors,
     which suggests they can function as depth measurers for a
     possible 3D-enabled interface, or serve the MOTO app
     somehow - perhaps gesture controls.

    Sony SmartWatch 3

    Sony SmartWatch 3

    Sony is expected to introduce the Sony Xperia Z3, Sony Xperia Z3
     Compact and the Sony Xperia Z3 Tablet Compact this coming week
     at IFA in Berlin. In addition, it appears that Sony will be introducing
     a pair of new wearable devices at the same time.

    Fuzzy looking renders of both the Sony SmartWatch 3 and
     the Sony SmartBand Talk have appeared, sparking talk that
    both will also be unveiled at the Sony event on September 4th.

    The Sony SmartWatch 3 is powered by Android Wear and will
     feature a 1.68 inch screen with a 320 x 320 resolution.
    The timepiece has an IP58 certification.

    The Sony SmartWatch 3 will feature a 1.68" display with
     a 320x320 pixel resolution. It'll have IP58 certification under
    its strap and run Android Wear instead of regular Android with
    a Sony skin on top. As for the SmartBand Talk, it features a
     curved e-ink display and Bluetooth connectivity. The fitness
    tracker wearable should also be able to alert of phone notifications,
    but no further details are available at this point. But that's not all,
    as the company also teased we're about to go into deep waters with its latest products.

    Latest Technology|Trends in technology

    Faculty Job-National Institute of Technology

    Faculty Job-National Institute of Technology

    Posts Details



  • Assistant Professor : 08 posts on contract and regular, Pay Scale : Rs. 15600-39100 Academic grade pay Rs. 6000/ 7000/ 8000
  • Associate Professor : 09 posts, Pay Scale : Rs. 37400-67000 Academic grade pay Rs. 9500/-
  • Professor : 05 posts, Pay Scale : Rs. Rs. 37400-67000 Academic grade pay Rs. 10500/-

    • The broad disciplines in which faculty required are : Electronics and 
    • Communication Engineering, Electrical and Electronics Engineering,
    •  Computer Science and Engineering, Mathematics
     How to Apply : Apply Online at NIT Goa on or before 30/09/2014.

    View Details:  http://www.nitgoa.ac.in/uploaded_files/Faculty_advt_28aug14.pdf

    Faculty Job post-University of Madras

    Faculty Job post-University of Madras

    Post



  • Professor : 04 posts, Pay Scale :  Rs. 37400-67000 with an AGP of Rs. 10000
  • Associate Professor : 04 posts, Pay Scale :  Rs. 37400-67000 with an AGP of Rs. 9000
  • Assistant Professor : 08 posts, Pay Scale :  Rs. 15600-39100 with an AGP of Rs. 6000
  •  
    How to Apply :  Candidates may apply in the prescribed format to the
     Registrar of the University  with a Demand Draft for Rs.500/-
    Rs.250/- for SC/ST drawn in favour of the
     ‘The Registrar, University of Madras’, payable at Chennai on
     or before 22/09/2014.

    View Details: http://www.unom.ac.in/index.php?route=administration/announcement

    Where to Place AdSense Ads on Your Pages

    Where to Place AdSense Ads on Your Pages

    Publishers may well wonder where they should place AdSense
     ads on their pages for the best results. There’s a great deal of
    speculation about AdSense ad placement in
    webmaster circles, but not much hard data.

    It is clear that ads placed above the fold—meaning in the top
     third of the page where they will be seen on any computer
     monitor without scrolling down—do better than
    ads placed lower on a page.

    The best performing AdSense ad format and position is
     Leaderboard also called a horizontal skyscraper close to the
     top of a page. The second-best format is one of the
    several vertical skyscraper formats Skyscraper and Wide Skyscraper,
    with the top ad very close to the top of the page, either along the
    left or right side. If a vertical skyscraper is positioned along the
     right side of a page, then you need to take care to use a page
    design with a total width of less than 800 pixels so the skyscraper
     along the righthand side will display without horizontal
     scrolling on all monitors.

    Beyond this basic placement information, you might want to
    consider whether it makes sense to put many ads on a single
    page the Google limit is three ad units.
    There’s something to be said for placing many ads on a page
    the variety might produce good choices for more visitors.
     However, the “noise” of displaying many ads can detract from
    your site and some publishers get better results with fewer ads.
    The bottom line is that you should experiment with ad placement
     and the number of ads on your site. What works well for your
     site is not necessarily what works well for another site,
    so there is no substitute for trial and error.

    The Manage Ads page lets you modify ads you’ve already
     created.It’s a very nice feature that lets you change ads on
    the fly without having to change the code in your web pages.
    To change the settings for a specific ad, click the Edit Ad Settings link.

    Using the Color Palettes page, you start with one of the built-in
     Google palettes. Next, you can modify each of the colored
     elements of the palette, either by specifying an RGB
    hexadecimal color value or by choosing colors from a color picker.

    Testing the Effects of Optimization on Site Search and SEO

    As you optimize your entry pages to reduce bounce rates,
     you will find that you may have a juggling act to perform
    between external SEO and site search SEO. Depending
    on your site search platform, and specifically whether it uses
     spiders to interpret your site content, you may find you have
     to think about your SEO pages in two different ways when
     looking at on-page ranking factors.

    Site search may utilize meta descriptions and keyword
     tags heavily, while these play little to no role in rankings for
    external SEO. If you are not fortunate enough to have
    total control over your site search results and your site search
     utilizes different mechanisms from external SEO, you will need
     to utilize your analytics to determine which pages should be
    optimized for external search and which ones should be optimized for
    site search.

    Site search can provide a wealth of information that you
     can apply to both your SEO and paid search programs.
     Site search can be utilized as a testing ground, as well as a
    way  to  provide  users  coming  from  external  search  with
      a  quick  and  easy  way  to find other related content
    dynamically as your website grows. Site search can be an
    easy-to-leverageoption to allow for scalability by simply
    applying some of what you know about the traffic coming
     to your site and utilizing your site’s features.

    Capturing  and  sharing  data  from  search  in  real
     time  can  greatly  improve  the  user experience,and
     can be a first step toward creating a customized
    experience based on user data and interaction throughout
     your web pages.

    Both SEO and paid search are about driving profitability
    by improving position, relevancy, and popularity.

    A well-executed search campaign, be it SEO or paid search,
     can  significantly influence the volumes of traffic you get,
     as well as your conversion rates and ROI. Your competitors
     in search may not even be competitors you face in the offline
    world. Online you may find yourself competing with
     Wikipedia, Amazon, news andmagazine sites, and more.

    In the world of search, you compete not on products,
    but on words. Fortunately, today we have more
    sophisticated tools than ever before to track how
    competitors rank, and why they may be ranking as they do.

    SEOmoz has a very useful set of tools that you
    can use to research why your site and your competitors’
     sites rank as they do. You can also use Majestic SEO
    and AdGooRoo to further track competition for your SEO and
    paid search campaigns. Monitoring your competitors will
    come down to three basic tactics: monitoring those ahead
     of you, those behind you, and your overall search footprint
     compared to your direct competitors.

    Lenovo X2-Android smartphone-TENAA website.

    This Android smartphone from Lenovo has appeared on the
     Chinese TENAA website. Dubbed the X2, the smartphone
     has passed certification in the country and has revealed a
    decent sounding specs sheet in the process.

    The Lenovo X2 will be available in two versions with
    model names X2-CU and X2-TO. The X2-CU is
    powered by an octa-core CPU, presumably residing in
     a MediaTek chipset, while the X2-TO packs a 2.2GHz
    dual-core processor. This is the only difference between the two
     as both feature a 5" 1080p display, 2GB of RAM and
     32GB of storage.

     At the back, both Lenovo X2 versions feature a 13MP snapper
     with LED flash and a 5MP front-facing camera. Their dimensions
     are 140.2 x 68.6 x 7.27mm and the overall design is a bit
     reminiscent of Sony's Xperia Z-series of phones.
    With the certification process done with, Lenovo should launch
     the Android 4.4 running phones soon enough.