Welcome Guest, Not a member yet? Register   Sign In
controllers/News.php
#16

(04-29-2019, 11:06 AM)ciadmin Wrote: You have two lines with braces in your model code.
The first brace closes the constructor method.
The second brace closes the class definition, leaving the remaining methods as functions and not class methods.

It sounds like you are new to PHP and not just CodeIgniter.
You need to learn/review O-O practices in PHP.

You are correct, and you learn through your mistakes.

Now I have this question to asked you.

1) Do the model's need to be in capital letters, model/News.php ?


I want to build my very own cms for our business to record, index our products and management  the website.  And record the traffic to the website.
Reply


Messages In This Thread
controllers/News.php - by shewolf255 - 04-29-2019, 12:01 AM
RE: controllers/News.php - by ciadmin - 04-29-2019, 01:39 AM
RE: controllers/News.php - by shewolf255 - 04-29-2019, 06:21 AM
RE: controllers/News.php - by ciadmin - 04-29-2019, 06:26 AM
RE: controllers/News.php - by shewolf255 - 04-29-2019, 07:01 AM
RE: controllers/News.php - by albertleao - 04-29-2019, 07:13 AM
RE: controllers/News.php - by shewolf255 - 04-29-2019, 07:57 AM
RE: controllers/News.php - by shewolf255 - 04-29-2019, 07:48 AM
RE: controllers/News.php - by Wouter60 - 04-29-2019, 07:59 AM
RE: controllers/News.php - by ciadmin - 04-29-2019, 08:08 AM
RE: controllers/News.php - by shewolf255 - 04-29-2019, 10:45 AM
RE: controllers/News.php - by shewolf255 - 04-29-2019, 10:48 AM
RE: controllers/News.php - by Wouter60 - 04-29-2019, 08:52 AM
RE: controllers/News.php - by shewolf255 - 04-29-2019, 11:02 AM
RE: controllers/News.php - by ciadmin - 04-29-2019, 11:06 AM
RE: controllers/News.php - by shewolf255 - 04-29-2019, 02:02 PM
RE: controllers/News.php - by InsiteFX - 04-29-2019, 04:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB