Page 1 of 1

CreateTextArea in update script?

Posted: Mon Oct 22, 2007 5:26 pm
by jmansa
I'm creating a module for handeling different soccerclubs info, but I'm running into a problem. I'm making a update script in wich I have an textarea, but how do I get the record from the database into the textarea...
I have tryid this without any luck:

Code: Select all

$this->smarty->assign('input_restrictions_en', $this->CreateTextArea($id, 'input_restrictions_en', $row['restrictions_en']));
But I get this error:

Warning: Missing argument 4 for CMSModule::CreateTextArea(), called in C:\xampp\htdocs\sites\mypage.com\modules\ClubManager\action.editinfo.php on line 155 and defined in C:\xampp\htdocs\sites\mypage.com\lib\classes\class.module.inc.php on line 1841

When doing so with a inputtext there is no problem!
$this->smarty->assign ('input_booking_homepage', $this->CreateInputText ($id, 'input_booking_homepage', $row['booking_homepage'], 25, 50));
What am I doing wrong?