Saturday, August 30, 2014

Before Starting to Code......

Bootstrap

Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.Bootstrap makes front-end web development faster and easier. It's made for folks of all skill levels, devices of all shapes, and projects of all sizes.
In order to add the bootstrap framework into your project
  1. Go to http://getbootstrap.com/ and download the files.                  
  2. Create a folder inside codeigniter folder named 'assets'.
  3. Create a folder inside assets folder named 'css'.
  4. Put css files into css folder along with the 'bootstrap.min.css' file.
  5. Add this code segmant inside the head section in your view files.

  6. <?php
    echo link_tag('assets/css/filename.css');
    echo link_tag('assets/css/bootstrap.min.css');
    ?>

Codeigniter URLs

  URLs in CodeIgniter are designed to be search-engine and human friendly. Rather than using the standard "query string" approach to URLs that is synonymous with dynamic systems, CodeIgniter uses a segment-based approach. By default, the index.php file will be included in your URLs
   eg.  example.com/index.php/news/article/my_article


Removing The index.php File
  1. download the .htaccess file from the link provided below.                     http://www.mediafire.com/view/ql6ni1sae04h1n4/htaccess
  2. copy that file in to your Codeigniter folder.
  3. go to C:\wamp\www\Rally_CI\application\config and open the config file.
  4. make $config['index_page'] = 'index.php'; to $config['index_page'] = '';
  5. click on the wamp icon -> Apache -> Apache modules -> enable 'rewrite_module'

No comments:

Post a Comment