class Model {
protected $db;
public $_tabela;
public $_primary_key;
public function __construct($table_name, $primary_key) {
$this->db = new PDO('mysql: host=localhost; dbname=radioest_radio', 'root', '');
$this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$this->_tabela = $table_name;
$this->_primary_key = $primary_key;
}
class DataGrid extends Model {
public $tbName;
public $pk;
public function __construct() {
$this->tbName = $this->_tabela;
$this->pk = $this->_primary_key;
}
Question
Ricardo T. do Prado
model.class.php
como que faço para passar o valor das variáveis um exemplo seria datagrid.class.phpSó que não passa os valores; Sugestoes?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.