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



Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,192
» Latest member: vjci
» Forum threads: 66,447
» Forum posts: 417,006

Full Statistics

Latest Threads
Server config causing CSR...
Forum: General Help
1 hour ago
» Replies: 2   » Views: 39
routing to IIS though I a...
Forum: Installation & Setup
3 hours ago
» Replies: 0   » Views: 9
dynamic input field valid...
Forum: CodeIgniter 3.x
4 hours ago
» Replies: 0   » Views: 26
Errors In Code
Forum: CodeIgniter 4 Support
9 hours ago
» Replies: 7   » Views: 196
Version/System update not...
Forum: General Help
Yesterday, 10:14 AM
» Replies: 3   » Views: 194
Multilingual site
Forum: Lounge
Yesterday, 09:36 AM
» Replies: 3   » Views: 185
encryption_key in CI 3.x
Forum: Installation & Setup
Yesterday, 08:12 AM
» Replies: 3   » Views: 204
oops in codeigniter
Forum: Choosing CodeIgniter
Yesterday, 06:02 AM
» Replies: 1   » Views: 187
Switch button active/inac...
Forum: General Help
Yesterday, 03:38 AM
» Replies: 3   » Views: 146
[Solved] Files-Sessions s...
Forum: General Help
Yesterday, 02:20 AM
» Replies: 2   » Views: 74

  num_rows() problem
Posted by: farhadhp - 08-15-2017, 06:52 AM - Forum: Issues - Replies (1)


my user model is:

PHP Code:
class User extends CI_Model{

__construct() {
$this->tableName 'aauth_users';
$this->primaryKey '*';

    public function 
checkUser($data = []){
'oauth_uid'      => $data['oauth_uid']
$prevQuery $this->db->get();

but checkUser() always return 0 !

  How to create and print shipment label using codeigniter
Posted by: sophia - 08-15-2017, 03:46 AM - Forum: General Help - Replies (1)

Hi, would like to enquire how to create and print shipment label from own website using rest api. Have change the code
below based on     https://docs.postmen.com/dhl-global-mail-asia.html?sdk=php#labels-create-a-label. Please advise. Thanks.

        $url = 'https://sandbox.api.com/v3/labels';
        $method = 'POST';
        $headers = array(
            "content-type: application/json",
            "api-key: secretkey"
        $body = '{"labelreq":{
        $curl = curl_init();
        curl_setopt_array($curl, array(
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_URL => $url,
            CURLOPT_CUSTOMREQUEST => $method,
            CURLOPT_HTTPHEADER => $headers,
            CURLOPT_POSTFIELDS => $body
        $response = curl_exec($curl);
        $err = curl_error($curl);
        if ($err) {
            echo "cURL Error #:" . $err;
        } else {
            echo $response;


        $url = 'https://sandbox.api.com/v3/labels/accesstokenkey';
        $method = 'GET';
        $headers = array(
            "content-type: application/json",
            "api-key: secretkey"
        $curl = curl_init();
        curl_setopt_array($curl, array(
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_URL => $url,
            CURLOPT_CUSTOMREQUEST => $method,
            CURLOPT_HTTPHEADER => $headers,
        $response = curl_exec($curl);
        $err = curl_error($curl);
        if ($err) {
            echo "cURL Error #:" . $err;
        } else {
            echo $response;

  Web hosting Question with Codeigniter
Posted by: wolfgang1983 - 08-15-2017, 03:19 AM - Forum: Lounge - Replies (3)

I am going to finish my website off in the next couple of weeks I would like to know if any one has had any issues using one of these websites with codeigniter

godaddy or a2hosting

I have see on stack overflow some ht access issues with godaddy just not sure which one to pick.

You thoughts.

Thanks for your time.

  Reading large Excel files
Posted by: Wouter60 - 08-14-2017, 01:01 PM - Forum: Libraries & Helpers - Replies (8)

I need to import a relatively large .xlsx file (40,000 rows, 15 columns) into my database.
I tried the PHPExcel library, but it gives a memory error.
I've found a library that should be able to read a big file row by row: Spout.

I created a folder named "spout" in application/third_party.
In that folder, the directory structure of Spout looks like this:

In the application/libraries folder, I created a file named Spout.php, with this contents:

PHP Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
APPPATH '/third_party/spout/Autoloader/autoload.php';
   public function __construct() { 

In my Import.php controller, I have this:
PHP Code:
$reader ReaderFactory::create(Type::XLSX); // for XLSX files 

But CI gives an error:
A PHP Error was encountered
Severity: Error
Message: Class 'ReaderFactory' not found
Filename: controllers/Import.php
Line Number: 346

I'm making some fundamental mistake, I guess. Who can help me to get this working?

  how to remove malware in code igniter
Posted by: biju - 08-14-2017, 10:57 AM - Forum: Issues - Replies (2)

how to remove malware in code igniter

  My almost ci site hack
Posted by: Marku - 08-14-2017, 09:54 AM - Forum: Issues - Replies (13)

How my almost ci site more than 80 website are hacked in a single day. Notonly the old version of ci new version is also hacked from same persion. I don't know the keyroot from which file it is hacked

  Web Page Caching
Posted by: bishal - 08-14-2017, 01:48 AM - Forum: General Help - Replies (2)

Hello Everyone.
                    I'm trying to cache the html output, I tried this as mentioned in CI document by keeping the code '$this->output->cache(100);' on controller. This do created the cache file under application/cache directory with random file name as expected but now I need this file to be deleted whenever I alter the database i.e (insert, update, delete). 
                   How can I achieve this. I manually tried to delete the file by writing this code ($this->output->delete_cache()), as mentioned in document this should delete the cache file for the currently requested url but this didn't work. I created the cache file on default controller.

  [HELP NEEDED] Postgres debugging
Posted by: kilishan - 08-13-2017, 11:03 PM - Forum: CodeIgniter 4 Development - No Replies

Hey gang, I need your help. If you look on Travis you'll see that the PostgreSQL runs are failing. I would love to get this fixed, but I cannot get the tests to fail locally running Postgre 9.6.

Can anyone else run the tests with Postgres and get the same test to fail. It's about saving and restoring entities, and seemed to change at the same time as this update.

Any pointers on where it's failing, or if it's a specific version of Postgre, or anything would be helpful.


  Shipping rates not displayed when using api
Posted by: sophia - 08-13-2017, 08:45 PM - Forum: General Help - Replies (3)

Hi, would like to enquire on the possible cause of why when customers from another website for example wants to see shipping rates from our website using api, it doesn't display the shipping rates? Thanks.

  creating robots.txt
Posted by: Priykant.chavda - 08-13-2017, 11:18 AM - Forum: General Help - Replies (3)

Hello all. 

I'm Newbie in CI. I don't know how to create robots.txt 

 should I block controllers or views so that any bot can not index sensitive page..  Like should I use application/controllers/admin to block access to admin controller..
Please help.

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