Posted August 7th, 2012 by Gary the Llama
I just recently downloaded the trial and it's met all of my needs except I can't figure out how to enable Intellisense for my model's methods from my controller. Here's some code.
I've got a really simple model:
<?php
class Test_model extends CI_Model
{
function __construct()
{
parent::__construct();
}
function
Test()
{
// ...
}
}
?>And here's my simple controller:
<?php
class Welcome extends Controller
{
function Welcome()
{
parent::Controller();
$this->load->model('Test_model', 'testmodel');
}
function index()
{
// Intellisense does not pick up testmodel or its methods. Any way to get this working?
$this->testmodel->Test();
}
}
?>Any ideas? Do I need to do something else to get it to work? This would be a no brainer purchase if I could get Intellisense working.
Edit: Also, I have no idea why it's putting "function Test()" on two different lines. My code is not formatted this way, but the code tags are doing it on this site. Weird.