Can I run mysql query in constant.php file to make constant dynamic
question could be funky, can I run mysql query into application/config/constant.php file to make constant dynamic or any proper way to make constant dynamic based on value coming from db.
View ArticleLog file styling lib
Hi all, I'm seeking a library that provide the CI log files in a view that is styled nicely. Eg ERROR levels log items are red, Debug is blue etc. Anyone know of such a project kicking around? Many thanks
View ArticleWhat is the smtp server Codeigniter uses?
I don't have a smtp server on my machine, but Codeigniter allows me to send emails, how is that possible? Does Codeigniter comes with an smtp server?
View ArticleHow to using sweet alert in codeigniter
I want to make validation form login user when form validation error show error form controller to view codeigniter ? anyone can help me
View ArticleChanging my hosts file is not working
I'm trying to redirect bing.com to google.com, so when I enter bing.com on my browser address I should be redirected to google.com instead but it's just not working... I opened the hosts file using...
View ArticleJson Handling in ViewCI
hey everyone .. I am a nwebiew to CI and a fresher too neeed your help , I have a wordpress blog from where i have fetch posts through JSON and tat JSON data i want to view in CI VIEW i am sharing...
View ArticleHow to use Forge Class to create a database schema?
I'm using CodeIgniter 3.1.0 to develop an app. In order to improve installation, I've written an Install_Controller, and an Install_Model. I want to use Database Forge class to manage the database...
View ArticleShould I hash / encrypt user id for when set in session
I would like to know when I set user id in session when the user logins in If it is a good idea to encrypt user id and then decrypt it in a model Just for added security.
View ArticleForge Class bug in numeric field name
If you set a field name in table that is a numeric value, because array_merge in DB_forge.php function add_field, this numeric names are transformed into array index, making wrong result. Code: $fields...
View Article[SOLVED] SQL update using OUTPUT clause
I'm trying to use the OUTPUT clause here https://msdn.microsoft.com/en-us/library/ms177564.aspx What I'm doing is updating a column that contains a key for a record. So say the key is 10. I need to...
View ArticleCreating multilanguage site
Hi! I'm familiar with lang helper and lang library, but I was wondering if there is a better way to do this. I don't really like the fact, that my views are a bunch of html code containing nothing but...
View ArticleForm Validation Help
Sorry if this isn't the correct section to post. I took over the management of a site that uses codeigniter, and the previous account registration page gave the following format for errors when filling...
View ArticleHow to migrate from CI3. X to CI4
Hi, How to migrate from CI3. X to CI4 Thank you for your help Regards
View ArticleAdding Dynamic Data To Views
When I add my data the first $data array gets block by second data array And I am unable to view the data in the first array Any idea's whats causing it and how to solve it. Code: public function...
View Articledb->insert error
PHP Code: for($i = 0; $i < 1000000;$i++){ $uid = uniqid('rsv', true); $this->db->set('uid',$uid); $this->db->set('data','toto' . $i);...
View ArticleIon_auth remember me IE 11
I've come accross a very strange behaviour of IE 11 together with the fabulous Ion_auth library. On my login pages (on 4 different websites) I have a "Remember me" checkbox. I leave it unchecked. On...
View ArticleCrashkurs CodeIgniter! (deutsch)
Hallo zusammen, ich suche jemanden mit Erfahrung in CodeIgniter der mir die ersten Schritte erklären und beibringen kann. Das ganze stelle ich mir online, über Skype oder ähnlich, vor. Du erklärst...
View ArticleInstalled class via composer, need help using.
I installed https://github.com/phpWhois/phpWhois through composer and turned on the autoload feature, but I can't figure out usage based on the documentation. It is installed in the app/vendor/phpwhois...
View ArticleLuthier - Updated (Alpha)
Hi folks Recently I've started a personal project called Luthier. It's still an Alpha version, but now it's available with Composer so you can try it out What is Luthier? Luthier is a set of classes...
View ArticlePlanned Server Downtime Jan 21, 2017
Our forum and website (codeigniter.com) may be offline between 18:00 PST Sat Jan 21st and 08:00 PST Sun Jan 22nd (02:00-16:00 UTC Sunday Jan 22nd). BCIT's data centre, where we are hosted, has...
View Article