Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Full docs?
  • :-) People, when will be normal docs? With examples. For example, I wanted to use FILE::.
    I have right hands, but some times I do not understand why do not work any function.
    Settings - right, but do not works. 'basedir' => DOCROOT.'/assets/images/upload/', File::read_dir(DOCROOT.'/assets/images/upload/'); I am getting Fuel\Core\InvalidPathException [ Error ]: Invalid path, directory cannot be read. I tried many configurations, but it doesn't work. And this is for me big problem, therefore I should spend many times to understand how it works.
    Read raw code.
    Etc. I know, you also working some where else, but simple examples should be.
  • File::create(DOCROOT,'demo.txt'); ---- file created But to read it I should to write: File::read(DOCROOT.'/demo.txt'); According to the logic should be: File::read(DOCROOT,'demo.txt'); It is not critics, it just my thinking out loud
  • Anyone can contribute to make the docs better. Currently via a pull request on the repo, soon via our new community application (called "Fuel Depot"), where everyone can modify using simple markdown. You get a Fuel\Core\InvalidPathException if is_dir() fails on the path passed. If I try that read_dir() here, with your path and your basedir set, I don't have an issue, it just reads the directory. As to the File class API, I agree that it could be more consistent. But alas, this is the way it is, and changing it now will break existing applications, which we don't do for minor releases. So fixing this can only be done for 2.0.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion