Load view from Controller issue |
You can download a working ci3 news tutorial from below, you will need to change the base_url etc;
CodeIgniter 3.X News Tutorial Working. Maybe this code can help you find out what is wrong. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Update to the CI 3 News Download.
I added a contact page and upgrade it to CodeIgniter 3.1.9 Download link below: CodeIgniter 3.1.9 News Tutorial You will need to setup your base url an database I included the SQL dump for it in the root. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Thanks a lot.
I have done performed below steps in order to run the project locally but it did not work.
Please look at attachments regarding my NetBeans project setup. Any idea how to fix this one? Thanks - Hitesh
That's because I use Virtual Host file.
Either you can change the web server to your own or add the below VHOST Code. Code: #-------------------------------------------------------------- Hope that helps. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Hi there,
Man, you are a great help! I please need bit more insight. When you say " Either you can change the web server to your own " What are the steps to do it? I have installed XAMPP in my Windows 10. OR When you say " Add VHOST code " Do I need to add into C:\xampp\apache\conf\httpd.conf? OR Can I create .conf file for my every site in the localhost and reference to Apache in way so I don't need to change main httpd.conf file? Please let me know? Thanks - Hitesh
Edit the file below.
C:\xampp\apache\conf\extra\httpd-vhosts Make sure this is not remarked out in the file. NameVirtualHost *:80 At the bottom of this file add this: Include "conf/extra/vhosts/*.conf" Create a folder called vhosts under that folder create a file vhosts.conf C:\xampp\apache\conf\extra\vhosts\vhosts.conf Add the code for the vhots there. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Hi there,
Very much appreciated. I forgot to ask you that in your VHOST code there is a section for SSL certificate. How can I generate for my site (ci3news.localhost) in Windows 10 machine AND copy into the directory you suggested? SSLEngine on SSLCertificateFile "conf/ssl.crt/server.crt" SSLCertificateKeyFile "conf/ssl.key/server.key" I think that should be last part then I should be good to go. It's 1.30 am here in Sydney so going to bed now. Will check your post tomorrow morning. Thanks - Hitesh
READ:
How to test 'https' in XAMPP for localhost Google Chrome will error on it but just go to Advance and tell it that its ok! What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |