<?php
class Themes extends CI_Controller
{
    public function switch($slug = '')
    {
        if (!empty($slug) && is_dir("assets/front_end/$slug")) {
            $this->session->set_userdata('theme', $slug);

        }
        redirect(base_url());
    }
}
