Question

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.

No correct solution

OTHER TIPS

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?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top