02-21-2012, 02:55 AM
[eluser]@robertotra[/eluser]
[quote author="skcin7" date="1329815327"] ...I can't seem to figure out a way that controllers and models would both be able to work with each other to write to the $errors[] array, and have the errors (if any) sent to the view to properly be displayed...[/quote]
Maybe with a multidimensional session array:
R.
[quote author="skcin7" date="1329815327"] ...I can't seem to figure out a way that controllers and models would both be able to work with each other to write to the $errors[] array, and have the errors (if any) sent to the view to properly be displayed...[/quote]
Maybe with a multidimensional session array:
Code:
session_start();
$_SESSION['errors']['controller'][] = 'error caught in the controller';
$_SESSION['errors']['model'][] = 'error caught in the model';
R.