Возможно ли это, если я добавлю свой form_helper с параметром массива в шаблон smarty.
это мой метод моего контроллера:
function input($pIntBookId = 0) {
$this->load->model('m_books');
if($this->input->post('mysubmit')){
if($this->input->post('id')){
$this->m_books->entryUpdate();
}else{
$this->m_books->entryInsert();
}
}
$arrData = $this->m_books->general();
if((int)$pIntBookId>0){
$strQuery = $this->m_books->getId($pIntBookId);
$arrData['idxFid']['value'] = $strQuery['book_id'];
$arrData['idxFtitle']['value'] = $strQuery['book_nm'];
$arrData['idxFauthor']['value'] = $strQuery['book_aut'];
$arrData['idxFpublisher']['value'] = $strQuery['book_pub'];
$arrData['idxFyear']['value'] = $strQuery['book_year'];
if($strQuery['book_st']=='yes'){
$arrData['idxFavailable']['checked'] = true;
}else{
$arrData['idxFavailable']['checked'] = false;
}
$arrData['idxFsummary']['value'] = $strQuery['book_ds'];
}
$this->mysmarty->assign('arrData',$arrData);
$this->mysmarty->view('v_booksinput.php');
}
Возможно ли это? .. :
<td>{php} echo form_input($idxFtitle);{/php}</td>