Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How to reuse a query
Post: How to reuse a query

The user table has 20 rows. PHP Code: -- //1.create a query $result = $this->news_model->where('id>',10);//10 results //2.get the count $count = $result->countAllResults(); //10 results //3.re...
2,177 Views
0 Replies
11-08-2021, 01:28 AM
JerryCode
    Thread: How to use a protected function from another class
Post: RE: How to use a protected function from another c...

tgix Wrote: (08-03-2020, 02:54 AM) -- You don't get access to a() just because you extend from the same base class. You should probably look into using traits instead. -- thanks
2,796 Views
3 Replies
08-03-2020, 03:00 AM
JerryCode
    Thread: How to use a protected function from another class
Post: How to use a protected function from another class

Class A PHP Code: --
2,796 Views
3 Replies
08-03-2020, 02:43 AM
JerryCode
    Thread: Could not move file to
Post: RE: Could not move file to

dave friend Wrote: (02-11-2020, 11:19 AM) -- Does the destination exist? Do the permissions of the destination allow for file write operations? -- Yes,Is locally developed
7,182 Views
3 Replies
02-11-2020, 06:36 PM
JerryCode
    Thread: Could not move file to
Post: Could not move file to

PHP Code: -- public function index(){ $file= new \CodeIgniter\Files\File('https://www.***.com/***.jpg'); $type = $file->getExtension(); //success:jpg $newName = $file->getRandomName(); $file->mo...
7,182 Views
3 Replies
02-11-2020, 09:41 AM
JerryCode
    Thread: codeigniter4 with nginx ssl not work
Post: RE: codeigniter4 with nginx ssl not work

kilishan Wrote: (10-10-2019, 08:02 PM) -- Check server logs. What's the error it's returning? -- The logs: Code: -- 2019/10/12 14:47:59 [crit] 11053#0: *29 connect() to unix:/tmp/php-fpm.sock fai...
5,396 Views
3 Replies
10-12-2019, 12:14 AM
JerryCode
    Thread: codeigniter4 with nginx ssl not work
Post: codeigniter4 with nginx ssl not work

I use the nginx config in codeigniter3,it works。 but in codeigniter4 not work Code: -- server     {         listen 80;         #listen [::]:80;         server_name www.domain.com domain.com *.dom...
5,396 Views
3 Replies
10-10-2019, 06:45 PM
JerryCode
    Thread: Argument 2 passed to dot_array_search() must be of the type array
Post: Argument 2 passed to dot_array_search() must be of...

when I run the index.php  in phpstorm, return some errors PHP Code: -- An uncaught Exception was encountered Type:        TypeError Message:    Argument 2 passed to dot_array_search() must be o...
1,705 Views
0 Replies
09-17-2019, 11:36 PM
JerryCode
    Thread: How to use Uploaded Files Library
Post: RE: How to use Uploaded Files Library

rmcdahal Wrote: (09-02-2019, 11:10 PM) -- First Register service Code: -- $file = new \CodeIgniter\Files\File($path); $file = $this->request->getFile('thumbnail');         dd($file->getName());...
3,134 Views
2 Replies
09-03-2019, 12:09 AM
JerryCode
    Thread: How to use Uploaded Files Library
Post: How to use Uploaded Files Library

I want upload some files in a Codeigniter4 program The method in Controller: Code: --
3,134 Views
2 Replies
09-02-2019, 07:29 PM
JerryCode

Theme © iAndrew 2016 - Forum software by © MyBB