Welcome Guest, Not a member yet? Register   Sign In
HOw do i integrate FPDF in codeigniter
#1

[eluser]Waqar[/eluser]
HI i am using xampp i want to integrate fpdf library into codeigniter i treid the avaialbe tutorials in the forum nothing worked for me.

where do i have to put the font folder and how to define it.

Please help
#2

[eluser]tomcode[/eluser]
There are two by CodeIgniter in the index.php file defined constants
Code:
/*
| BASEPATH    - The full server path to the "system" folder
| APPPATH    - The full server path to the "application" folder
*/

which I use a lot.

Then I use
Code:
./my/path/to/somewhere

which is always relative to the folder wherein You're index.php resides

For any assets to load into the pages I use site_url() and base_url() which come in different flavors
Code:
// as part of the config class
$this->config->base_url();
$this->config->system_url();

//using the url helper
$this->load->helper('url');

site_url();
base_url();

By the way, CodeIgniter comes already with a font, I believe it's used for the captcha plugin.




Theme © iAndrew 2016 - Forum software by © MyBB