Quantcast
Channel: CodeIgniter Forums - All Forums
Browsing all 14348 articles
Browse latest View live

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 Article


Image may be NSFW.
Clik here to view.

Codeigniter Unable to join the table properly

Hi I have 4 Tables. 1. t_category   Id         category        parent_category     status +------+----------------------+-----------------+-----------+ |   1    | Ayurvadic              |         0...

View Article


Error 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 Article

Image may be NSFW.
Clik here to view.

Suggested 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 Article

composer

Is it just me or am I the only one not using it? I really hate it. Thoughts...

View Article


Image may be NSFW.
Clik here to view.

CI 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 Article

Language 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 Article


Image may be NSFW.
Clik here to view.

Not 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 Article


user 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 Article

Problem 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 Article

Simple 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 Article

Community 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 Article


Setting 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 Article

Adding 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 Article


REST 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 Article

Difference 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 Article


CI 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 Article

Image may be NSFW.
Clik here to view.

Rootes 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 Article

Image may be NSFW.
Clik here to view.

Is 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
Browsing all 14348 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>