Welcome Guest, Not a member yet? Register   Sign In
...undefined property
#21

[eluser]drseuss[/eluser]
Started with 2.0.0
Yesterday I installed CI 2.0.1 and still have the same errors now
#22

[eluser]InsiteFX[/eluser]
It could be, I use XAMPP very easy install and configures everything for you!

If you decide to go with XAMPP and your on a Windows system make sure you install it to c:\xammp there is a problem with it going into the c:\Programs Files

The install version 1.7.3 has a bug in it that will give you an error with the control panel! To get around this you will need to download the full .zip version, unzip it and copy the whole xammp directory to c:\

Then goto the xampp directory and run xampp_setup.bat

If you have problems let me know!

Download XAMMP

InsiteFX
#23

[eluser]vihumize[/eluser]
This reordering models, autoload in config. qeu put the account_model before all
#24

[eluser]InsiteFX[/eluser]
He's loading the Model in his Controller not autoloading it!

He has an Installation problem because it runs on my system!

InsiteFX
#25

[eluser]vihumize[/eluser]
test!!!
#26

[eluser]drseuss[/eluser]
I've installed XAMPP and still no luck -.-
I think I will just try to recode my account controller and model because everything else survived the copy over.
#27

[eluser]InsiteFX[/eluser]
@drseuss

Start with his and make sure it runs first! This is what worked.

Controller:
Code:
class Account extends CI_Controller {

    function index()
    {
        $this->load->model('account_model');

        $data['error'] = "Bad login information supplied. <br />";

        $this->load->view('your_view', $data);

    }

}

Model:
Code:
class Account_model extends CI_Model {

    function login()
    {
       return true;
    }

}

You do not need Constructor if they are not being used!

InsiteFX
#28

[eluser]drseuss[/eluser]
The account model is loading.
In the constructor I added
Code:
echo 'Account Model loaded';

and it echoed out like it should have...
It's like it doesn't understand the name of the class when I go to use it

Code:
$this->load->model('account_model', 'am');

        $query = $this->am->login();

even giving it another name doesn't work
#29

[eluser]InsiteFX[/eluser]
Thats weird, it runs on my system fine!

Did you change the controller login to index like above?

InsiteFX
#30

[eluser]drseuss[/eluser]
Yea... no matter what I do it wont work.
I'll just start over. Thanks for your help




Theme © iAndrew 2016 - Forum software by © MyBB