作为php的新手和搜索引擎拥有者,我会经历很多令人头疼的事情。我想创建自己的搜索引擎。我正在尝试用PHP和MYSQL创建一个最初编码的测试版,但最终我想学习C++,这样我就可以创建我自己的表格/搜索系统,就像谷歌的Bigtable一样。我的代码应该在这篇文章的某个地方。有人能帮我写代码吗?
The "PAGE" that does all the work
<?php
$query = $_GET['S'];
$con = mysql_connect("localhost","
如果我想测试我的Auth页面,我会得到以下错误:
Trying to get property of non-object (View: C:\xampp\htdocs\system\app\views\home.blade.php)
这在我的home.blade.php页面上:
<?php
$username = Auth::user()->username;
$id = Auth::id();
if (Auth::check()) {
?>
Hey, if you see this, than you have been logged in
当我试图从控制器返回一个PHP视图时,我总是会得到以下错误:
The template "AuthBundle::login.php" does not exist.
500 Internal Server Error - InvalidArgumentException
控制器如下所示:
<?php
namespace AuthBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\HttpFoundation\Reque