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

/**
 * Page_model — editable static pages (About, etc.).
 */
#[\AllowDynamicProperties]
class Page_model extends MY_Model {

	protected $table = 'pages';
	protected $order_by = 'id ASC';

	/** Fetch a page by slug. */
	public function by_slug($slug)
	{
		return $this->get_by(array('slug' => $slug));
	}
}
