Common Joomla file operations and joomla operations
Today, we will introduce common methods for file operations in joomla. These methods are useful in file read/write, Image File Upload, and so on.
Jimport ('joomla. filesystem. file ');
$ J = new JFile ();
GetExt ($ file) // obtain the extension.
GetName ($ file) // get the file name
Exists ($ file) // whether the file exists
Delete ($ file) // delete an object
Copy ($ old, $ new) // copy
Upload ($ src) // upload
Write ($ file) // write a file
Read ($ file) // read an object
Move ($ old, $ new) // move a file
Transfer: http://www.111cn.net/jsp/Java/66728.htm
How does joomla call the generated cache file?
This is really a very in-depth question. I like it very much. I'm glad you can ask this question. I hope you can ask more in-depth questions about joomla. If possible, I would like to add your contact information, such as the QQ number, such as the Baidu hi bar ID number. Let's have an in-depth discussion. Although I cannot answer your questions in this depth for the moment, I also like joomla very much. I will pay attention to this question. Know the answer. Help everyone and share the internet.
In the joomla template, how does one Insert the webmaster statistics code into the homepage? How can I not see the home page files from the joomla directory?
The homepage file is in \ templates \ your Template Name \ index. php
Add the statistical code to the footer </body>.