Przekazuje formularz z kontrolera do zmiennej i wyświetlam go w widoku ale nie ładuje się form_open();
kontroler:
function get_strona_by_nazwa(){ $query = $this->Edit_strony->get_strona(); if ($query->num_rows() > 0) { $this->response['content'] = form_open('site_edit').'<table cellspacing="3" cellpadding="3">';// - tej linijki nie wyświetla foreach($query->result() as $item) { $this->response['content'] = $this->load->view('test', $item, True); // zwraca input radio } $this->response['content'] .= '</table name="dada>'.form_submit('submit', 'edytuj').form_close(); } $this->load->view('index', $this->response); }
widok:
<div id="body" style=" width: 100%; height: 400px; background-color: #fff;"> <center name="jidaj"><?php ?></center> </div>
a tutaj źródło strony:
co może być przyczyną, że nie wyświetla całego formularza?
atrybut name w table i center są dodane tylko po to żeby łatwiej było zlokalizować elementy w źródle strony.