ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/www/gangabuvana/admin/cms/application/models/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/www/gangabuvana/admin/cms/application/models/Model_page.php

<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Model_page extends CI_Model 
{
    public function page_check($slug)
    {
        $this->db->select('*');
        $this->db->from('tbl_page_dynamic');
        $this->db->where('slug', $slug);
        $query = $this->db->get();
        return $query->num_rows();
    }

    public function dynamic_page_by_slug($slug)
    {
        $this->db->select('*');
        $this->db->from('tbl_page_dynamic');
        $this->db->where('slug', $slug);
        $query = $this->db->get();
        return $query->first_row('array');
    }
}

Zerion Mini Shell 1.0