[TYPO3-UG Cambodia] How to call a function in other class which return the form?

LAY Phalla phalla at web-essentials.asia
Tue Jan 18 03:02:11 CET 2011


Hi Chanratha,

To return a form it needs array marker for the function,
So you have to find the array marker for the form.

Cheers,
Phalla

On 12/26/2010 12:38 PM, Visay Keo wrote:
> Hi Chanratha,
>
> Maybe it's easier if you can show us the code of the "user_registration"
> function.
>
> Cheers,
> Visay
>
> On 12/24/2010 09:45 AM, Chanratha LY wrote:
>> Dear Typo3Cambodia Members,
>>
>> I have met one problem and would like to ask all of you.
>>
>> I have two classes, A& B.
>> Class A has a function "user_registration" which returns the registration
>> form.
>>
>> In B, I would like to call function "user_registration" from class A. It
>> work well if function "user_registration" returns value.
>> *Problem:*
>> It does not work for if function "user_registration" return the form. The
>> message is: *Fatal error**: Call to a member function typoLink() on a
>> non-object in **
>> /home/public_html/first_test/typo3/sysext/cms/tslib/class.tslib_pibase.php**on
>>
>> line
>> **309.*
>>
>> Thanks,
>> Chanratha



More information about the TYPO3-UG-Cambodia mailing list