Welcome Guest, Not a member yet? Register   Sign In
can't create instance of a model class in models from controller class
#4

It maybe the way your Virtual Host is setup.

I' am on Windows 10 Pro x64 using XAMPP this is how I setup my vhosts for http: and https:

Code:
#--------------------------------------------------------------
# CI4 Development Tutorial News
#--------------------------------------------------------------

#--------------------------------------------------------------
# HTTP:
#--------------------------------------------------------------
<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/ci4tutorial/public_html"
    ServerName ci4tut.local
    ServerAlias ci4tut.local
    <Directory "C:/xampp/htdocs/ci4tutorial/public_html">
        Order allow,deny
        Allow from all
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

#--------------------------------------------------------------
# HTTPS:
#--------------------------------------------------------------
<VirtualHost *:443>
    DocumentRoot "C:/xampp/htdocs/ci4tutorial/public_html"
    ServerName ci4tut.local
    ServerAlias ci4tut.local
    SSLEngine on
    SSLCertificateFile "conf/ssl.crt/server.crt"
    SSLCertificateKeyFile "conf/ssl.key/server.key"
    <Directory "C:/xampp/htdocs/ci4tutorial/public_html">
        Options All
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

#--------------------------------------------------------------

You will notice that I use public_html not the standard public folder because that's the
way my live host is setup.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: can't create instance of a model class in models from controller class - by InsiteFX - 11-12-2019, 12:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB