auraphp

    1熱度

    1回答

    我是新來的現代方法的依賴注入,我試圖找出如何讓方法根據條件選擇使用哪個類。我敢打賭,我的設計結構已經關閉,但我也沒有看到如何通過配置在Aura DI中執行此操作。 這是我的靈氣配置 <?php namespace Aura\Cli_Project\_Config; use Aura\Di\Config; use Aura\Di\Container; class Common exten

    0熱度

    1回答

    我試圖獲得當前版本的使用nginx工作的Aura路由器。 我正在使用文檔中的nginx配置並試圖從https://github.com/auraphp/Aura.Router/blob/3.x/docs/getting-started.md工作中獲得關閉路由。 當我訪問http://localhost:8080/blog/12時,我收到消息「您要求博客條目0.」。 我的nginx的配置是這樣的:

    1熱度

    2回答

    我有一個使用mysqli_*()函數(實際上,它使用mysql_*()函數.gah!)的舊版應用程序。我使用aura/sqlquery作爲SQL查詢生成器。例如: $sql = (string) $select; 現在我想做的事情做一個where()一些變量綁定: $queryFactory = new Aura\SqlQuery\QueryFactory('mysql'); $select

    0熱度

    1回答

    我安裝了一個作曲家,下載的光環,創造了一個index.pxp並在其中寫道: require('vendor/autoload.php'); use Aura\Di\ContainerBuilder; $builder = new ContainerBuilder(); $di = $builder->newInstance(); $object = $di->newInstance('

    3熱度

    3回答

    我使用PHP 5.4 RC5,並通過終端 php -S localhost:8000 目前使用Aura.Router啓動服務器,並在根我已經與index.php的代碼文件 <?php $map = require '/Aura.Router/scripts/instance.php'; $map->add('home', '/'); $map->add(null, '/{:contr