selamat malam sobat disini saya akan membagikan skrip di website sebelumnya kawan kayak biasa nyalin xammppnya dulu dan habis itu buat databases karena disini saya menggunakan skrip model ci dengan bantuan php lansung aja yuk
<?php
*/
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* CodeIgniter Typography Helpers
*
* @package CodeIgniter
* @subpackage Helpers
* @category Helpers
* @author gc98 Dev Team
* @link https://kasircom.blogspot.com/user_guide/helpers/typography_helper.html
*/
// ------------------------------------------------------------------------
if ( ! function_exists('nl2br_except_pre'))
{
/**
* Convert newlines to HTML line breaks except within PRE tags
*
* @param string
* @return string
*/
function nl2br_except_pre($str)
{
$CI =& get_instance();
$CI->load->library('typography');
return $CI->typography->nl2br_except_pre($str);
}
}
// ------------------------------------------------------------------------
if ( ! function_exists('auto_typography'))
{
/**
* Auto Typography Wrapper Function
*
* @param string $str
* @param bool $reduce_linebreaks = FALSE whether to reduce multiple instances of double newlines to two
* @return string
*/
function auto_typography($str, $reduce_linebreaks = FALSE)
{
$CI =& get_instance();
$CI->load->library('typography');
return $CI->typography->auto_typography($str, $reduce_linebreaks);
}
}
// --------------------------------------------------------------------
if ( ! function_exists('entity_decode'))
{
/**
* HTML Entities Decode
*
* This function is a replacement for html_entity_decode()
*
* @param string
* @param string
* @return string
*/
function entity_decode($str, $charset = NULL)
{
return get_instance()->security->entity_decode($str, $charset);
}
}
//nama file sesuaikan dengan folder yang di simpan dan sesuaikan dengan kolom di xammppp
Comments
Post a Comment