For CI 3.1.6: Seeking very simple login system, no DB, good example code
For CI 3.1.6: Seeking very simple login system, no DB, good example code I'm converting a legacy site to CI... It has an old, creaky, unreliable generic php login system, with "remember me". Which I'd...
View ArticleCI 3 Mail.php issue
Hello. I have a problem with CI 3 /system/library/Mail.php library. I have upgraded from 2.2.6 to 3.0.2 and i cant send email without issues. With default smtp_timeout = 5, i get error in...
View Article500 Internal Server Error after changing gmail password
I am getting this error after changed my email password of website contact form.: "Failed to load resource: the server responded with a status of 500 (Internal Server Error)" It was working before, but...
View Articleswitching databases
Hi all, I am trying to use / change the database for different organizations / users. In master database, I have db_name for different organizations, I am using the following code to store the db_name...
View ArticleMultiple form_open with button
Hello, I have several buttons which should make different things. To one, a button should make one entry in table 1 and another in table 2. But if I do it as in the code below. He always makes an entry...
View ArticleError 404
Hi, I try codeigniter 4 offline with XAMPP. The tutorial with static page is ok. I see home.php and about.php correctly. The Tutorial "News section" display error 404 when I go...
View ArticleEnter Dollar Amounts Into Database
Hi, When I insert lets say 50.00 into my database on the database it displays it like 50.0000 What is the best way to configure the column so if I put $50.00 it will stay that way or even if enter a...
View ArticleUnable to load dynamic library
Hello, sporadically I get this error from Codeigniter: Unable to load dynamic library '/usr/lib/php/20151012/php_openssl.dll' (also ../php_soap.dll appeared). There is no php code related to ssl or...
View Article"Remember me" option for users
Hello, For my application i'm going to implement a "remember me" option so they don't have to login on each visit if the page/browser closes. I believe with sessions if the browser is closed the...
View ArticleWhat 10 million passwords reveal about the people who choose them.
Unmasked: What 10 million passwords reveal about the people who choose them. Download the White Paper
View ArticleRedis session regression in 3.1.6
The fix in this PR has caused some weird issues for us: https://github.com/bcit-ci/CodeIgniter/pull/5170 The session library is autoloaded and we're using the Redis session driver. With that patch we...
View Articleuse PHPUnit directly with CI-PHPUnit
Let me preface that I am new to PHPUnit. Is there a way to use CI 3.1.6 directly with PHPUnit? I have looked at CI-PHPUnit but I want to be able to run, from the command line: Code: $ phpunit $ php...
View ArticleScheduled CI jobs on MS Azure
Hi all Just thought that I'd share my learnings in case there's anyone else looking to do the same thing as I was: run scheduled jobs on a CI site hosted on MS Azure (for db tidying, archiving, any...
View ArticleWrite a good library
Hello, I work with CodeIgniter since 1 year and after little projects, I want to work on a big project. Of course I choose CodeIgniter for this project because I think it's a very good and powerful...
View ArticleIntervension Image Library
Hi... I want to use Intervention Image Library in my project, could anyone help? How to use it? (load and initialize it) thanks.
View ArticleGetting real IP behind a Proxy
My site is behind the cloudproxy firewall from Securi.net Using $ip = $this->input->ip_address() does not give me the real IP of visitors or myself. I know that using that code is supposed to...
View ArticleUnable to locate the specified class: Session.php
I have created a hook Code: $hook['pre_controller'] = array( 'class' => 'AdminAuthorization', 'function' => 'isAuthorize', 'filename' => 'AdminAuthorization.php',...
View ArticleHow to pass a param when using a model method as callable using form...
This code Code: $this->form_validation->set_rules( 'username', 'Username', array( 'required', array('username_callable',...
View ArticleCAS Authentication in CI3
Hello, I need a CAS (https://en.wikipedia.org/wiki/Central_Au...on_Service) authentication library for CI3. In CI2 we successfully use the phpCAS and this library:...
View Articlelog_threshold or ENVIRONMENT
What is the difference between index.php ENVIRONMENT and $config['log_threshold'] = 2; in config.php? Is it best practice to put this in config.php? PHP Code:...
View Article