Do you have the check box set in front of your template in PHP > Editor > Templates ? Did you set the "php" context on your template?
Zend Studio Surround selected with php call
-
30-09-2022 - |
Domanda
I work with Zend Studio 10.1. I have many tags like:
<span>Days</span>
What I want to do is select Days and surround it like:
<span><?php echo $this->_('Days'); ?></span>
And because I use it a lot, I need a shortcut for this. I have tried to do it by code template like:
<?php echo $$this->_(${word_selection}); ?>${cursor}
But when I try to invoke template list in editor (Ctrl+Space on selected text) it states No Template proposals. I would appreciate your help.
Nessuna soluzione corretta
Altri suggerimenti
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow