mirror of
https://github.com/Relintai/crystal_cms_rcpp_fw.git
synced 2025-04-22 20:41:18 +02:00
22 lines
399 B
PHP
22 lines
399 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Common_model extends V_Model
|
|
{
|
|
function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
function get_page_name_from_id($id) {
|
|
$sql = "SELECT * FROM menu WHERE id = ?";
|
|
$res = $this->db->query($sql, array($id));
|
|
|
|
if (!$res->num_rows())
|
|
return false;
|
|
|
|
$res = $res->row_array();
|
|
|
|
return $res["link"];
|
|
}
|
|
} |