首页
\
问答
\
删除时将log4j配置为自动创建应用程序日志文件(Configure log4j to Auto create application log files when deleted)
删除时将log4j配置为自动创建应用程序日志文件(Configure log4j to Auto create application log files when deleted)
如何在不重新启动服务器的情况下手动删除时将log4j配置为自动创建应用程序日志文件? 目前,如果有人删除了日志文件,我们必须重新启动服务器。我们正在使用websphere应用程序服务器。
How to configure log4j to Auto create application log files when deleted manually without restarting the server? Currently we have to restart the server if someone deletes the log files.We are using websphere application server.
原文:https://stackoverflow.com/questions/14918802
更新时间:2022-02-23 16:02
最满意答案
尝试这个::
return view('test')->with('datatopass', $datatopass);
并在View中访问它
<?php echo $datatopass ?>
Try this::
return view('test')->with('datatopass', $datatopass);
And in View access it as
<?php echo $datatopass ?>
相关问答
更多-
你的代码看起来很好,如果dd()没有停止执行控制器,那么另一个控制器正在执行。 所以仔细检查您的路线和控制器。 You code looks fine, if dd() doesn't stop execution of the controller, then another controller is executing. So double check your routes and controllers.
-
给一个人一条鱼,你喂他一天; 教一个人钓鱼,你喂他一辈子 这里让我说说在这种情况下如何调试(鱼)。 第一步: 确保你的电话是正确的 你可以做到 Route::get('yourcall', 'UserController@index'); 在将其传入视图之前,只需在控制器内打印一些内容即可 public function index() { echo 'Whao ! I landed correctly'; } 第2步: 确保你看到你的电话 现在让你返回视图,确保你的视图存在并且有扩展名如yourvie ...
-
PHP变量区分大小写! 你通过了sickleaves ,但在视野中你正试图sickLeaves ,这就是问题所在。 PHP variables are case sensitive! You passing sickleaves, but in view You are trying to get sickLeaves, that is the problem.
-
View中的未定义变量?(Undefined variable in View?)[2023-07-24]
看起来,你的控制器代码有问题,逻辑似乎不对,但为了克服视图问题,你可以尝试这样的事情: @if(isset($courses) && $courses->count()) //... @endif 由于$courses未定义,因此未发送。 如果你试试这个 @if(isset($courses) && $courses->count()) //... @else {{'No Courses'}} @endif 你会明白这个想法,它会让你明白你在做什么。 Looks like, yo ... -
尝试这个:: return view('test')->with('datatopass', $datatopass); 并在View中访问它 Try this:: return view('test')->with('datatopass', $datatopass); And in View access it as
-
send()的第二个参数采用包含变量名称及其值的数组。 $data = array( 'activation_email' => $user->activation_code ); 将激活码作为变量$activation_email 。 所以你可以这样做: {{ $activation_email }} 如果你更喜欢$data你可以这样做: Mail::send('emails.auth.activate', ['data' => $data], function($message) u ...
-
use App\events; public function lihat_acara() { $data['acara'] = events::all(); return view('admin.home', ['acara' => $data['acara'] ]); } 要么 use App\events; public function lihat_acara() { $data['acara'] = events::all(); return view('admin.ho ...
-
未定义的变量:模型(Undefined Variable: model)[2022-12-07]
看起来你正在粘贴_view.php。 确保将$model变量从view.php传递到_view.php ,因为在actionView()你只是将它传递给'view'。 It looks like you were pasting _view.php. Make sure you hand your $model variable from view.php to _view.php, since in actionView() you are only handing it to 'view'. -
处理未定义的变量(dealing with undefined variable)[2023-07-27]
据我所知,你唯一的问题是$checkforid 。 只需将其初始化为空数组: $checkforid = []; if(Auth::check()) { ... $checkforid[]= ... ... } 一个好的IDE会警告并告诉你“ $checkforid可能没有定义”。 As far as i see, your only problem is $checkforid. Just initialize it as an empty array: $checkforid ... -
似乎$ myalldata是一系列元素。 要访问每个,您需要在视图中使用for循环,如下所示: @foreach($myalldata as $row){{{ $row->title }}}@endforeach 您可以通过修改应用程序的app / config / app.php文件并替换来确定是否显示完整的错误跟踪 'debug' => false, 同 'debug' => true, 请记住,在生产环境中(当客户端可以访问该站点时),您将需要禁用调试模式。 I ...