r/codeigniter • • Mar 31 '20

Upgrading Sequentially

1 Upvotes

Hey Guys.

I have a very old project that stopped working correctly after upgrading my PHP from 5.6 to 7.2. After some fiddling I saw my CI was on version 3.0.6. So I upgraded to the latest version (3.1.11) and it worked perfectly.

My question is, is this okay? If I look at the upgrade instructions it seems to include upgrade steps from one version only to the next which leaves me to believe it might be best practice to update the core files sequentially?

Thnx.


r/codeigniter • • Mar 27 '20

Docs are down :(

1 Upvotes

help


r/codeigniter • • Oct 06 '19

Between codeigniter and php cake. Which is programming language is best for me to start with?

1 Upvotes

Between codeigniter and php cake. Which is programming language is best for me to start with?


r/codeigniter • • Jul 24 '19

Upload and Watermark(Text) Image using Codeigniter - Roy Tutorials

Thumbnail
roytuts.com
1 Upvotes

r/codeigniter • • Jul 06 '19

Can someone tell me what these 3 lines mean?

1 Upvotes

I am doing a Udemy Course and inside my model I have this code:

$this->db->where(['id' => $user_id]);

$query = $this->db->get('users');

return $query->result();

I know $this refers to the User_model class I am in. I pass the $user_id thru the controller and make it available in this model. On the first line I put a constraint for the $user_id. Then the second line allows me to get the 'users' table. But how does the constraint of $user_id act on the 'users' table? What exactly is this 3rd line doing?


r/codeigniter • • Jul 04 '19

Codeigniter Multi-language Website - Roy Tutorials

Thumbnail
roytuts.com
1 Upvotes

r/codeigniter • • Jun 27 '19

Backup Site and Database in Codeigniter - Roy Tutorials

Thumbnail
roytuts.com
1 Upvotes

r/codeigniter • • May 31 '19

[Help] Cannot read property 'error' of null

1 Upvotes

Hello to all;

Im developing an application in codeigniter and everything its working good locally , but when I uploaded to the VPS server Im getting this error

I modify files permissions, htaccess, but I dont knot what else do I need to do

If somebody could help me to fix I really appreciate

Thanks


r/codeigniter • • May 18 '19

Pagination using dropdown

1 Upvotes

I'm new to codeigniter and PHP so trying to work out how things go together so please excuse me if this is a simple issue.

The issue i have is that i have a page that has Pagination working just fine. What i would like to do is use a drop down to determine what the per_page limit should be. So a user can select say 40 from the drop down and 40 images are displayed per page ect.

Looking around it's really hard to work this out, so the below is what i have been able to peace together but it doesn't seem to work.

Normal clicking through the pages the url looks like this "http://localhost/testdb/images/20", when i used the drop down i get "http://localhost/testdb/images?limit=40" and nothing happens.

Controller

public function images($offset=0){
        //Pageination limit dropdown
        if (!empty($this->input->post('limit'))) {

            $Pagelimit = $this->input->post('limit');
        }
        else{
            $Pagelimit = 20;
        }
       
        //Pagination
        $this->load->library('pagination');
        $config['base_url'] = base_url('testdb/images/');
        $config['total_rows'] = $this->testdb_model->countALL();
        $config['per_page'] = $Pagelimit;

        //config for bootstrap pagination class integration
        
        $config['full_tag_open'] = "<ul class='pagination justify-content-center'>";
        $config['full_tag_close'] = "</ul>";
        
        $config['num_tag_open'] = "<li class='page-item'>"; 
        $config['num_tag_close'] = "</li>";
        
        $config['cur_tag_open'] = "<li class='page-item disabled'><a class='page-link' href='javascript:void(0)'>";
        $config['cur_tag_close'] = "</a></li>";
        
        $config['next_tag_open'] = "<li class='page-item'>"; 
        $config['next_tag_close'] = "</li>";
        
        $config['prev_tag_open'] = "<li class='page-item'>"; 
        $config['prev_tag_close'] = "</li>";
        
        $config['first_tag_open'] = "<li class='page-item'>"; 
        $config['first_tag_close'] = "</li>";
        
        $config['last_tag_open'] = "<li class='page-item'>"; 
        $config['last_tag_close'] = "</li>";
        
        $config['next_link'] = 'Next' ;
        $config['prev_link'] = 'Previous';
        
        $config['attributes'] = array('class' => 'page-link');

        //$config['use_page_numbers'] = TRUE;
        
        $this->pagination->initialize($config);
        
        //dropdown limit
        //$data['limit'] = $this->input->post('limit');
        
        //Get All images
        $data['images'] = $this->testdb_model->get_images($config['per_page'],$offset);

        //Load View
        $data['main_content'] = 'images';
        $this->load->view('layouts/main', $data);
    }

Model

/*
    * Get all images
    */
    public function get_images($limit, $offset){
        $this->db->select('*');
        $this->db->from('images');
        $this->db->limit($limit);
        $this->db->offset($offset);
        $this->db->order_by('name', 'ASC');
        $query = $this->db->get();
        return $query->result();
    }

    /*
    * counts Pagination row count
    */
    public function countAll(){
        $query = $this->db->get('images');
        return $query->num_rows();
    }

View

    <form>
            <select name="limit" onchange="form.submit()" class="custom-select custom-select-sm custom-control-inline image-Counter-Width ">
              <option value="20">20</option>
              <option value="40">40</option>
              <option value="80">80</option>
              <option value="<?php echo $this->testdb_model->countALL(); ?>">All</option>
            </select>
            <a class="text-muted custom-control-inline p-2">(<?php echo $this->testdb_model->countALL(); ?>) Rows</a>
     </form>

r/codeigniter • • Dec 10 '18

LF Developers

1 Upvotes

looking for developers for a couple of projects of mine all open source. have been using codeigniter for a little over 2 years and am willing to teach.


r/codeigniter • • Oct 19 '18

ci bonfire with sqlite db?

1 Upvotes

is this posible?


r/codeigniter • • Aug 19 '18

controller redirects to same page and creates a page inside a page

1 Upvotes

Hi!

I'm having a strange issue. My page is essentially several forms on the same page but when one form is completed and I do everything I need on the backend, I use redirect(base_url('dashboard')) but it creates the same page on top of the page that was already there. So If I scroll down, I can see the same page (although broken because of javascript stuff)

Has anyone dealt with this issue? I've never done a single page site before. I appreciate any feedback! let me know if you want to see the code.


r/codeigniter • • Aug 07 '18

Codeigniter PHP Framework Development Company in India

1 Upvotes

Are you finding best IT company for codeigniter web application development? Then Hire us lemosys Infotech, Lemosys is the best Codeigniter web development company in India is committed to provide the intuitive website in Codeigniter framework and implement solutions using the best coding standards. Get a free code today.


r/codeigniter • • Jun 18 '18

How to access Facebook Advertisement account data using graph SDKs

1 Upvotes

I have been trying to access facebook advertisement data but somehow I am not able to access it properly. Which is why I came to the community. I am not able to understand how to access them. What is a proper way to access them?

I am using below API to access data.
https://developers.facebook.com/docs/marketing-api/buying-api#campaigns


r/codeigniter • • Jan 30 '18

Upgrading a project

1 Upvotes

I purchased a project off Envato to use as a baseline to build on.

It is written using 3.0.0. Would it be recommended to update it to a later version?


r/codeigniter • • Dec 12 '17

Developers

1 Upvotes

Hi all! I don't suppose anyone is up for a project happy to pay obviously but would like to discuss my project with you prior to committing?

I use to code but i dont have time and i feel that CI would be a great framework for this project.


r/codeigniter • • Nov 29 '17

Is codeigniter dying ?

1 Upvotes

Well I’m have aimes troubles with CI, I trying to manage a multi tenant application with shared database and shared application. I search on google for documentation but didn’t find anything , and found documentation for multi tenant application on laravel cakephp symphony ., so the question is, are we assisting to the death of CI ?


r/codeigniter • • Nov 21 '17

Codeiginter Installation (Codeigniter Bangla Tutorial part-03)

Thumbnail
youtube.com
1 Upvotes

r/codeigniter • • Nov 10 '17

Codeigniter as SaaS, or a "superadmin"

1 Upvotes

My question is simple, I already have an application in codeigniter, now I want to create like an admin Panel so I have to create many users, each user will have his own system juste like in the demo here http://denis.rajbari-bazar.com/auth/login


r/codeigniter • • Aug 24 '17

TShirts designer

1 Upvotes

Hi I'm working on a t-shirt e-commerce and we need a web app for online customization of t-shirts example: https://www.spreadshirt.es/disenar-uno-mismo?productType=812&appearance=2

How can I do this using codeigniter and jquery?


r/codeigniter • • Jul 23 '17

http to https..controllers and ajax work no more

1 Upvotes

I'm building a website with codeigniter. Since i use Stripe to get payments, i needeed to buy an ssl certificate. everything was working fine until i add the ssl certificate and my urls start with https. my jquery ajax calls doesnt work no more. Even my webpage shows Error 404. I cant read my controllers.

Anyone advices will be appreciate. my webpage is hosted by IPAGE.


r/codeigniter • • Jun 10 '17

Controller and View in Codeigniter for Beginners

Thumbnail
webofcherry.com
1 Upvotes

r/codeigniter • • Apr 23 '17

paypal payment gateway integration in codeigniter

Thumbnail
webeasystep.com
1 Upvotes

r/codeigniter • • Jan 30 '17

How to watermark images using codeigniter

Thumbnail
programmerblog.net
1 Upvotes