undefined function __ when using cakephp

hi

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?

0
3 comments
Avatar
Liubov Melnikova

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.

0
Avatar
Permanently deleted user

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.

0
Avatar
Liubov Melnikova

You can suppress it for the file: http://i.imgur.com/QbXeEMz.png

0

Please sign in to leave a comment.