CreateTextArea in update script?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
jmansa
Forum Members
Forum Members
Posts: 126
Joined: Thu Oct 19, 2006 2:46 pm

CreateTextArea in update script?

Post 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?
Post Reply

Return to “Developers Discussion”