Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Hosting Codeigniter PHP on Cloud
Post: RE: Hosting Codeigniter PHP on Cloud

This is blatant spam; newly-registered user, first post, vague content, terrible English - and two links to Cloudways. If the 'Report' button on the forum was working properly I would use it :)
craig Installation & Setup 3 111 04-15-2021, 07:26 AM
    Thread: Codeigniter-4 not working on VPS Server
Post: RE: Codeigniter-4 not working on VPS Server

The documentation does mention that intl is a requirement, so it's always worth checking that those are met: Quote:PHP version 7.3 or newer is required, with the *intl* extension and *mbstring* exten...
craig Installation & Setup 3 209 04-15-2021, 01:08 AM
    Thread: CI4 Generate Empty String On Query Binding Value On "FALSE" value
Post: RE: CI4 Generate Empty String On Query Binding Val...

If your datatype is an integer, you need to use an integer in your code. Not true, not false, not null.
craig CodeIgniter 4 Support 10 690 04-12-2021, 07:33 AM
    Thread: Update from C2.1 to C4.1
Post: RE: Update from C2.1 to C4.1

CI2 is even further away from CI4 than what CI3 is, so the same still applies. CI4 is not backwards-compatible with CI2 either :D
craig CodeIgniter 2.x 6 314 04-07-2021, 09:25 AM
    Thread: Update from C2.1 to C4.1
Post: RE: Update from C2.1 to C4.1

Best to start with a fresh install of CI4 and migrate your site's functionality across. https://codeigniter.com/user_guide/insta...e_4xx.html Quote:CodeIgniter 4 is a rewrite of the framework and is...
craig CodeIgniter 2.x 6 314 04-07-2021, 08:55 AM
    Thread: Parser for Multi-dimensional Array with the same key
Post: RE: Parser for Multi-dimensional Array with the sa...

Quote:The Parser class uses an associative array internally, to accumulate pseudo-variable settings until you call its render(). This means that your pseudo-variable names need to be unique, or a late...
craig CodeIgniter 4 Support 2 225 03-29-2021, 04:31 AM
    Thread: Unable CodeIgniter 4 Foundations Code Samples - Lonnie Ezell Book
Post: RE: Unable CodeIgniter 4 Foundations Code Samples ...

You will need to use Composer to install the CodeIgniter 4 framework for the example projects; the repository doesn't include it.
craig General Help 4 319 03-29-2021, 04:23 AM
    Thread: How to pass database result set from controller to a view
Post: RE: How to pass database result set from controlle...

https://www.codeigniter.com/user_guide/o...o-the-view
craig General Help 7 468 03-28-2021, 07:34 AM
    Thread: problems passing base64_encoded value
Post: RE: problems passing base64_encoded value

I would use the Text helper for this purpose to avoid URL issues with Base64; it uses bin2hex() on the result of random_bytes() instead of base64_encode(). Code:echo random_string('crypto', 64); http...
craig CodeIgniter 4 Support 2 266 03-25-2021, 02:50 AM
    Thread: Help writing Sql with CI4 active record
Post: RE: Help writing Sql with CI4 active record

https://codeigniter.com/user_guide/datab...cific-data Quote:$builder->where() - 5) Subqueries: You can use an anonymous function to create a subquery.
craig General Help 2 253 03-25-2021, 02:35 AM
    Thread: Help with Codeigniter v4 pagination Library
Post: RE: Help with Codeigniter v4 pagination Library

Why not use the one that comes with CI4? https://codeigniter.com/user_guide/libra...ation.html
craig General Help 6 486 03-22-2021, 08:44 AM
    Thread: Redefining PATH VIEWS in the CI4 and HMVC to real world
Post: RE: Redefining PATH VIEWS in the CI4 and HMVC to r...

https://codeigniter.com/user_guide/outgo...aced-views https://codeigniter.com/user_guide/conce...oader.html
craig CodeIgniter 4 Support 1 214 02-11-2021, 10:05 AM
    Thread: Encryption produces gibberish string
Post: RE: Encryption produces gibberish string

Quote:You’ll notice that the createKey() method outputs binary data, which is hard to deal with (i.e., a copy-paste may damage it), so you may use bin2hex(), or base64_encode to work with the key in a...
craig Libraries & Helpers 2 461 02-07-2021, 03:53 AM
    Thread: suggestion for a solution to development machine vs production
Post: RE: suggestion for a solution to development mach...

https://stackoverflow.com/questions/1755...-it-in-php
craig Best Practices 7 793 02-04-2021, 06:42 AM
    Thread: suggestion for a solution to development machine vs production
Post: RE: suggestion for a solution to development mach...

(02-03-2021, 11:43 AM)richb201 Wrote: BTW, I am using CI 3. Same answer? No, CI3 doesn't support .env files or environment variables for configuration natively. To do this yourself, you will need t...
craig Best Practices 7 793 02-04-2021, 05:14 AM
    Thread: running a script in a php module
Post: RE: running a script in a php module

Either end the PHP parsing with '?>', or you can use echo to output the HTML tags and stay in PHP: PHP Code:$url = site_url('Configure / IUS_management');echo "<li&...
craig General Help 16 1,225 02-03-2021, 01:26 PM
    Thread: running a script in a php module
Post: RE: running a script in a php module

Why are you inserting <script> tags? They're only for Javascript.
craig General Help 16 1,225 02-03-2021, 01:19 PM
    Thread: suggestion for a solution to development machine vs production
Post: RE: suggestion for a solution to development mach...

That's exactly what the baseURL Config property is for. Either use a .env file to set it, or an envrionment variable. https://codeigniter.com/user_guide/insta...nning.html https://codeigniter.com/u...
craig Best Practices 7 793 02-02-2021, 04:35 AM
    Thread: running a script in a php module
Post: RE: running a script in a php module

In that case I don't know why it's not loading. Do other assets like CSS and JS load properly? Where are those located?
craig General Help 16 1,225 02-01-2021, 11:52 AM
    Thread: running a script in a php module
Post: RE: running a script in a php module

(01-31-2021, 06:48 AM)richb201 Wrote: It is in a docker container (as is the rest of my code). Here is the full path to it on my hardrive.  /opt/docker-substantiator2/app/assets/themes/default/ima...
craig General Help 16 1,225 01-31-2021, 08:45 AM

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.