Skip navigation

Category Archives: php

Edit: Facebook already Fixed this

(sorry for my english)

i didn’t find exact solution for this bug, someone say clear cache or update your chrome. but it didn’t work for me. then i try to remove this code,

FB.Event.subscribe(‘auth.login’, function() {
window.location.reload();
});

it works !! .

i don’t find this auth.login is usefull, coz there iz this code¬† for auto refresh wher user login.

FB.login(function(response) {
if(response.session)
{
window.location.reload();
}
},{perms:’email,user_birthday,user_hometown,user_location’});

and there is other bug, not about chrome and not really a bug though.¬† it’s depend on your facebook code structure. it is i can’t log out properly. because i use offline_access permission that make php think user is logged in event user not logged in facebook.

then i just remove offline_access permission.

Advertisements

Code Igniter AutoCompletion with PHP

today i try to search again IDE for CI. and found code auto completion with netbeans. its nicely working..
i get it from the CI forum,

first, add system folder to global include in tool->options->php, then just add this in your controller, and you are ready to go with $this->db auto completion

/**
* @property CI_Loader $load
* @property CI_Form_validation $form_validation
* @property CI_Input $input
* @property CI_Email $email
* @property CI_DB_active_record $db
* @property CI_DB_forge $dbforge
*/

for another ease of use, you can use code template , from tool->options->editor

that’s all.