In order to add the bootstrap framework into your project
- Go to http://getbootstrap.com/ and download the files.
- Create a folder inside codeigniter folder named 'assets'.
- Create a folder inside assets folder named 'css'.
- Put css files into css folder along with the 'bootstrap.min.css' file.
- Add this code segmant inside the head section in your view files.
<?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
- download the .htaccess file from the link provided below. http://www.mediafire.com/view/ql6ni1sae04h1n4/htaccess
- copy that file in to your Codeigniter folder.
- go to C:\wamp\www\Rally_CI\application\config and open the config file.
- make $config['index_page'] = 'index.php'; to $config['index_page'] = '';
- click on the wamp icon -> Apache -> Apache modules -> enable 'rewrite_module'
No comments:
Post a Comment