mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Proper error message when fixture controller is called without input
before: failed with undefined index PHP error now: fail with proper error complaining about missing argument.
This commit is contained in:
@ -100,7 +100,7 @@ class FixtureController extends Controller
|
|||||||
*
|
*
|
||||||
* @throws Exception if the specified fixture does not exist.
|
* @throws Exception if the specified fixture does not exist.
|
||||||
*/
|
*/
|
||||||
public function actionLoad()
|
public function actionLoad($fixturesInput)
|
||||||
{
|
{
|
||||||
$fixturesInput = func_get_args();
|
$fixturesInput = func_get_args();
|
||||||
$filtered = $this->filterFixtures($fixturesInput);
|
$filtered = $this->filterFixtures($fixturesInput);
|
||||||
|
Reference in New Issue
Block a user