Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all 14065 articles
Browse latest View live

inherits / extends few Controllers

$
0
0
Hello,

I want to create few mother class for controllers.

I create the file core/Base.php and :

controllers/Test.php

Code:
class Test extends Base

But I have "Class 'Base' not found.

Idem when I move the Base.php in controllers or when I prefix with MY_

Can I only have one mother class named 'MY_Controller', not more ?

Migrating CI3 to CI4

$
0
0
Hi,

I am running a CI site with version 3.0.4 and MySQL 5.5 - SSD.

Currently exploring options to update the entire site to CI 4.0.4 to allow us to run PHP 7.2 and MySQL 8.0 (if possible).

We have a pretty clean installation which can be provided. There is no need for design changes.

Additionally used are: jQuery 1.1.12 Bootstrap 3.3.6 DataTables 1.10.10 FontAwesome 4.0.5 TinyMCE 4.3.7 Fileinput 4.2.7

Scope of work:

1) Move CI to Version 4 while ensuring all components/features are retained

2) Update/test and optimise any JS that should needs updating

Bonus: 3) if possible change payment gateway from standard PayPal to PayPal Plus (Germany), no storage of payments in DB required. Simple processing only.

The project is not urgent. Feel free to quote or ask questions if you are interested, will provide website if you message me. Budget depends on quote.

framework4.0.4 doenst run on php 7.1 alternative

$
0
0
Guys,

I am trying to integrate your latest framework 4.0.4, in my new project but its requiring me to upgrade my PHP version from 7.1 to 7.2 or higher from my cpanel command line as stated below:
-----------------------------------------------------------------------------------------------------------------------------------
 "CodeIgniter CLI Tool - Version 4.0.4 - Server-Time: 2020-11-02 07:20:51am

Your PHP version must be 7.2 or higher to run CodeIgniter. Current version: 7.1.33tauenjic@c01 [~/public_html/superapp/install/ci-news]#

------------------------------------------------------------------------------------------------------------------------------------
Problem is, I already have 3 projects running, that are limited to PHP 7.1 and not higher... Is there an alternative way around that(meaning getting it to run on a  PHP version 7.1 without having to upgrade my PHP version)?

Anyways let me know if there is a way

thank your support in advance.

cheers

Codeigniter 4 development mode returning extra HTML

$
0
0
Hi to everyone,
I'm having an issue with Codeigniter 4 in development mode.
It is now the second case that, when I send data via Ajax, the code breaks in development mode since, aside from the JSON string I need, I also get some code from the debugger like the one below:

<script type="text/javascript"  id="debugbar_loader" data-time="1604332610" src="http://localhost/index.php?debugbar"></script><script type="text/javascript"  id="debugbar_dynamic_script"></script><style type="text/css"  id="debugbar_dynamic_style"></style>

To make sure everything runs smoothly I always need to switch back to production mode.
Anyone knows how to solve this problem? Thanks

Dynamically changing supported languages

$
0
0
In the project I have developed, languages can be added or removed from the management panel.

How can I do I want to dynamically change the $supportedLocales in the app.php file.

Language problem on server

$
0
0
Hello,

On localhost with Spark I programmed my website and CMS system using language variables. In spark this all worked fine and all translations were visible.

Today I put it on my server for the first time but in the CMS part the translations are not visible and I just see the call like: lang('cms.nav.settings').

The weird thing is that it DOES work on my frontend so for example the main site and /shop/ there it works fine.
On my CMS (/cms) it doesn't work, I can't find a difference in localization anywhere. The only difference is that the CMS is a route group and has a different template.

I did an extra check to see if my server met all the requirements and that is the case.

Does anyone have an idea what this could be and how I can fix it?

It looked a bit like this: https://forum.codeigniter.com/thread-777...t=language

Only all files are already in capital letters and it works in the frontend but not in the backend cms (same language file in the frontend).


.jpg   nav.jpg (Size: 36.67 KB / Downloads: 0)

CI 4 not working

$
0
0
i downloaded CI using this link: https://codeigniter.com/download 

when I run on XAMP below error appear. 


Fatal error: Uncaught Error: Call to undefined function CodeIgniter\locale_set_default() in C:\xampp\htdocs\jsforsociety\system\CodeIgniter.php:184 Stack trace: #0 C:\xampp\htdocs\jsforsociety\system\bootstrap.php(181): CodeIgniter\CodeIgniter->initialize() #1 C:\xampp\htdocs\jsforsociety\public\index.php(36): require('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\jsforsociety\system\CodeIgniter.php on line 184

how to solve?

Caching

$
0
0
Hello

Im trying to start development in codeigniter 4 and I have a little problem with web caching. I have blog where there's for example articles with comments. I would like to cache all pages but whenever user add a comment page needs to be refreshed. How I can manually delete cached page? 

PHP Code:
public function show(string $title=''int $id=0)
    {
        $this->cachePage(120);
        $this->setArtTitle($title);
        $this->setArtId($id);
        $this->getArtData();
        helper('text');        
        $commentModel 
= new CommentsModel();
 
    
        $this
->dataOutput['art'] = $this->artData;
        $this->dataOutput['title'] = $this->artData->art_title;
        $this->dataOutput['desc'] = character_limiter(strip_tags($this->artData->art_desc),150);
        $this->dataOutput['file'] = 'art';
        $this->dataOutput['comments'] = $commentModel->getArtComments($this->artId)->getResult();
        //view
        return view($this->template,$this->dataOutput);
    

Do I need to clean all cached pages ($cache->clean()) or there's any way to delete choosen cached pages?

Thanks in advance for any help

what is the best practice to use country selection in CI4

$
0
0
Hi

I am developing e-commerce.

what is best practice to have country selection using CI4?

i searched the forum but found non answers relate to CI4

can anyone share the best method and sample code?

Refresh after webhook callbackh the p

$
0
0
Hi all,

I'm wondering how to achieve refreshing or repaint a part of the users view after receipt of a webhook call back from Stripe.

In our specific case:

1) User logs in.  This causes session data to have login details
2) They go to a payment dialog and make a payment.  The way stripe works is we have to setup a payment intent and send it off to stripe.  Stripe is configured to call a webhook call back in our code.   Call it.  stripepayment() for simplicity.

So issue is that in steps 1 and 2 the users browser is handling the payment and that browser has the logged in session data.

The payment intent is sent to stripe and it makes a webhook call back into our site using a specific controller/function.  For this example say it is mysite/payments/stripepayment.  We get some json data telling us about the payment so we can apply it to the correct account.

Here is the desire.  When this webhook call is made I would like to cause an update to the users browser session, perhaps a page refresh so we can so that their payment was credited.  But the webhook call back comes from stripe.com, it does not have any session data related to the users browser session or any connection what so ever to the users browser session.

Yes the webhook provides some call back info that allows us to update the users account with the payment data, but what would be a good way to notifiy the user whose browser is sitting on the payment screen that this succeed?

For now simply triggering a refresh would be ok.  I've considered  after the payment intent is set simply issuing a redirect for the user back the page but I'm concerned that the payment could take a short time and my redirect would be too early.

Any idea on how to coordinate this would be appreciated.

Just when I thought I had Pagination put to bed...

$
0
0
I've experienced a hiccup with pagination... this time when it comes to the sort order of results.

If I do this:
Code:
$model->select('name, status, date, timezone, .....')->where('name', $name)->whereIn('status', STATUS_ARRAY)->orderBy('date', 'DESC');

and there happens to be a many records that have the an identical date, the orderBy constraint (more than what will fit on a single pagination's page), I find that the results presented on the different pages frequently have repetitions of what was shown on previous pages (and some of the records that should be displayed are missed- perhaps replaced by the repeated ones?).

Without making my lazy brain do any thinking, I find after a little experimenting, that if I do this:
Code:
$model->select('name, status, date, timezone, .....')->where('name', $name)->whereIn('status', STATUS_ARRAY)->orderBy('date DESC, id DESC');

the problem appears to go away.

* the 'date' field is a unix timestamp (int).

My concern is that I have many pages that use pagination (all with ordered sets of results) that will probably, at some point, have results that are ordered by a value that is repeated many times (more than what will fit on a single page)... which looks like it will then break the pagination's display (?).

So my questions are:

1) am I doing something stupid?
2) has anyone else noticed/experienced this problem of paging with an orderBy?
3) is there a more sensible workaround than adding an additional, superfluous (but unique) id field to the orderBy that just creates more work for the query?

Thanks.

404 - File Not Found

$
0
0
Hi all,
I'm running the ci_news app on my local network:
Code:
php spark serve --host 192.168.1.15


CodeIgniter CLI Tool - Version 4.0.4 - Server-Time: 2020-11-03 09:21:28am
CodeIgniter development server started on http://192.168.1.15:8080
Press Control-C to stop.
[Tue Nov  3 10:21:28 2020] PHP 7.4.12 Development Server (http://192.168.1.15:8080) started
[Tue Nov  3 10:26:26 2020] 192.168.1.5:54946 Accepted
[Tue Nov  3 10:26:26 2020] 192.168.1.5:54945 Accepted
[Tue Nov  3 10:26:26 2020] 192.168.1.5:54945 Closing


I can load the default page into a browser:

http://192.168.1.15:8080/
Welcome to CodeIgniter 4.0.4

But after going through the tutorial I cannot  load the pages.

http://192.168.1.15:8080/pages
404 - File Not Found

[Tue Nov  3 10:45:32 2020] 192.168.1.5:55074 Accepted
[Tue Nov  3 10:45:32 2020] 192.168.1.5:55075 Closing
[Tue Nov  3 10:45:32 2020] 192.168.1.5:55074 [200]: GET /favicon.ico
[Tue Nov  3 10:45:32 2020] 192.168.1.5:55074 Closing


It's throwing the exception called from Controllers/Pages.php:
throw new \CodeIgniter\Exceptions\PageNotFoundException("hmm.. not found: ". $page);

Do you have any advice?
thank you.

Codeigniter 4 Load settings from database

$
0
0
I would like to load few settings that is previously stored in Database (e.g. site language, site name etc.) and those settings will be used everywhere in the application. Previously in Codeigniter 3 I've done this by adding below code in application/config/config.php file.

Code:
require_once(BASEPATH . 'database/DB.php');
$db =& DB();
$config['general_settings'] = $db->get('general_settings')->row();
$config['languages'] = $db->get('languages')->result();
$db->close();

But I'm bit confused about to Codeigniter 4 where or in which file I should put this code to get expected result. Any suggestion?

Upgrade Guideline from 3.x to 4.x

$
0
0
Hello! 

As part of a project of our university we are working on a new guideline for the upgrade process from 3.x to 4.x because the current guide in the official docs is pretty short.

To cover the most important functions and libraries I want to ask the community to tell me which libraries you mostly use in your CI projects.If you have further advice or ideas on our topic, please feel free to share them!


Cheers,
Niklas

SQL query issue again

$
0
0
$sql = "SELECT item FROM survey_results WHERE user_email = ? AND taxyear = ? AND item_type='AC' "//only look at Activities
$query2 = $this->db->query($sql, array($employee_email, $taxyear));


This query seems to work fine when I use dave1@yahii.com and 2017.

But when I use mark@gmail.com and 2017 it doesn't find anything.  Could there be a problem with using an "@" in the string? If true, why would @yahii.com work? I originally had the taxyear as an integer. I changed that to a varchar. taxyear varchar(11) utf8mb4_bin. Could it be that my '2017' is only four chars, not 11? 

tinyint(1) not returning it's value

$
0
0
Hello,

I'm currently using CodeIgniter 3.1.11, in there i'm writing a simple helper to get single fields from the query based on users UUID(). These are mostly settings in example ToggleSidebar can be 0 (off) or 1 (on). But to retrieve these fields it's not working, i've been searching for typos and direct writing in my query (that works).

quick test on value change, when set to 1 (on) it's no issue, the issue is in the fact it doesn't allow 0 (off) values in the fields.

Other columns with a varchar(45) have no issues to get those values, only the tinyint(1) columns seem to have this issue. Does anybody have encountered the same issue and resolved this in some way? In my case it's not possible to re-design the database columns so i need a work-around or a code fix for this.

Thank you!

Kind Regards

PostgreSQL and Query Builder problem

$
0
0
Hey guys, it's me again Big Grin 

In my work, they want to develop an app with CI4, to educational proposals, but, when they want to work with the Builder and PostgreSQL, they return this

PHP Code:
object(CodeIgniter\Database\Postgre\Result)#69 (8) { ["connID"]=> resource(13) of type (pgsql link) ["resultID"]=> resource(15) of type (pgsql result) ["resultArray"]=> array(0) { } ["resultObject"]=> array(0) { } ["customResultObject"]=> array(0) { } ["currentRow"]=> int(0) ["numRows"]=> NULL ["rowData"]=> NULL } 

i made a little projects with MySQL and they works excellent, but with PostgreSQL, it's a headache.


The controller:

PHP Code:
namespace App\Controllers;
use 
App\Models\Usuarios_model;
use 
CodeIgniter\API\ResponseTrait;

class 
Usuarios extends BaseController{{
public function 
autenticar(){
        $model = new Usuarios_model();
        $userdata = array();
        //var_dump($this->request->isAJAX());
        //die();
        if($this->request->isAJAX()){
            $datos json_decode(base64_decode($this->request->getPost('data')),TRUE);
            $query $model->getUser($datos["user"], $datos["pass"]);
            var_dump($query);
            die();
            if(!isset($query)){
                foreach($query->getResult() as $row){
                    $userdata["usuario"] = $row->usernick;
                    $userdata["usuarioid"] = $row->id_user;
                    $userdata["logged"] = TRUE;
                }

                $this->session->set($userdata);
                return $this->respond(["message" => "bienvenido"],200);
            }
            else{
                return $this->respond(array('message' => 'Usuario o contraseña incorrectos'),404);
            }
        }
        else{
            return redirect()->to('/403');
        }
    }

In the previous version, the Framework works excelent with PostgreSQL, with pg_connect(), but now, i can't get how many rows can affected and how many rows the query retrived, but, i can do all that stuffs with MySQL.

Possibility of creating a dynamic wildcard subdomain in CI4

$
0
0
Is there a way to set a route to a dynamic subdomain in CI4 
For exmaple:
PHP Code:
$routes->get('profile/(:segment), 'UsersController::profile/$1''); 

The segment in te abouve code will be the username with we hope to set as a subdomain.
username.example.com

So we can fetch details base on the username.

Please Help with routing

$
0
0
Hello all,  I'm starting with CI4 (used CI3 for some projects) but this is my first time using routes and I want to know what do you recommend for this:

In my new project I want to have a website, its almost only static pages with some database calls (cities and product categories) and also will have a user area where they will be able to manage products.

According to docs should be like this:

/app       <-- Everything else in the app
/website  <-- All related to website
/public
/system
/tests
/writable


Website part should have only one controller and a view for any page (only 4 pages) and should work in root like this:
domain.com   (home page)
domain.com/services
domain.com/products
domain.com/contact

App part should have everything else and should work with 'app' (or whatever) prefix like:
domain.com/app/login
domain.com/app/users
domain.com/app/products
domain.com/app/cities
.
.

Is this ok?  Can anyone help me please with a routing example for achieving this?

Also should I use .env file for app settings or is it a better practice to create a dedicated config file for my app?

paging does not work on server

$
0
0
Sorry my bad english

I am working on a project in CodeIgniter 3.1.11, the project in general is working fine and everything, but there is a problem, in my local I use xampp, and the codeigniter paging system works fine, but when publishing on my server or any server does not work, does not show the page.

It would have to show me something like that but it doesn't: (example)
[Image: codeigniter-pagination-example-using-bootstrap.png]


I do not know what will be happening so that this is not showing it to me, and for the project it is essential that this is in operation.


here is my controller and model

Controller

PHP Code:
public function index()
    {
        $config = array();
        $user 0;

        if($this->session->userdata('login')){
            if($this->user->TIP == 2){
                $user $this->user->TIP;
                $this->list_car $this->ConModel->get_list_vh();
            }else if($this->user->TIP == 3){
                $user $this->user->TIP;
                $this->list_car $this->ConModel->get_list_vh_cli();
            }else{
                $this->list_car $this->ConModel->get_list_vh_cli();
            }
        }else{
            $this->list_car $this->ConModel->get_list_vh_cli();
        }
        
        $this
->load->library('pagination');

        $cont count($this->list_car);

        $config['base_url'] = base_url().'welcome';
        
$config['total_rows'] = $cont;
        $config['per_page'] = 5;
        $config["uri_segment"] = 2;
        

        $config
['num_links'] = 2;
        $config['use_page_numbers'] = true;
        $config['reuse_query_string'] = true;

        $config['full_tag_open'] = '<ul class="pagination">';
        
$config['full_tag_close'] = '</ul>';
        
$config['first_link'] = false;
        
$config['last_link'] = false;
        
        
$config['first_tag_open'] = '<li class="page-item page-link">';
        
$config['first_tag_close'] = '</li>';
        
$config['prev_link'] = '&laquo';
        
        
$config['prev_tag_open'] = '<li class="prev page-link"> ';
        
$config['prev_tag_close'] = '</li>';
        
$config['next_link'] = '&raquo';
        
        
$config['next_tag_open'] = '<li class="page-item page-link">';
        
$config['next_tag_close'] = '</li>';
        
        
$config['last_tag_open'] = '<li class="page-item page-link">';
        
$config['last_tag_close'] = '</li>';

        
$config['cur_tag_open'] = '<li class="page-item active"><a class="page-link" href="#">';
        
$config['cur_tag_close'] = '</a></li>';

        
$config['num_tag_open'] = '<li class="page-item page-link">';
        
$config['num_tag_close'] = '</li>';


        $this->pagination->initialize($config);

        $page = ($this->uri->segment(2)) ? $this->uri->segment(2) : 0;

        $post $this->ConModel->get_num_pagina($config['per_page'],$page$user);

        $data = array(
            'est' => 0,
            'doc' => $this->session->userdata('token'),
            'count' => $cont,
            'js' => 1,
            'script' => 'fil1.js',
            'lt' => $post,
            't' => $this->session->userdata('token'),
            'link' => $this->pagination->create_links()
        );
        
$this->load->view("layout/venta_init/header",$data);
        $this->load->view("venta/index");
        $this->load->view("layout/venta_init/footer");
    

Model

PHP Code:
public function get_list_vh_cli()
    {
        $query "SELECT
                    vt_venta_vh.id_vh_venta AS ID,
                    vt_venta_vh.marca AS MAR,
                    vt_venta_vh.modelo AS MO,
                    vt_venta_vh.version AS V,
                    vt_venta_vh.`year` AS A,
                    vt_venta_vh.kilometraje AS K,
                    vt_venta_vh.placa AS P,
                    vt_venta_vh.valor_venta AS VAL,
                    vt_venta_vh.op_valor AS OP,
                    vt_venta_vh.activo AS EST,
                    vt_venta_vh.pintura AS PI,
                    vt_venta_vh.interior AS IN_T,
                    vt_venta_vh.mecanico AS ME,
                    vt_venta_vh.accidente AS ACC,
                    vt_venta_vh.choque AS CHO,
                    vt_venta_vh.combustible AS COM,
                    vt_venta_vh.descripcion AS DES,
                    (SELECT vt_img.img FROM vt_img WHERE vt_img.id_vh = ID LIMIT 1) AS IMG,
                    vt_usuario.nombre AS NOM,
                    vt_usuario.apellido AS APE,
                    vt_usuario.telefono AS TEL,
                    vt_venta_vh.`user` AS US
                    FROM
                    vt_venta_vh
                    INNER JOIN vt_usuario ON vt_venta_vh.documento = vt_usuario.documento
                    WHERE vt_venta_vh.`user` = 1 AND vt_venta_vh.activo = 1"
;
        $dd $this->db->query($query);
        return $dd->result();
    }
    
    
//---------------------------------------------------------------------------
    public function get_num_pagina($limit,$offset$user)
    {
        $this->db->select('vt_venta_vh.id_vh_venta AS ID,vt_venta_vh.marca AS MAR,vt_venta_vh.modelo AS MO,vt_venta_vh.version AS V,vt_venta_vh.`year` AS A,vt_venta_vh.kilometraje AS K,vt_venta_vh.placa AS P,vt_venta_vh.valor_venta AS VAL,vt_venta_vh.op_valor AS OP,vt_venta_vh.activo AS EST,vt_venta_vh.pintura AS PI,vt_venta_vh.interior AS IN_T,vt_venta_vh.mecanico AS ME,vt_venta_vh.accidente AS ACC,vt_venta_vh.choque AS CHO,vt_venta_vh.combustible AS COM,vt_venta_vh.descripcion AS DES,(SELECT vt_img.img FROM vt_img WHERE vt_img.id_vh = ID LIMIT 1) AS IMG,vt_usuario.nombre AS NOM,vt_usuario.apellido AS APE,vt_usuario.telefono AS TEL,vt_venta_vh.`user` AS US');
        $this->db->join('vt_usuario','vt_venta_vh.documento = vt_usuario.documento');
        if($user != 0){
            $this->db->where('vt_venta_vh.`user`',$user);
        }
        $this->db->where('vt_venta_vh.activo',1);
        $this->db->limit($limit$offset);
        return $this->db->get('vt_venta_vh')->result();
    }

    public function get_num_pagina_bus($año$marca$modelo,$version,$comb,$k$user $check_val_10,$check_val_mx_4,$check_val_m_4)
    {
        $this->db->select('vt_venta_vh.id_vh_venta AS ID,vt_venta_vh.marca AS MAR,vt_venta_vh.modelo AS MO,vt_venta_vh.version AS V,vt_venta_vh.`year` AS A,vt_venta_vh.kilometraje AS K,vt_venta_vh.placa AS P,vt_venta_vh.valor_venta AS VAL,vt_venta_vh.op_valor AS OP,vt_venta_vh.activo AS EST,vt_venta_vh.pintura AS PI,vt_venta_vh.interior AS IN_T,vt_venta_vh.mecanico AS ME,vt_venta_vh.accidente AS ACC,vt_venta_vh.choque AS CHO,vt_venta_vh.combustible AS COM,vt_venta_vh.descripcion AS DES,(SELECT vt_img.img FROM vt_img WHERE vt_img.id_vh = ID LIMIT 1) AS IMG,vt_usuario.nombre AS NOM,vt_usuario.apellido AS APE,vt_usuario.telefono AS TEL,vt_venta_vh.`user` AS US');
        $this->db->from('vt_venta_vh');
        $this->db->join('vt_usuario','vt_venta_vh.documento = vt_usuario.documento');        
        $this
->db->where('vt_venta_vh.activo'1);
        if($user != 0){
            $this->db->where('vt_venta_vh.`user`',$user);
        }
        if($año != '0'){
            $this->db->where('vt_venta_vh.year',$año);
        }
        if($marca != '0'){
            $this->db->where('vt_venta_vh.marca',$marca);
        }
        
        
if($modelo != '0'){
            $this->db->where('vt_venta_vh.modelo',$modelo);
        }
        if($version != '0'){
            $this->db->where('vt_venta_vh.version',$version);
        }
        if($comb != '-1'){
            $this->db->where('vt_venta_vh.combustible',$comb);
        }

        if($k != '0'){
            if($k == 1){
                $this->db->where('vt_venta_vh.kilometraje >=','0');
                $this->db->where('vt_venta_vh.kilometraje <=','10000');
            }
            elseif($k == 2){
                $this->db->where('vt_venta_vh.kilometraje >=','10000');
                $this->db->where('vt_venta_vh.kilometraje <=','20000');
            }elseif($k == 3){
                $this->db->where('vt_venta_vh.kilometraje >=','21000');
                $this->db->where('vt_venta_vh.kilometraje <=','30000');
            }
            elseif($k == 4){
                $this->db->where('vt_venta_vh.kilometraje >=','31000');
                $this->db->where('vt_venta_vh.kilometraje <=','40000');
            }elseif($k == 5){
                $this->db->where('vt_venta_vh.kilometraje >=','41000');
                $this->db->where('vt_venta_vh.kilometraje <=','50000');
            }elseif($k == 6){
                $this->db->where('vt_venta_vh.kilometraje >=','51000');
                $this->db->where('vt_venta_vh.kilometraje <=','60000');
            }elseif($k == 7){
                $this->db->where('vt_venta_vh.kilometraje >=','61000');
            }

        }
        
        
if($check_val_10 != 0){
            $this->db->where('vt_venta_vh.valor_venta >=','0');
            $this->db->where('vt_venta_vh.valor_venta <=','10000000');
        }
        if($check_val_mx_4 != 0){
            $this->db->where('vt_venta_vh.valor_venta >=','11000000');
            $this->db->where('vt_venta_vh.valor_venta <=','40000000');
        }
        if($check_val_m_4 != 0){
            $this->db->where('vt_venta_vh.valor_venta >=','41000000');
        }
        return $this->db->get()->result();
    


Yes, I know that there is a lot of code redundancy and spaghetti code, but for now I am starting in the project and later it will be debugged.

If anyone knows why this error is generated, I would appreciate it very much
Viewing all 14065 articles
Browse latest View live


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