pbyrne84 / DynamicReturnTypePlugin

135 stars 7 forks source link

File path string support #53

Open vlakarados opened 8 years ago

vlakarados commented 8 years ago

Maybe it's out of scope of this plugin, but adding support for template engines would be great. Take PHP Plates for example, the first example:

// Create new Plates instance
$templates = new League\Plates\Engine('/path/to/templates');

// Render a template
echo $templates->render('profile', ['name' => 'Jonathan']);

Pressing CTRL+B while the cursor is on profile string would open the file just like it would if we would press it in the statement:

require('/path/to/templates/profile.php');

Would surely help working with frontend files, etc.

splitice commented 8 years ago

I have been investigating options for this reason too.

Its possibly outside the scope of this project but being able to define a mapping say something like

For file1.php the variable $_->var['test'] is a type of AnExampleType.