You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Joomla! General Development
Hi,
I'm just writing a joomla template for Joomla 4. I remember in Joomla 3 there was a method in file called File::read - of course I know file_get_contents does pretty much the same thing but I like to use the official Joomla methods.
I noticed in the Joomla documentation Joomla 4's file class has everything except reading a file - I thought maybe it's something someone missed off the API documentation but when trying to use File::read I get an error that this method doesn't exist.
Does anyone know any reason that reading a file was taken out of the file class? Did someone just forget to implement it or was it just assumed that most people would use file_get_contents anyway or is there some other better method for reading a file?
jms
unread,
Oct 2, 2021, 5:31:11 AM10/2/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to joomla-de...@googlegroups.com
See in J3 file.php
@since 1.7.0
* @deprecated 4.0 - Use the native file_get_contents() instead.