Why Laravel can't find controller using "/"? [closed] - php

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I'm facing issues on laravel - I have route in my web.php file:
Route::get('/logout', 'Auth/LoginController#logout')
and when I'm trying to use it I'm receiving alert:
Target class [App\Http\Controllers\Auth/LoginController] does not exist.
changing route to Auth\LoginController#logout resolves the issue - but I think this is wrong solution.
and yes- I'm running it on windows so in theory \ is correct but previously in other projects laravel didn't had this issue

It's correct solution, that's how PHP is declare it's namespaces

Related

Laravel 5.3 error-Use of undefined constant kadmin - assumed 'kadmin' (View: C:\wamp64\www\admin\resources\views\kadmin\layout.blade.php) [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
I am using laravel 5.3 to build an a page but after specifying a route and using it in a browser, the following error appears
"Use of undefined constant strah - assumed 'strah' (View: C:\wamp64\www\admin\resources\views\strah\layout.blade.php)".
I have created a layout.blade.php file and has the following line which i think is the root cause
#include(strah.header.header)
Do I have any wrong syntax?
What can I do to get it running?
Route::get('/dashboard',function() {
return view('strah.layout');
});
You have to enclose the include value within quotes. Try :
#include('strah.header.header')
Change
#include(strah.header.header)
to
#include("strah.header.header")

SQL UPDATE with PDO connection [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I get this error while trying to update. The query works in phpmyadmin just fine.
Was a bind error, all fixed thanks to the great people here.
That's because you've got typo in your parameters.
You are using :serreceivetxt instead of :userreceivetxt and :serreceiveemail instead of :userreceiveemail.

PHP error for login session [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I have an error in a single line of code but I can't seem to find it. I've tried changing the quotes to all match but that doesn't do anything. Please help. here is where the error is
$managerID = preg_replace('#[^0-9]#i',",$_SESSION["id"]);
try this :
$managerID = preg_replace('#[^0-9]#i','',$_SESSION["id"]);
btw i dont know what you are trying to do i just solved your syntax error ;)

delete() versus unlink() to delete file in PHP [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
The title says it all. What would be the most performance-friendly way to delete a file? Using PHP's unlink()-function, or PHP's delete()-function?
There is no delete function to delete files. As the documentation states:
This is a dummy manual entry to satisfy those people who are looking for unlink() or unset() in the wrong place.
The links on that page will lead you to the correct function for deleting a variable (unset) or deleting a file (unlink).

Domain Mapping with Zend [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I have been trying to develop a domain mapping service using Zend. So, I need to access the $_SERVER['HOST'] parameter during preDespatch , but If I var_dump($_SERVER) in a Plugin's preDispatch() function it does return NULL. Can someone tip off where to do that or how ?
If it's $_SERVER['HTTP_HOST'] that you want, you can try this:
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
$request->getHttpHost();
}

Categories