|
@@ -29,7 +29,7 @@ class AdminControl extends BaseController
|
|
|
{
|
|
|
$config_list = rkcache('config', true);
|
|
|
config($config_list, 'ds_config');
|
|
|
- $myfile = fopen(base_path() . "public/newfile.txt", "w") or die("Unable to open file!");
|
|
|
+ $myfile = fopen(base_path() . "../public/newfile.txt", "w") or die("Unable to open file!");
|
|
|
$txt = "Bill Gates\n";
|
|
|
fwrite($myfile, $txt);
|
|
|
fclose($myfile);
|