[Hard Code] Add custom field into #__users joomla 1.5 (เพิ่มฟิลด์แบบฮาร์ดโค้ดให้จุมล่า)

Add field that you want to add into your table #__users


then open file from libraries/joomla/database/table/user.php with your editor like Notepad++, Netbeans IDE or etc. and add your field name


after that enjoy to use JFactory::getUser();


DEMO
$user =& JFactory::getUser();
$weather = $user->get('weather');
var_dump($weather);


Enjoy your coding :)

Comments