Search found 4 matches

by GMassi
Thu Mar 13, 2008 9:10 pm
Forum: Joombie Coding Q/A
Topic: no mysql_insert_id() after $this->db->setQuery( "INSERT
Replies: 3
Views: 2587

Re: no mysql_insert_id() after $this->db->setQuery( "INSERT

Judging by the code you have posted you are not executing the query. Try

Code: Select all

$this->db->setQuery( "INSERT INTO #__pi......
$this->db->query(); 
Then mysql_insert_id() should work.
by GMassi
Wed Mar 05, 2008 12:15 pm
Forum: Joombie Coding Q/A
Topic: New module to call username when in session
Replies: 3
Views: 794

Re: New module to call username when in session

-> is used to access an object variable or call an object method. Check out PHP official documentation.
Classes and objects
by GMassi
Tue Mar 04, 2008 12:19 am
Forum: Joombie Coding Q/A
Topic: New module to call username when in session
Replies: 3
Views: 794

Re: New module to call username when in session

Hi,

JApplicationHelper::getClientInfo() doesn't seem the right function for what you want to do. Try

Code: Select all

class hola {
function nombre() {
$user =& JFactory::getUser();
return $user->get('username');
}
}
by GMassi
Fri Aug 31, 2007 8:25 pm
Forum: Joombie Coding Q/A
Topic: what is ?
Replies: 17
Views: 6124

Re: what is ?

Look almost at the end of main Joomla index.php file // loads template file if ( !file_exists( $mosConfig_absolute_path .'/templates/'. $cur_template .'/index.php' ) ) { echo _TEMPLATE_WARN . $cur_template; } else { require_once( $mosConfig_absolute_path .'/templates/'. $cur_template .'/index.php' )...