Using JFactory in an 'include' - Joomla! Forum - community, help and support
hello. i've 2 files - application.php , include.php (just dummy names). both these part of structured mvc component. i'm using in include.php set database table field value variable. i'm including include.php in application.php, variable used in application.php. however, not working. because i've tried using mysql_connect (with direct database name, password) in include.php , working fine, suspect reason, jfactory in include.php not being parsed while getting included in application.php.
my question - there way working without using mysql_connect ?
- if choose use mysql_connect, secure enough if afterwards write-protect directory or access-protect file using htaccess ? not directly related joomla, wanted know considering joomla environment.
thanks..
code: select all
$db =& jfactory::getdbo();
my question - there way working without using mysql_connect ?
- if choose use mysql_connect, secure enough if afterwards write-protect directory or access-protect file using htaccess ? not directly related joomla, wanted know considering joomla environment.
thanks..
Comments
Post a Comment