Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: 2 foreach loops
Post: RE: 2 foreach loops

if in a controller you assign data in the form $data = [ 'user'=>$usr, 'first_name'=>$...
242 Views
2 Replies
06-07-2021, 03:11 AM
captain-sensible
    Thread: Slack link broken
Post: RE: Slack link broken

I just joined -its working
392 Views
6 Replies
06-06-2021, 02:11 AM
captain-sensible
    Thread: Best way to remove the public/index.php in local testing environment
Post: RE: Best way to remove the public/index.php in loc...

not sure i fully understand you but for local development say using apache(for CI4) and perhaps virtualhost approach then for instance in virtualhost entry would look like this: ......... '''''...
228 Views
2 Replies
06-06-2021, 02:02 AM
captain-sensible
    Thread: Help Needed with Documentation
Post: RE: Help Needed with Documentation

well i have half a clue with web developement and am full stack recently setting up apache on Arch Linux , with bootstrap sass and grunt task runner to convert and concatanate bootstrap sass into css...
1,181 Views
5 Replies
06-05-2021, 01:52 PM
captain-sensible
    Thread: Forum Problem
Post: RE: Forum Problem

you know its strange when you think about writing code for a blog (its in the new book by Lonnie ) then you write code to allow cooments on that blog. Its not that much of a quatum leap to go from a b...
482 Views
10 Replies
06-01-2021, 11:36 AM
captain-sensible
    Thread: CI 4 contact form with configuration
Post: RE: CI 4 contact form with configuration

well lets be generous today with some pointers. The basics are look into a simple form. It has fields with labels , i.e names The form will use "POST" to some controller. IN that controlle...
417 Views
3 Replies
04-16-2021, 02:23 PM
captain-sensible
    Thread: Controllers do not work!
Post: RE: Controllers do not work!

your using xampp ?
539 Views
2 Replies
03-21-2021, 02:35 PM
captain-sensible
    Thread: how to disable .env
Post: RE: how to disable .env

im on linux not sure about Windows; with the default install you get an "env" and if i am correct the system reads entries afting renaming to ".env". The quickest way (probably) to stop .env being...
642 Views
5 Replies
03-15-2021, 04:10 AM
captain-sensible
    Thread: Top PHP Frameworks in 2021
Post: RE: Top PHP Frameworks in 2021

not a bad article , on knowing object oriented php https://www.killerphp.com/tutorials/object-oriented-php/ i have so far not come across a better article than Stefan Mischook one either .
1,831 Views
2 Replies
02-24-2021, 01:04 PM
captain-sensible
    Thread: CI4.1.1 Config\Services::renderer() Not Found
Post: RE: CI4.1.1 Config\Services::renderer() Not Found

can you post any output from , which fails to do $view = \Config\Services::renderer(); ? i.e elaborate more , with some info from system . Do you have CI in apache, xampp or your firing up from spa...
199 Views
1 Replies
02-19-2021, 09:02 AM
captain-sensible
    Thread: Permission denied in /public/index.php on line 28
Post: RE: Permission denied in /public/index.php on line...

permissions on Linux can be tricky . For instance i had a go at serving web content from a folder called "public_html" inside my home folder. I got forbidden you do not have permission ..blah blah. Th...
852 Views
2 Replies
02-17-2021, 03:38 AM
captain-sensible
    Thread: Development on localhost
Post: RE: Development on localhost

ok, well on slackware its quite a fiddle getting apache to serve web content from a users directory from a url such as http://127.0.0.1/~andrew I had to enable LoadModule authz_host_module lib64/...
952 Views
8 Replies
02-16-2021, 10:32 AM
captain-sensible
    Thread: Development on localhost
Post: RE: Development on localhost

@insiteFX i think he was joking ! @pippucio76 are you running Linux (which distro) on bare metal or is it via virtualbox or alternative ? The way i do Ci4 development on Linux (slackware) is by web...
952 Views
8 Replies
02-11-2021, 02:05 PM
captain-sensible
    Thread: connect to sql server with sqlsrv
Post: RE: connect to sql server with sqlsrv

this might be relevant ? https://forum.codeigniter.com/thread-75877-post-376318.html#pid376318 you might also try using 192.168.1.4 in dsn at : Code: -- public $default = [ 'DSN' => '', 'h...
1,577 Views
10 Replies
02-09-2021, 03:08 AM
captain-sensible
    Thread: connect to sql server with sqlsrv
Post: RE: connect to sql server with sqlsrv

can you elaborate on that IP address your using for hostname; normally thats localhost and yours looks like the IP for a router or something ? Also did you rename env to .env ?
1,577 Views
10 Replies
02-08-2021, 07:21 AM
captain-sensible
    Thread: Email Template
Post: RE: Email Template

a simple approach perhaps might be to assign the content of your template, which can contain html syntax to a controller class member via heredoc Code: --
688 Views
4 Replies
02-08-2021, 06:24 AM
captain-sensible
    Thread: Redirect to forward slash
Post: RE: Redirect to forward slash

it may seem clearer if you look at in the context of a route in Routes.php : this is one of my routes: Code: -- $routes->get('/', 'Home::index'); -- put simply that will take affect with a u...
449 Views
1 Replies
02-04-2021, 02:37 AM
captain-sensible
    Thread: CodeIgniter v4.0.5 and v4.1.0 released
Post: RE: CodeIgniter v4.0.5 and v4.1.0 released

nc03061981 Wrote: (02-01-2021, 02:12 AM) -- Thanks, But no guide for upgrading from v4.04 to v4.1 -- i was using 4.0.4 and just ran composer on development web in apache : Code: -- bash-5.0$...
9,350 Views
42 Replies
02-01-2021, 05:09 AM
captain-sensible
    Thread: News section
Post: RE: News section

vojkoz Wrote: (01-14-2021, 10:50 AM) -- captain-sensible Wrote: (01-14-2021, 10:22 AM) -- i can only see what you have posted but index method is missing a curly brace, above that it looks un comple...
1,243 Views
6 Replies
01-14-2021, 01:20 PM
captain-sensible
    Thread: News section
Post: RE: News section

i can only see what you have posted but index method is missing a curly brace, above that it looks un complete could be: Code: -- public function index() { $model = new NewsModel...
1,243 Views
6 Replies
01-14-2021, 10:22 AM
captain-sensible

Theme © iAndrew 2016 - Forum software by © MyBB