Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:ci4 [2022/05/20 09:26] – [Hello world] darron | tools:ci4 [2022/08/19 12:24] (current) – [Resources] darron | ||
---|---|---|---|
Line 19: | Line 19: | ||
< | < | ||
- | apt install apache2 php php-cli php-mbstring php-intl php-curl php-json php-mysqlnd | + | apt install apache2 php php-cli php-mbstring php-intl php-curl php-json php-mysqlnd |
</ | </ | ||
Line 37: | Line 37: | ||
< | < | ||
- | apt-get install default-mysql-server | + | apt-get install default-mysql-server |
</ | </ | ||
Line 54: | Line 54: | ||
mkdir -p / | mkdir -p / | ||
cd / | cd / | ||
- | wget https:// | + | wget https:// |
- | unzip ci4.zip | + | unzip ci4.2.4.zip |
- | mv codeigniter4-CodeIgniter4-202f41a | + | mv codeigniter4-CodeIgniter4-* hostname.kewl.org |
cd hostname.kewl.org | cd hostname.kewl.org | ||
chown www-data: | chown www-data: | ||
</ | </ | ||
+ | Warning: 4.1 would auto-detect routes but this is not the case with 4.2. | ||
===Configure apache=== | ===Configure apache=== | ||
Line 102: | Line 103: | ||
=== Hello world==== | === Hello world==== | ||
- | ==Create controller== | + | ==Controller== |
< | < | ||
Line 123: | Line 124: | ||
</ | </ | ||
- | ==Create views== | + | ==Index view== |
- | + | ||
- | Index view | + | |
< | < | ||
Line 147: | Line 146: | ||
</ | </ | ||
- | Controller view | + | ==Controller view== |
< | < | ||
Line 162: | Line 161: | ||
</ | </ | ||
- | ==Visit URL== | + | ==Route== |
+ | |||
+ | vi app/ | ||
+ | < | ||
+ | $routes-> | ||
+ | </ | ||
+ | |||
+ | ==URL== | ||
< | < | ||
Line 168: | Line 174: | ||
</ | </ | ||
+ | ===Resources=== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// |