Error: Using $this when not in object context: Componente no encontrado.