Is there any method in Cakephp that is able to return the latest modified file in a directory? I have tried with $this->System->getLatestModifiedFile() in Cakephp Model but got Call to a member function getLatestModifiedFile() on a non-object error.
Thanks for advice there!