How to return variables in popup ?

This forum is for general questions about extensions for Joomla! version 1.5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
ultrabr
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Sun Aug 30, 2009 3:11 am

How to return variables in popup ?

Post by ultrabr » Sat Feb 12, 2011 3:34 am

Hi !

I am creating a module popup.
But because it returns this error popup ? :(

Fatal error: Call to a member function get () on a non-object

Because the module directly on the page of the site does not return this error ? But the popup returns ?

This error shows when I try to return the variable of the admin module (xml file). If I use this logic to return plain text, everything is OK on the popup:

$name = "John";
$city = "NewYork".

But if I try to return variables of the admin module returns error!

In this format returns an error:

$name = $params->get ('name');
$city = $params->get ('city');

Why?

I need the admin module to manage my variables.

The module is completed, missing only resolve this issue.

Please help me!

How do I return my variables in the popup? Without this error:

Fatal error: Call to a member function get () on a non-object

What line of code should I use the popup to resolve this ? ???

Thank you very Much !

Locked

Return to “Extensions for Joomla! 1.5”