I use Netbeans 8.2 for PHP development, and was able to include code completion for Codeigniter framework.
In the controller and models - which in Codeigniter are oop - the code completion works fine.
In the views, which in Codeigniter are always written in procedural style, code completion is not available.
Here is a simple example controller (taken from CI's homepage)
<?php
class News extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('news_model'); # from DB
}
public function index()
{
$data['news'] = $this->news_model->get_news();
$this->load->view('show_news',$data);
}
}
In the according view, $data['news'] is accessible by the variable "$news". But when I type "$news" I do not have completion support.
Ideas?