Integrate with joomla 3 auth. system |
Now I can copy some lines of code from joomla's index.php file and pase then into codeigniter's index.php and get logined joomla user info:
CI3's index.php file : PHP Code: ... and in any index function of default welcome.php controller : PHP Code: ... i wondered how it add extra resource usage to normal ci application? i activated ci's profiler and here is some memory usage in different cases: Just unchanged CI3 welcome page : ~269,000 bytes Just copied require_once JPATH_BASE . '/includes/framework.php' line into CI's index.php file: ~330,000 bytes Copies required include file and some lines of code for retrieve user's id and groups (above second code block): ~761,000 bytes now is it good choice to use this method (checking joomla user) in every page/controller/function? (my application need to check user's access almost in every action) in real web application/or website, this solution can make issues?
ressan.ir
CI is nice |
Messages In This Thread |
Integrate with joomla 3 auth. system - by nasser.man - 08-08-2015, 10:50 AM
RE: Integrate with joomla 3 auth. system - by nasser.man - 08-09-2015, 03:41 AM
RE: Integrate with joomla 3 auth. system - by nasser.man - 08-09-2015, 10:59 AM
RE: Integrate with joomla 3 auth. system - by nasser.man - 12-22-2015, 12:39 AM
|