Friday, 30 June 2017

how to use multiple jquery version without affecting each other

Put your latest version of jquery at first place then add older version

Then add the following code in your jquery script like this

Ex:
<script type='text/javascript' src='jquery.2.7.1.js'></script>

<script>
            var noconfilct=jQuery.noConflict(true);
</script>

<script type='text/javascript' src='jquery.1.7.1.js'></script>

Thursday, 15 June 2017

How to add custom font in code igniter mpdf

1.Download the ttf font file whatever you want

2.Paste it to mpdf/ttffonts folder

3.Then conf_font.php file and add your font in font data array

   Ex."arial" => array( 'R' => "arial.ttf",
'B'=>"arial Bold.ttf",),

Wednesday, 27 April 2016

How to install mongodb on windows7

1.Download the mongodb Zip file from the following link
      https://www.mongodb.org/dl/win32/i386

2.Create a new folder name as mongodb on C: or D: anywhere you want  and extract  mongodb zip or copy the upziped mongodb  files within the mongodb folder then create another folder within mongodb name as data.

3.Download the mongodb drivers from the following link
http://stackoverflow.com/questions/20390932/how-do-you-determine-correct-dll-for-mongo-php-extension

4.Just copy all drivers and put it on php ext folder then enable the file extention on php ini file.
   Ex:  extension=php_mongo-1.4.5-5.2-vc9.dll
          extension=php_mongo-1.4.5-5.2-vc9-nts.dll

 5.Open the command promt and type the following code
     C:\mongodb\bin>mongod --dbpath=c:\mongodb\data  --logpath=c:\mongodb\data\log.txt  --install
     C:\mongodb\bin>services.msc

6.Go to services.msc and start the mongodb services

Thats it instalation is over.

Now you can open command promt then check you connection
C:\mongodb\bin>mongo




Wednesday, 18 February 2015