I am trying to return errors back to my view, this is part of my controller TestcategoryController
$rules =array(
\'name\' => \'required\'
If you get nothing in your case, than it means you have overridden your $errors object with something else or with empty object - check your code and data you pass to the views. Your code is perfectly valid and works good - I've tested it locally. Maybe, you passed empty $errors object to your subview, but in other views the correct object is used.