SlideShare a Scribd company logo
1 of 7
Integrate Bootstrap into
CodeIgniter App
• Realizati un proiect nou si eliminati index.php din adresa.
• Descarcati un sablon Bootstrap
http://startbootstrap.com/template-overviews/grayscale/
• Copiati continutul fisierului index.html al sablonului Bootstrap in
vederea /views/welcome_message.php
• Copiati tot continutul directorului sablonului BS in proiectul CI
• Vizualizati proiectul CI
• Obs ca nu are atasat stilul
• Pentru a putea accesa stilul, editati fisierul .htaccess astfel:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /CIgniter6/
RewriteCond $1 !^(index.php|img|css|fonts|vendor|js|robots.txt)
RewriteRule ^(.*)$ /index.php?/$1 [L]
</IfModule>
18. CodeIgniter bootstrap

More Related Content

More from Razvan Raducanu, PhD (20)

4. forme in zend framework 3
4. forme in zend framework 34. forme in zend framework 3
4. forme in zend framework 3
 
3. trimiterea datelor la vederi
3. trimiterea datelor la vederi3. trimiterea datelor la vederi
3. trimiterea datelor la vederi
 
2.routing in zend framework 3
2.routing in zend framework 32.routing in zend framework 3
2.routing in zend framework 3
 
1. zend framework intro
1. zend framework intro1. zend framework intro
1. zend framework intro
 
18. images in symfony 4
18. images in symfony 418. images in symfony 4
18. images in symfony 4
 
17. delete data
17. delete data17. delete data
17. delete data
 
16. edit data
16. edit data16. edit data
16. edit data
 
15. view single data
15. view single data15. view single data
15. view single data
 
14. add data in symfony4
14. add data in symfony4 14. add data in symfony4
14. add data in symfony4
 
13. view data
13. view data13. view data
13. view data
 
12.doctrine view data
12.doctrine view data12.doctrine view data
12.doctrine view data
 
11. move in Symfony 4
11. move in Symfony 411. move in Symfony 4
11. move in Symfony 4
 
10. add in Symfony 4
10. add in Symfony 410. add in Symfony 4
10. add in Symfony 4
 
9. lower in Symfony 4
9. lower in Symfony 49. lower in Symfony 4
9. lower in Symfony 4
 
8. radio1 in Symfony 4
8. radio1 in Symfony 48. radio1 in Symfony 4
8. radio1 in Symfony 4
 
7. copy2 in Symfony 4
7. copy2 in Symfony 47. copy2 in Symfony 4
7. copy2 in Symfony 4
 
6.copy text
6.copy text6.copy text
6.copy text
 
5.hello popescu2
5.hello popescu25.hello popescu2
5.hello popescu2
 
4.hello popescu
4.hello popescu4.hello popescu
4.hello popescu
 
1.symfony 4 intro
1.symfony 4 intro1.symfony 4 intro
1.symfony 4 intro
 

18. CodeIgniter bootstrap

  • 2. • Realizati un proiect nou si eliminati index.php din adresa.
  • 3. • Descarcati un sablon Bootstrap http://startbootstrap.com/template-overviews/grayscale/
  • 4. • Copiati continutul fisierului index.html al sablonului Bootstrap in vederea /views/welcome_message.php • Copiati tot continutul directorului sablonului BS in proiectul CI
  • 5. • Vizualizati proiectul CI • Obs ca nu are atasat stilul
  • 6. • Pentru a putea accesa stilul, editati fisierul .htaccess astfel: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /CIgniter6/ RewriteCond $1 !^(index.php|img|css|fonts|vendor|js|robots.txt) RewriteRule ^(.*)$ /index.php?/$1 [L] </IfModule>