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

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 Article


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


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

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

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


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

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

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


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

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

Image may be NSFW.
Clik here to view.

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

How to migrate from CI3. X to CI4

Hi, How to migrate from CI3. X to CI4 Thank you for your help Regards

View Article


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

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


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

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


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

Image may be NSFW.
Clik here to view.

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

Planned 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
Browsing all 14114 articles
Browse latest View live


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