This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
# allow_override On | |
# mod_rewrite is installed | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
<IfModule mod_php5.c> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Controllername extends CI_Controller { | |
public function __construct() | |
{ | |
parent::__construct(); | |
// Your own constructor code | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function create_slug($string){ | |
$string = preg_replace( '/[«»""!?,.!@£$%^&*{};:()]+/', '', $string ); | |
$string = strtolower($string); | |
$slug=preg_replace('/[^A-Za-z0-9-]+/', '-', $string); | |
return $slug; | |
} |
NewerOlder