[eluser]weblizzer[/eluser]
I'm using codeiginter ver. 1.8.7 and use Doctrine plugin for ORM. Though I made try on the localhost and it works okay but when I put it on the hosting that how it shows. Is it maybe on the hosting or so?
Here is the code:
Code:
function edit_pagecontents($id){
if (isset($this->admin)) {
if ($this->input->server('REQUEST_METHOD') == "POST"){
if($content = Doctrine::getTable('PageContents')->findOneById($id)){
$pcontent = $this->input->post('page_content');
$content->page_title = $this->input->post('page_title');
$content->page_content = $pcontent;
$content->last_edit = date('Y-m-d H:i:s');
$content->save();
echo "[removed]parent.$.fancybox.close();[removed]";
}
}
$config['page'] = Doctrine::getTable('PageContents')->findOneById($id);
$this->load->view('admin/edit_page_content.php', $config);
}
}