PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, April 22, 2022

[FIXED] Where to put .ttf files Folder which comes with font awesome 4.03 in cake php 2.3

 April 22, 2022     cakephp, cakephp-2.0, cakephp-2.3     No comments   

Issue

I am New to CakePhp and want to learn more about it because of it's flexibility.But am having a bit of a prob already.

I have this project of mine where iam using font awesome in CakePhp. When i extracted the zip file of Font-Awesome i found "font-awesome.css " and a Folder name "fonts".

Well i have included the "font-awesome.css " in my default.ctp and copy the css file in "app/webroot/css folder".

Like this

 <?php echo $this->Html->css('font-awesome');?>
 <body>
    <i class="fa fa-calendar fa-3x"> MyAttendence</i>
 </body>

but i don't know where to put the "fonts" folder, i have tried placing this folder inside webroot/files/ but still no luck .

Any help is appreciated.

enter image description here


Solution

FontAwesome is including font files like ../fonts/fontawesome-webfont.eot?v=4.0.3, so you should try to put them in webroot/fonts (like webroot/fonts/fontawesome-webfont.eot)



Answered By - cornelb
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing