public function putContents($file, $contents, $flag = null, $context = null)
    {
        $file = $this->basePath.'/'.ltrim($file, '/\\');

        return file_put_contents($file, $contents, $flag, $context);
    }
public function putContents($file, $contents, $flag = null, $context = null)
    {
        $file = $this->basePath.'/'.ltrim($file, '/\\');

        return file_put_contents($file, $contents, $flag, $context);
    }
public function putContents ( $ file , $ contents , $ flag = null , $ context = null ) { $ file = $ this -> basePath . '/' . ltrim ( $ file , '/\\' ) ; return file_put_contents ( $ file , $ contents , $ flag , $ context ) ; }
Put the content of file of the path
@param string file name
@param string $contents
@param int $flag
@param resource $context
@return mixed file contents
Put the content of file of the path