We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
instead of doing that: Controller:
include MODELS . 'api/repository_locales.php'; ... include VIEWS . 'json.php';
Model:
return $json = foo();
Which includes a $json variable that we use in the view.
Let's do that: Controller:
$json = include MODELS . 'api/repository_locales.php'; ... include VIEWS . 'json.php';
return foo();
That will bring more clarity as to where this $json value is defined as it will be defined in a single file.
The text was updated successfully, but these errors were encountered:
ec5a40f
Merge pull request #731 from pascalchevrel/return_no_variable
228916b
fix #730: small refactoring of variable use in api
pascalchevrel
No branches or pull requests
instead of doing that:
Controller:
Model:
Which includes a $json variable that we use in the view.
Let's do that:
Controller:
Model:
That will bring more clarity as to where this $json value is defined as it will be defined in a single file.
The text was updated successfully, but these errors were encountered: