Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: updated_at is not updating
Post: RE: updated_at is not updating

The inserted/updated fields are only set when you call methods on the model. Query Builder alone doesn't know about those, so won't touch them.
9,883 Views
11 Replies
08-19-2021, 07:52 AM
craig
    Thread: having a chat widget appear (or not!)
Post: RE: having a chat widget appear (or not!)

You can accomplish this, but you can't just embed Javascript code directly in your PHP code. Code: -- var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date(); (function(){ var s1=do...
3,395 Views
5 Replies
07-21-2021, 01:20 AM
craig
    Thread: keeping user images in the assets/uploads dir - multiprocess question
Post: RE: keeping user images in the assets/uploads dir ...

Quote: -- Does each user have their own copy of the CI environment on disk? -- No. Quote: -- I am asking if two users are sharing the same directory space in /asset/uploads -- Yes, all users are...
4,282 Views
7 Replies
07-16-2021, 01:42 PM
craig
    Thread: Join in controller method
Post: RE: Join in controller method

You don't. You need to use Query Builder (https://codeigniter.com/user_guide/database/query_builder.html) or Models (https://codeigniter.com/user_guide/models/model.html).
5,542 Views
7 Replies
07-05-2021, 06:44 AM
craig
    Thread: Need help connecting to Amazon S3 storage
Post: RE: Need help connecting to Amazon S3 storage

That library looks really old. With the limited error details you've provided so far, I'm still not sure why you're getting that error using the official SDK. I've used it on CI3 and CI4 projects a...
11,175 Views
10 Replies
06-25-2021, 01:28 AM
craig
    Thread: Need help connecting to Amazon S3 storage
Post: RE: Need help connecting to Amazon S3 storage

Can you try uploading a much smaller file to see if you still have the same problem? You may need to increase the memory limit in your PHP configuration.
11,175 Views
10 Replies
06-23-2021, 06:34 AM
craig
    Thread: trying to run function just once
Post: RE: trying to run function just once

Every single page view in a PHP web application is an entirely new instance of the code execution - all the init() and construct() functions will get called. At the end of the script execution (e.g. v...
15,306 Views
21 Replies
06-23-2021, 03:26 AM
craig
    Thread: Need help connecting to Amazon S3 storage
Post: RE: Need help connecting to Amazon S3 storage

Not sure where that's coming from, or where the upload() method exists. All the docs point to the PutObject() method to upload a file - https://docs.aws.amazon.com/code-samples/latest/catalog/php-s...
11,175 Views
10 Replies
06-23-2021, 02:43 AM
craig
    Thread: Need help connecting to Amazon S3 storage
Post: RE: Need help connecting to Amazon S3 storage

The official AWS SDK for PHP, installed via Composer, works fine with CI 4. It can be registered and used with CI4 services: Code: -- /* In Config/Services.php: */ public static functio...
11,175 Views
10 Replies
06-21-2021, 03:48 AM
craig
    Thread: trying to get infor about a specific email
Post: RE: trying to get infor about a specific email

In that case I would either use the PHP library suggested or install an HTTP client package like Guzzle.
5,448 Views
8 Replies
06-16-2021, 07:47 AM
craig
    Thread: trying to get infor about a specific email
Post: RE: trying to get infor about a specific email

If you're using CI4 then you can use https://codeigniter.com/user_guide/libraries/curlrequest.html
5,448 Views
8 Replies
06-16-2021, 07:11 AM
craig
    Thread: Problem with saving session
Post: RE: Problem with saving session

@paliz If you've already got a massive project, then it's a massive job to convert it from CI3 to CI4. That takes time and not everyone has that luxury.
2,921 Views
5 Replies
06-09-2021, 06:37 AM
craig
    Thread: Problem with saving session
Post: RE: Problem with saving session

192.168. is a private IP range for internal networks and isn't accessible from the internet. cifogesu: If you are accessing this on an internal network, that's fine. If it's accessed over the inte...
2,921 Views
5 Replies
06-09-2021, 01:10 AM
craig
    Thread: Redis cache with socket
Post: RE: Redis cache with socket

Have you tried putting the Unix socket path in the Redis config's 'host' value?
3,303 Views
3 Replies
05-28-2021, 01:02 AM
craig
    Thread: How to include script located in node_modules folder using codeigniter 4?
Post: RE: How to include script located in node_modules ...

You will need to use a build process to build/copy files you need from node_modules into public/assets/ (or whatever your assets folder is called). E.g. Webpack, Laravel Mix, Parcel, Rollup, Gulp. ...
3,202 Views
3 Replies
05-20-2021, 04:25 AM
craig
    Thread: How to Print Single Name
Post: RE: How to Print Single Name

Please use the [code] tag to format your message so it's readable.
2,811 Views
4 Replies
05-19-2021, 06:25 AM
craig
  Big Grin Thread: No sessions in testing environment?
Post: RE: No sessions in testing environment?

:D Happy to help!
1,995 Views
3 Replies
05-18-2021, 07:26 AM
craig
    Thread: Using Update() on primary key named differently than id
Post: RE: Using Update() on primary key named differentl...

Have you tried using the documentation's suggestion of setting the primaryKey variable? https://codeigniter.com/user_guide/models/model.html#configuring-your-model Code: -- protected $primaryKe...
2,693 Views
2 Replies
05-18-2021, 07:19 AM
craig
    Thread: No sessions in testing environment?
Post: RE: No sessions in testing environment?

That's by design - https://codeigniter.com/user_guide/general/environments.html Quote: -- The environment testing is the special one for PHPUnit testing. It has special conditions built into the...
1,995 Views
3 Replies
05-18-2021, 07:17 AM
craig
    Thread: Change in index.php
Post: RE: Change in index.php

Thang is just slang for thing. You can always change or remove the comment if you don't like it, or submit a PR on GitHub for the maintainers to consider :)
2,420 Views
3 Replies
05-15-2021, 05:13 AM
craig

Theme © iAndrew 2016 - Forum software by © MyBB