Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]Model problem
#21

[eluser]Redwhirl[/eluser]
@mawi27

I used simple quotes, not accent symbols, these are put by CodeLobster Php Edition
#22

[eluser]kaejiavo[/eluser]
ok. maybe it is only displayed wrong in this forum when you are not using the code formatting.
#23

[eluser]Redwhirl[/eluser]
I'm looking further tomorrow, by making a fresh CI install

Thanks for all the help
#24

[eluser]Redwhirl[/eluser]
Hi,

After a brand new installation, everything seems to be ok

Thanks for all the help

Have a good day
#25

[eluser]Unknown[/eluser]
I actually had the exact same problem, but i found the correct solution for it (reinstall is never optimal).

First of all, the documentation sample for the model wasnt wrapped in a <?php ?> block, so the documentation needs to change. Noobs trying to cut/past it as a model sample will have all sorts of issues...

So, to fix the issue, I went in and added this to the top of the file:

<? php

And from looking at the same code that was posted, this user did the same thing.

It needs to be changed to:
<?php
(remove the space)

Suddenly the odd parsing problem went away, and it no longer fails to parse the class. Without the correct header, it was interpreting this whole file as html.

Cheers.




Theme © iAndrew 2016 - Forum software by © MyBB