Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 12,950
» Latest member: yasuo16gg
» Forum threads: 68,997
» Forum posts: 429,297

Full Statistics

Latest Threads
CodeIgniter 3.1.10 Releas...
Forum: News & Discussion
1 hour ago
» Replies: 14   » Views: 5,111
File upload validation wi...
Forum: CodeIgniter 4 Support
10 hours ago
» Replies: 0   » Views: 41
How do i redirect user to...
Forum: CodeIgniter 4 Support
Yesterday, 08:36 AM
» Replies: 1   » Views: 112
Why Codeigniter is better...
Forum: Choosing CodeIgniter
Yesterday, 01:39 AM
» Replies: 13   » Views: 3,217
CI tutorial from David Co...
Forum: Lounge
01-22-2019, 07:44 PM
» Replies: 13   » Views: 1,211
Library: "Dates and Times...
Forum: CodeIgniter 4 Support
01-22-2019, 02:14 PM
» Replies: 2   » Views: 178
Codeigniter database conn...
Forum: General Help
01-22-2019, 10:20 AM
» Replies: 2   » Views: 102
How to deal with large up...
Forum: CodeIgniter 4 Support
01-22-2019, 10:19 AM
» Replies: 3   » Views: 160
Top RSA library for php
Forum: General Help
01-22-2019, 10:19 AM
» Replies: 9   » Views: 208
Project Update 2019.01.04
Forum: News & Discussion
01-22-2019, 02:52 AM
» Replies: 15   » Views: 5,415

  appending record instead of replacing field
Posted by: richb201 - 01-19-2019, 11:59 AM - Forum: Libraries & Helpers - Replies (4)

I am trying to update one field of a table.

PHP Code:
       $sql="SELECT * FROM users WHERE email = ?";
       $query $this->db->query($sql,$userid);
       $row $query->row();
       $iRc=$this->db->replace('users',array('campaign'=> $campaign)); 
I am finding that this is appending a new record onto the end of the table rather than replacing the campaign field if the userid matches. This is the table structure. What is the problem?

Attached Files Thumbnail(s)

Smile running chrome.runtime.sendMessage
Posted by: richb201 - 01-19-2019, 06:40 AM - Forum: General Help - Replies (2)

Huh I have a need to run some javascript from my CI app. This is what I need to run:

// The ID of the extension we want to talk to.
var editorExtensionId = "abcdefghijklmnoabcdefhijklmnoabc";

// Make a simple request:
chrome.runtime.sendMessage(editorExtensionId, {openUrlInEditor: url},
 function(response) {
   if (!response.success)
This is basically what I need to send a message from my CI app to my Chrome Extension and came from the Chrome developers forum. I know the Id of my extension. I am not sure what is meant by : {openUrlInEditor: url}, but I assume that is the message I want to send? In my case I probably will send a "jsonized" buffer. 

But how do I get the above code to run when a Grocery crud callback is triggered? 

Posted by: pippuccio76 - 01-19-2019, 05:08 AM - Forum: Libraries & Helpers - Replies (3)

Hi ,sorry for english ,  i see this tutorial to implement multilanguage :


I have some question :

can i call directly on view  ?


or must i create a variabile in controller ?

$data['message_to_show'] = lang('message_to_show') ;
and in view :

<?=$message_to_show) ?>

Another question :

If i create several file for language (in every subfolder of language) , How can i import only the file that i need ?

Last question:

how can i change the form_validation error ?can i do this :


  PayPal Plus (Germany)
Posted by: marwin - 01-18-2019, 10:40 PM - Forum: General Help - No Replies

Has anyone integrated PayPal Plus in their project? I am looking for a sample if possible. I just dont understand how to integrate this for a simple payment page that provides order number and amount due to my customers. I am stuck with the simple standard button for now Wink

  How to best approach adding a new template to an existing CodeIgniter project?
Posted by: billiem - 01-18-2019, 07:23 PM - Forum: Best Practices - No Replies

I am trying to add a new template to an existing CodeIgniter 3.0 project where the original developer had not planned for additional templates/themes.

The primary objectives are to:

a) make a usable copy of all existing views and css files and leave the originals unchanged.
b) allow for core updates as they are released by the original developer that do no overwrite my changes.

My question is: To meet the previous objectives and to avoid having to manually update everywhere the developer originally referenced a view file/directory...

Should I use a CodeIgniter hook?
Should I make changes to CodeIgniter configuration files?

Project: CodeIgniter 3.0

Existing directory structure:

├── application
|   └── views
|     └── back
|       └── index.php
|     └── front
|       └── index.php
├── template
|   └── back
|     └── style.css
|   └── front
|     └── style.css
Proposed directory structure:
├── application
|   └── views
|     ├── back
|     ├── front
|     └── *new_template_view
|       ├── *copy_of_back
|       └── *copy_of_front
├── template
|   └── back
|   ├── front
|   └── *new_template_css
|     ├── *copy_of_back
|     └── *copy_of_front

  Output encryption library
Posted by: omid_student - 01-18-2019, 02:33 PM - Forum: General Help - No Replies

I use below code for encryption in my app

PHP Code:
$this->encryption->initialize(array('cipher' => 'aes-256','mode' => 'cbc','key' => 'abcdefgh01234567abcdefgh01234567'));

What is encrypt result type?(base64 or hex or other)

Because when i try to decrypt it in android or ios,have an error

Posted by: pippuccio76 - 01-18-2019, 02:05 PM - Forum: Best Practices - Replies (2)

Hi ,sorry for english ,  i see this tutorial to implement multilanguage :


My answer is , must i create a single file for every language or multiple file ?

If i create multiple file how can i switch ?

  (HY000/1040): Too many connections
Posted by: kvanaraj - 01-18-2019, 03:59 AM - Forum: General Help - Replies (3)

A PHP Error was encountered
Severity: Warning
Message: mysqli::real_connect(): (HY000/1040): Too many connections
Filename: mysqli/mysqli_driver.php

File: /var/www/html/*******/application/controllers/User.php

Line: 19
Function: __construct

Posted by: Myster - 01-17-2019, 01:38 PM - Forum: Addins - Replies (4)

Good evening,

I have another problem I use HMVC for my project CodeIgniter, however my modules allow to have menu for example "The last articles" how can I display these menus on all the pages of my site? I specify that each module can have its own menu, in my controller I have a function public function menu () which allows to create a menu for the module, but I want this menu to appear on all pages of my site , how can I do that?

Thank you

  Potential interruptions Jan 18-20
Posted by: jlp - 01-17-2019, 01:24 PM - Forum: Events - Replies (1)

The institute's electrical systems are being worked on this weekend, and there could be interruptions in the availability of our website and forum.

Affected time slots: Fri Jan 18, 23:30PST through Sat Jan 19, 07:30PST; and Sat Jan 19, 23:30PST through Sun Jan 20, 23:00PST.

Thank you for your patience and understanding Smile

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.