I am doing the following and wanted to output the rowcount in the volt view file, can someone help me with an example.
$robots = $robots::find(); $result = $robots->rowCount();
Am I doing it correctly, please let me know and if yes, I am always getting an error if I try to use any of these in the volt with {{ result }} or with {{robots |length}}, the error is undefined variable. Please help someone.