Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #16969
| Path | csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
| Newsgroups | comp.lang.php |
| Subject | Re: Class 'Model' not found |
| Date | Sun, 21 Aug 2016 19:36:08 +0200 |
| Organization | solani.org |
| Lines | 26 |
| Message-ID | <npcoph$l3m$1@solani.org> (permalink) |
| References | <b08fa2e1-a17e-4bdf-86e0-aa65f96eb98a@googlegroups.com> <1563ad73-c46d-487f-84e0-a80a1217f2db@googlegroups.com> <e1u1vrFu2h2U1@mid.individual.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | solani.org 1471800945 21622 eJwFwYEBwCAIA7CXhqWA50wp/59gQoTFTQ+Gczh/s6WsApKysjh7bvesZtA+eS5BQGOfOfYAJ4oRbg== (21 Aug 2016 17:35:45 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Sun, 21 Aug 2016 17:35:45 +0000 (UTC) |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
| Cancel-Lock | sha1:B42lz3lL7bi/UPj6TLqr9DGZa+I= |
| X-NNTP-Posting-Host | eJwFwQkBACAIBLBKyCfEOQT6R3Az8ePvqpurra0Aq6hB50QRF+Vx3q7YFuNACVmM1rtYJD48phJD |
| X-User-ID | eJwNxsEBwCAIA8CVaoFQxyFg9h/B3uvCsNDpCHgoRAbs5J8i076zNvCMiqJ3JisVveXD99jgAjmFEls= |
| In-Reply-To | <e1u1vrFu2h2U1@mid.individual.net> |
| Xref | csiph.com comp.lang.php:16969 |
Show key headers only | View raw
On 21.08.2016 at 18:08, J.O. Aho wrote: > On 08/21/16 16:43, M desinger wrote: > >> Full code index.php >> >> <?php >> >> include './application/model/model.php'; >> include './application/config/system.php'; >> include './application/config/language.lv.php'; >> >> 12 line ---> $class = new Model(); > > Are you sure it's called Model and nothing else like model? PHP is case-insensitive wrt. class names, so if the class would have been defined as `model` the code would work nonetheless. If the name is something else altogether, that would cause issues, though. Another possibility is that a file couldn't be included. Check the error_logs, or consider to use `require` instead of `include`. -- Christoph M. Becker
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Class 'Model' not found M desinger <info.nez@gmail.com> - 2016-08-21 07:35 -0700
Re: Class 'Model' not found M desinger <info.nez@gmail.com> - 2016-08-21 07:36 -0700
Re: Class 'Model' not found M desinger <info.nez@gmail.com> - 2016-08-21 07:43 -0700
Re: Class 'Model' not found "J.O. Aho" <user@example.net> - 2016-08-21 18:08 +0200
Re: Class 'Model' not found "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-08-21 19:36 +0200
Re: Class 'Model' not found Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-22 20:56 +0200
Re: Class 'Model' not found Jerry Stuckle <jstucklex@attglobal.net> - 2016-08-22 19:08 -0400
Re: Class 'Model' not found Matthew Carter <m@ahungry.com> - 2016-08-23 01:23 -0400
Re: Class 'Model' not found Jerry Stuckle <jstucklex@attglobal.net> - 2016-08-23 08:07 -0400
Re: Class 'Model' not found Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-27 14:26 +0200
Re: Class 'Model' not found Jerry Stuckle <jstucklex@attglobal.net> - 2016-08-27 10:13 -0400
Re: Class 'Model' not found Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-28 02:12 +0200
Re: Class 'Model' not found Jerry Stuckle <jstucklex@attglobal.net> - 2016-08-27 20:32 -0400
Re: Class 'Model' not found Matthew Carter <m@ahungry.com> - 2016-08-28 00:00 -0400
Re: Class 'Model' not found Jerry Stuckle <jstucklex@attglobal.net> - 2016-08-28 08:40 -0400
Re: Class 'Model' not found Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-30 11:39 +0200
Re: Class 'Model' not found Jerry Stuckle <jstucklex@attglobal.net> - 2016-08-30 07:41 -0400
Re: Class 'Model' not found Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-30 14:41 +0200
Re: Class 'Model' not found Jerry Stuckle <jstucklex@attglobal.net> - 2016-08-30 09:02 -0400
Re: Class 'Model' not found Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-30 15:36 +0200
Re: Class 'Model' not found Jerry Stuckle <jstucklex@attglobal.net> - 2016-08-30 10:39 -0400
Re: Class 'Model' not found Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-30 11:35 +0200
Re: Class 'Model' not found M desinger <info.nez@gmail.com> - 2016-08-30 14:25 -0700
Re: Class 'Model' not found Gregor Kofler <usenet@gregorkofler.com> - 2016-08-31 00:35 +0200
Re: Class 'Model' not found M desinger <info.nez@gmail.com> - 2016-08-30 16:34 -0700
Re: Class 'Model' not found Jerry Stuckle <jstucklex@attglobal.net> - 2016-08-30 19:58 -0400
csiph-web