Login to client account programatically
Hi, I have an app which has a master account/database running on "example.com", with client accounts/databases using subdomains, e.g. "test.example.com". I am trying to add a function in the master...
View ArticleCodeigniter Unable to join the table properly
Hi I have 4 Tables. 1. t_category Id category parent_category status +------+----------------------+-----------------+-----------+ | 1 | Ayurvadic | 0...
View ArticleError 500
We have an security tester, and he found a scenario where an 500 Error coming. Any Idea how i can catch this? With Burp Suite Repeater: POST /appname/1' OR '1'='1/ HTTP/1.1 . . . Get following Page...
View ArticleSuggested Migration strategy
Hi, I updated CI4 Database/MigrationRunner.php to fix all issues and add support migrations per module. The idea is to make the migration class supporting migration per module so that each module...
View Articlecomposer
Is it just me or am I the only one not using it? I really hate it. Thoughts...
View ArticleCI login error
Salam semuanya... ada yang tau nggak kenapa pas saya login ke aplikasi, aplikasi secara otomatis langsung redirect ke tampilan login lagi padahal nggak saya set ke tampilan login setelah berhasil...
View Article[Solved] Adding OR / || to if statement
I want to be able to do two checks on my MY_Controller.php Can check if my session token is set like PHP Code: if (!in_array($route, $ignore) && !$this->session->userdata('token')) {...
View ArticleLanguage helper
Hi guys, So you want your app to have a language translation option maybe of the first three popular languages. Now this is one of those things that is last on my list but I was wondering what other...
View ArticleNot updating db column correct when session expired
On my Auth library I need it to update my active column on my dataabase when session expire. Currently if session expired and refreshes page it triggers my $this->auth->logout() function But does...
View Articleuser authorization outside of CI
Hi, I am using CI 2.x, I want to use this: https://github.com/moemoe89/codeigniter-...ilemanager plugin. In instruction it did provide authentication method for CI 2.x. I googled it but I couldno...
View ArticleProblem with returned from the database in class
Hello. CodeIgniter 3.1.3 problem in the following class User_lib { protected $customer_id; protected $email; protected $firstname; protected $date_added; } model public function get_customer() {...
View ArticleSimple sub-directory pages
Hello, As I am a beginer with CI, I am having a issue by defining sub pages which are in the sub folders. What I want : Directory should be like : application/views/pages/hosting/hosting-about.php I am...
View ArticleCommunity Auth: Can't login
I have installed Community Auth, created the example user by calling /index.php/examples/create_user. I verified the user exists in the database. However, when I try to log in, I enter the login...
View ArticleSetting a session by id
I'm using a very old version of CI (2.0.2) and I'm having a problem where if I have multiple sessions in the ci_sessions table, on a redirect back to my site, it's grabbing the first session it sees...
View ArticleAdding REST API for our site
We are a code igniter 3.2 site and are looking to build a mobile app. I have looked at the restserver framework on top of code igniter - https://github.com/chriskacerguis/codeig...restserver What's not...
View ArticleREST Server error (unable to locate class session.php)
I setup the RestServer from https://github.com/chriskacerguis/codeig...restserver Trying to run the api example on my server. Using CI 3.0 Copied the example.php to the directory...
View ArticleDifference between CI 2 and Ci3 ? (Newbie learning from old books)
Iam a newbie in Codeigniter. Does CI 2 and CI 3 have "breaking" differences like laravel 4 and laravel 5.( method names , folder structure) iam about to start learning CI 3 i dont have books based on...
View ArticleCI SESSION
Hello, I am unable too store utf-8 indian language text in session varaible. Session will work only if it is 160 characters, but after if it exceeds session is crashed and my code doesn't work. Can you...
View ArticleRootes bug?
I have blank app from distribution I add the second route to Config/Routes.php $routes->add('/', 'Home::index'); // from distrib $routes->add('/test', 'Home::index'); // addition I get 200 OK...
View ArticleIs my online function OK or does it need improvment?
I would like to know if my code is suitable for checking if user is online seems to work. When user not online it gets the users time stamp from database by accessing id on profile url....
View Article