Welcome Guest, Not a member yet? Register   Sign In
loading model result error
#11

[eluser]roothacker[/eluser]
[quote author="mariuskmc" date="1298138012"]must have <?php in model[/quote]
its there
Code:
<?php
class site extends CI_Controller
{
    function index()
    {
        $this->load->model('Site_model');
        $this->load->view('home');
    }
    function about()
    {
        $this->load->view('about');
    }
}
#12

[eluser]mariuskmc[/eluser]
<?php

what you sent was not.
Was <php

Smile in model
#13

[eluser]roothacker[/eluser]
[quote author="mariuskmc" date="1298138697"]&lt;?php

what you sent was not.
Was <php[/quote]

copy paste problem sorry for that I have also uploaded my code at http://www.box.net/shared/xnejcl0oxo please check
#14

[eluser]mariuskmc[/eluser]
Code:
<php
class Site_model extends CI_Model {

    function __construct()
    {
        parent::__construct();
    }
    function GetAll()
    {
        $query = $this->db->get('test', 10);
        return $query->result();
    }
}

?&gt;

IN MODEL CHANGE <php to &lt;?php
#15

[eluser]roothacker[/eluser]
error gone thanks mariuskmc
#16

[eluser]mariuskmc[/eluser]
with pleasure




Theme © iAndrew 2016 - Forum software by © MyBB