Hi
I just need a very simple code for my controllers. This is what I need:
select email from table where userid = $userid.
How can I put this in code? I only need to draw the email from a table.
I have the following function
class BANNERS14_CTRL_Banner14 extends OW_ActionController
{
public function index()
{
$this->setPageTitle(OW::getLanguage()->text('banners14', 'index_page_title'));
$this->setPageHeading(OW::getLanguage()->text('banners14', 'index_page_heading'));
$userId = OW::getUser()->getId();
$this->assign('list', $list);
}
private function text( $prefix, $key, array $vars = null )
{
return OW::getLanguage()->text($prefix, $key, $vars);
}
}