Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CodeIgniter 3 only connect to database if theres queries to run?
Post: RE: CodeIgniter 3 only connect to database if ther...

@Yaiko, I have just checked an old CI3 application and noticed that I have the following set: File: ./app/config/autolload.php Code: -- // $autoload['libraries'] = array('database', 'image_l...
1,329 Views
3 Replies
04-22-2022, 10:19 PM
John_Betong
    Thread: Why PHP is AWESOME
Post: RE: Why PHP is AWESOME

@"php_rocs" Impressive and informative video from a knowledgeable PHP developer. I can’t resist to raise the old chestnut about adding declare(strict_types=1); to all PHP files. I’m convinced this...
2,046 Views
1 Replies
04-20-2022, 10:18 PM
John_Betong
    Thread: Poll: Do you use Composer with CI4?
Post: RE: Poll: Do you use Composer with CI4?

kenjis Wrote: (04-14-2022, 11:54 PM) -- This might not be what John_Betong want to says. Installing CodeIgniter with git took 1m 57s, and installing with Composer took 16s. $ time git clone htt...
9,986 Views
14 Replies
04-15-2022, 01:22 AM
John_Betong
    Thread: Poll: Do you use Composer with CI4?
Post: RE: Poll: Do you use Composer with CI4?

@kilishan, > it was the standard to download a zip No mention of using the GitHub clone facility? Select Command line directory: Code: -- git clone https://github.com/codeigniter4/CodeIgniter4....
9,986 Views
14 Replies
04-14-2022, 03:51 PM
John_Betong
    Thread: How to access images under writable folder
Post: RE: How to access images under writable folder

Quote: -- @MGatner: I’m a fan of symlinks (assuming you aren’t on Windows). Just create a symlink in public to the uploads folder. This also helps you keep your folder permissions consistent. Obliga...
32,581 Views
14 Replies
03-30-2022, 03:50 PM
John_Betong
    Thread: Can't get my CSS to show
Post: RE: Can't get my CSS to show

Try echo base_url(); and ensure the config setting is working as expected.
4,464 Views
6 Replies
03-10-2022, 06:55 PM
John_Betong
  Photo Thread: how to mix html and php?
Post: RE: how to mix html and php?

InsiteFX Wrote: (02-05-2022, 03:08 AM) -- He's also missing the if statements right ) -- Perhaps he should try setting the following because errors would be thrown which would have to be cleared bef...
7,945 Views
14 Replies
02-05-2022, 04:07 AM
John_Betong
    Thread: how to mix html and php?
Post: RE: how to mix html and php?

@"richb201" , > Thanks. It seems phpStorm doesn't like So I tried Code: -- dataStore("cost_center")->get(0,"num_projects")>0 ;?> -- I think the syntax has an incorrect semi-colon instead of a p...
7,945 Views
14 Replies
02-04-2022, 04:08 PM
John_Betong
    Thread: how to mix html and php?
Post: RE: how to mix html and php?

@"richb201" , https://www.php.net/manual/en/language.types.string.php I started using PHP HereDoc strings and it greatly simplifies mixing PHP and HTML. PHP also has NowDoc strings but I very seldo...
7,945 Views
14 Replies
02-03-2022, 04:10 PM
John_Betong
    Thread: Composer install - extension intl error but phpinfo() says intl enabled
Post: RE: Composer install - extension intl error but ph...

@ stoofvlees The point I was trying to make was not “dodging server defaults” but to only load server settings when they are actually required. The “splash page” does not require intl, curl, mbstring...
6,126 Views
8 Replies
02-03-2022, 03:56 AM
John_Betong
    Thread: Composer install - extension intl error but phpinfo() says intl enabled
Post: RE: Composer install - extension intl error but ph...

@stoofvlees, Perhaps try the GitHub clone install, or download the GitHub Zip file and extract the contents? I prefer using git clone, it downloads the latest development version
6,126 Views
8 Replies
02-02-2022, 03:51 PM
John_Betong
    Thread: Composer install - extension intl error but phpinfo() says intl enabled
Post: RE: Composer install - extension intl error but ph...

@stoofvlees, I have just updated to the latest Ubuntu operating system and emphathise about the installation. I think that the CodeIgniter4 installation should be simplified so that the Splash Scre...
6,126 Views
8 Replies
01-31-2022, 09:46 PM
John_Betong
    Thread: Ci4 as Single Page Application (SPA)
Post: RE: Ci4 as Single Page Application (SPA)

@68thorby68, Take a look at https://github.com/ampproject Although originally created to decrease mobile rendering time it is fantastic at SPA. I used CI3 to create the following demo which...
3,563 Views
4 Replies
01-27-2022, 03:08 PM
John_Betong
    Thread: CI-4.17 - Why the extra 300Kb memory in Production?
Post: RE: CI-4.17 - Why the extra 300Kb memory in Produc...

@kenjis, I think the big difference is because I modified CI-4.15 Production mode by disabling Debug as it is not required. PHP error_reporting and logging is perfectly adequate when online and...
1,495 Views
3 Replies
01-13-2022, 11:36 PM
John_Betong
    Thread: CI-4.17 - Why the extra 300Kb memory in Production?
Post: CI-4.17 - Why the extra 300Kb memory in Production...

I have just uploaded CI-4.17 and most surprised at the differences in memory consumption: [code] CI-4.1.5: 749,136 bytes => memory_get_usage() 753,968 bytes => memory_get_peak_usage() CI-4.1.7 1,023...
1,495 Views
3 Replies
01-13-2022, 10:25 PM
John_Betong
    Thread: Unload Database
Post: RE: Unload Database

@maui82, Try setting an incorrect password and see if errors or warnings appear.
2,478 Views
5 Replies
12-17-2021, 05:38 AM
John_Betong
    Thread: CI site don't work.
Post: RE: CI site don't work.

CodeIgniter.com is running again but... logged out on my iPad tablet and unable to login. Some fancy flashing happens then rapidly disappears? I've tried a few tablet browsers and the problem is persi...
5,554 Views
3 Replies
12-12-2021, 11:06 PM
John_Betong
    Thread: Laravel Vs Codeigniter. A difficult choice
Post: RE: Laravel Vs Codeigniter. A difficult choice

iRedds Wrote: (12-05-2021, 01:01 AM) -- Choose Laravel. CI is a swamp. -- I do not understand your comment.  I’m curious, please elaborate.
5,889 Views
13 Replies
12-05-2021, 03:20 PM
John_Betong
    Thread: Laravel Vs Codeigniter. A difficult choice
Post: RE: Laravel Vs Codeigniter. A difficult choice

I recently received this message which I think sums up Laravel: Quote: -- That is one of the big problems I see with laravel. You get the whole kitchen sink whether you need it or not and there ...
5,889 Views
13 Replies
12-04-2021, 06:56 PM
John_Betong
    Thread: Best Practice - Shared Application Code > Multiple Front Ends
Post: RE: Best Practice - Shared Application Code > Mult...

Webgen Wrote: (12-02-2021, 03:56 PM) -- Thanks for the feedback. I guess a symlink is the only clean option (not messing with CI) for now. It seems a shame because injecting a few constants at the st...
4,294 Views
6 Replies
12-02-2021, 07:04 PM
John_Betong

Theme © iAndrew 2016 - Forum software by © MyBB