

To the location it was created, in this case index method in theĬtrl+ Click on this method link will bring you right to the method To fix thisĭocumenting this way not only fixes the phpStorm error/warning butĪlso gives us documentation popup for $test.

In phpStorm $test will be highlighted as an undefined var. We added a data array to the view the CI way. $this->load->view('welcome_message', $data) $data = 'Testing vars in CodeIgniter! This is from $data.' Quoting once again from the original source for easy reference and preservation herein :Ĭode Completion in Views and fixing undefined vars.Įxample controller code.
#Phpstorm codeigniter code#
It additionally explains how we can achieve code completion in views and fix for undefined vars. I consider the solution in the link better because it explains the rationale behind the steps performed. Marking those files as plain text stops phpStorm from indexing them as

Mark as Plain Text /system/core/Controller.php

Quoting from therein which should be read in continuation of the answer by Sabir. I found a better solution herein - and coincidentally it is from the same author/project owner Jeff Behnke. * CI_Profiler $profiler This class enables you to display benchmark, query, and other data in order to help with debugging and optimization.Answering to a very old but still pertinent question. * CI_Pagination $pagination Pagination Class * CI_Output $output Responsible for sending final output to the browser * CI_Model $model CodeIgniter Model Class * CI_Migration $migration All migrations should implement this, forces up() and down() and gives access to the CI super-global * CI_Loader $load Loads framework components * CI_Javascript $javascript Javascript Class * CI_Input $input Pre-processes global input data for security * CI_Image_lib $image_lib Image Manipulation class * CI_Hooks $hooks Provides a mechanism to extend the base system without hacking * CI_Form_validation $form_validation Form Validation Class * CI_Exceptions $exceptions Exceptions Class * CI_Encryption $encryption Provides two-way keyed encryption via PHP's MCrypt and/or OpenSSL extensions * CI_Encrypt $encrypt Provides two-way keyed encoding using Mcrypt * CI_Email $email Permits email to be sent using Mail, Sendmail, or SMTP
#Phpstorm codeigniter driver#
* CI_Driver_Library $driver Driver Library Class * CI_DB_utility $dbutil Database Utility Class * CI_DB_mysql_driver|CI_DB_query_builder $db This is the platform-independent base Query Builder implementation class * CI_DB_forge $dbforge Database Forge Class * CI_Controller $controller This class object is the super class that every library in CodeIgniter will be assigned to * CI_Config $config This class contains functions that enable config files to be managed * CI_Calendar $calendar This class enables the creation of calendars Memory consumption can also be displayed. * CI_Benchmark $benchmark This class enables you to mark points and calculate the time difference between them. * Library_name $library_name Library description * To enable code completion to your own libraries add a line above each class as follows: * PhpStorm Code Completion to CodeIgniter + HMVC Die( 'This file is used for development purposes only.')
