undefined function __ when using cakephp


I've using cakephp and it declares lang strings like:

<?php __('test string') ;?>

__ is showing as an undefined function;

how do I add this as an exception to that it doesn't show as an error please?

Comment actions Permalink

PhpStorm doesn't support CakePHP officially. You may try to use : http://stackoverflow.com/a/16960985 or http://blog.hwarf.com/2011/08/configure-phpstorm-to-auto-complete.html , check if it helps.

Comment actions Permalink

I know there's no offical support. I was just wondering if there was a way to get phpstorm to ignore __() as being a problem - Ie some kind of exception list i could add it to.


Please sign in to leave a comment.