Welcome Guest, Not a member yet? Register   Sign In
  PHP Ecosystem 2021
Posted by: php_rocs - 07-23-2021, 04:51 AM - Replies (2)

Here is a good read about the PHP ecosystem 2021.  CI gets a mention too!!
https://www.jetbrains.com/lp/devecosystem-2021/php/


  Paypal certificate problem
Posted by: pippuccio76 - 07-23-2021, 04:15 AM - Replies (1)

hi sorry for english i use the paypal code on github :

https://github.com/paypal/ipn-code-sampl...palIPN.php

I insert the cacert.pem inside a folder in writable , this is my code :

PHP Code:
        if ($this->use_local_certs) {
            curl_setopt($chCURLOPT_CAINFOWRITEPATH.'/uploads/Paypal/cacert.pem');
        

But in my ipn log i have :  cURL error: [60] SSL certificate problem: unable to get local issuer certificate
This is my server screenshot :
https://imgur.com/ljuXH6e.png
Why ?


  Query on self referncing table
Posted by: Lipe_Bogaci - 07-22-2021, 12:49 PM - Replies (1)

hi CI Firiends
please can anyone tell me how can i query in self-refrence table?
i need to query the child that are referenced to parent by id


  I need to get data from different table using sql query
Posted by: shameelhp - 07-22-2021, 08:20 AM - Replies (2)

Hi, Iam new to CI4 and have been exploring it for a couple of weeks now. I usually create an instance of Model in the Controller for performing Database operations. But now I need to get data from different table using sql query (for example: select user.*,country.countryname from user,country where user.country=country.countryid) Here the PK of Country table is stored in the 'country' field of user table, I need to get the corresponding country name from country table. This was easy by just executing the query in normal php. Since I'm new to CI4, a little in trouble with this. Any help would be very much appreciated.

Thanks in advance.


  On DigitalOcean, Unable to load the requested file
Posted by: satie - 07-22-2021, 08:19 AM - No Replies

Hello,
I'm relocating a website (php 5.6) on digitalOcean but it returns:
An Error Was Encountered
Unable to load the requested file: helpers/my_funzioni_helper.php

I'm going crazy. Please help me.
The doamin is: https://centrointerculturale.foggia.it/

Thank you


  Session not working in Codeigniter 3.x and PHP7.2.x
Posted by: marcsinfo - 07-22-2021, 02:34 AM - Replies (1)

Hi,
We have an application that's working perfectly fine with PHP5.6.x and CI3.0.3.

In the process of upgrading it to CI3.1.11 and PHP7.2.x, while testing the application, we are encountering that the session is getting regenerated esp. when an external API call is completed and redirected back. More information is available in this stackoverflow link here.

Could anyone help guiding me in the right direction?

Thanks


  Illuminate Database Wrapper
Posted by: nfaiz - 07-21-2021, 11:51 PM - No Replies

Hi,

This is my fun project for last weekend. But I've got time constraint to release due to eid celebration.

Illuminate Database Wrapper for CodeIgniter 4.

It uses CodeIgniter 4 debug toolbar to show the query collector for Illuminate Database.

You can use Illuminate Database features like

  • Query Builder
  • Schema Builder
  • Eloquent ORM

I am not Laravel developer, it just my colleague did ask me whether can use eloquent with CodeIgniter. So why not?

I cant explore much right now. Just reading a quick documentation here how to setup the library.

  1. Installation via composer
    Code:
    composer require nfaiz/dbtoolkit:dev-main

  2. Setup via spark
    Code:
    php spark dbtoolkit:publish

  3. Open app/Config/DbToolkit.php for library configuration.

  4. Basic usage (query builder)

    Use capsule() for db instance. Make sure DBgroup connection has been made.

    E.g for basic usage.

    In controller
    PHP Code:
    $user capsule()::table('users')->where('id'1)->get();
    $results capsule()::select('select * from users where id = ? or id = ?', [12]); 

    Debug toolbar
    [Image: 2MIxNp2.png]

Thank you.


  Recommend books about php framework development
Posted by: kleber - 07-21-2021, 04:38 PM - Replies (5)

Could you recommend books about php framework development? I believe this can help everyone to contribute to ci.


  How to remove index.php from URL in CodeIgniter ec2 elastic Beanstalk
Posted by: gibin - 07-21-2021, 11:23 AM - Replies (5)

How to remove index.php from URL in CodeIgniter ec2 elastic Beanstalk

my configuration file

htaccess 

<IfModule mod_rewrite.c>
    Options -MultiViews

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

config.php

$config['base_url'] = 'http://XXXXXXXXX.elasticbeanstalk.com/';
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';


  new feature Entity ci4
Posted by: paliz - 07-21-2021, 04:01 AM - No Replies

when  has an entity for model  , if we use $datamap[] in our entity 
$model->find() it be like  data via ReturnType Entity 
model update or save   have to  use  $datamap[]  for it operation  
okay
but  when  we use $datamap for  $model->where() or $model->like() or $model->whereIn()
it  dose not follow $datamap[] so  we get error  it should be both for $datmap or  data base coulmn schema 
see    codes 

PHP Code:
class  Entity extends Entity
{


    protected $id;
    protected $name;
    protected $link;
  


    
protected $attributes = [
        'id' => null,
        'name' => null,
        'user_id' => null,
      
    
];
    protected $datamap = [
 
'userId' =>'user_id',
      
    
];

    protected $dates = ['created_at''updated_at''deleted_at'];

    protected $casts = [
      
    
];

    protected $permissions = [];

    protected $roles = [];

  

  

}

$entity = new Entity()

$model=  new Model();

$model->save($entity);
$model->update($id,$entity);

// but this no gonna work  and get error 
// it dose not recognize $datamap[]
$model->select('*')->where(['userId'=>'2')->find();

// th orginal one works         
$model->select('*')->where(['user_id'=>'2')->find();

// do you see ?!!!!!!!!!!! 
// we need this new feature


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

Username
  

Password
  





Latest Threads
Query builder question (C...
by bastian
1 hour ago
Emails has exceeded the m...
by ZoeF
2 hours ago
PHP 8 - Mailhog and CI 4....
by Chroma
2 hours ago
I can't validate array in...
by paliz
3 hours ago
Filters and $_POST (or $r...
by Kaosweaver
3 hours ago
inhibiting image download
by InsiteFX
4 hours ago
Codeigniter mentioned in ...
by John_Betong
10 hours ago
How handle errors when in...
by wuuyun
Yesterday, 05:47 PM
Ci4 Developer Wanted
by paliz
Yesterday, 02:06 PM
[ASK] Whatsapp Library on...
by ISSHIKI
Yesterday, 11:48 AM

Forum Statistics
» Members: 25,670
» Latest member: flopisrivas
» Forum threads: 73,776
» Forum posts: 360,124

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB