28 lines
581 B
PHP
28 lines
581 B
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
//Teksten_model april 2018 */
|
|
|
|
class Teksten_model extends MY_Model{
|
|
|
|
protected $tablename = 'tb_teksten';
|
|
|
|
function __construct(){
|
|
parent::__construct();
|
|
$models = array('');
|
|
$this->load->model($models);
|
|
}
|
|
|
|
function gettekst($modulenr, $naam){
|
|
$this->sql ="SELECT text
|
|
FROM tb_teksten T
|
|
JOIN tb_menus M ON T.modulenr = M.module
|
|
WHERE T.modulenr = {$modulenr}
|
|
AND M.paginanaam = '{$naam}'
|
|
";
|
|
|
|
return $this->get_query_row('text');
|
|
}
|
|
|
|
|
|
}
|