You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I'll have a component that supports different "skins", which just means that we conditionally load a view. By passing a variable to the view($pathToFile) method we lose the ability to click through to the view.
It would be amazing if the plugin could analyze the variable, and provide a drop down of any static options (like it does for other features) to allow us to select. I realize it would be impossible to handle any non-static values, and those could be ignored.
$viewPath = match ($skin) {
'baja-blast' => 'customs.baja-blast',
'code-red' => 'customs.code-red',
'non-static' => 'customs.wont-work-' . rand(1, 10), //this one would not workdefault => 'default.path',
};
returnview($viewPath);
The text was updated successfully, but these errors were encountered:
Feature Description
Sometimes I'll have a component that supports different "skins", which just means that we conditionally load a view. By passing a variable to the
view($pathToFile)
method we lose the ability to click through to the view.It would be amazing if the plugin could analyze the variable, and provide a drop down of any static options (like it does for other features) to allow us to select. I realize it would be impossible to handle any non-static values, and those could be ignored.
The text was updated successfully, but these errors were encountered: