成人无码视频,亚洲精品久久久久av无码,午夜精品久久久久久毛片,亚洲 中文字幕 日韩 无码

資訊專(zhuān)欄INFORMATION COLUMN

Luthier CI 命令行 Command line

yimo / 956人閱讀

摘要:寫(xiě)入權(quán)限確保該文件夾具有寫(xiě)入權(quán)限,以便這些命令正常工作僅適用于開(kāi)發(fā)出于安全原因,如果您的應(yīng)用程序配置了或環(huán)境,則將禁用這些命令激活默認(rèn)情況下禁用工具。

命令行 Command line 內(nèi)容 Contents

介紹 Introduction

句法 Syntax

使用CLI路由 Using CLI routes

內(nèi)置CLI工具 Built-in CLI tools

激活 Activation

"luthier make"命令 "luthier make" command

"luthier migrate"命令 "luthier migrate" command

介紹 ( Introduction )

感謝Luthier CI,您可以通過(guò)命令行界面(CLI)利用框架提供的各種可能性。

句法 Syntax

CLI路由的語(yǔ)法類(lèi)似于HTTP和AJAX路由。必須在application/routes/cli.php文件中定義CLI路由

例:


CLI路由共享與HTTP / AJAX對(duì)應(yīng)的相同屬性,您可以在此處了解有關(guān)它們的更多信息。

使用CLI路由 Using CLI routes

CLI路由共享與HTTP / AJAX對(duì)應(yīng)的相同屬性,您可以在此處了解有關(guān)它們的更多信息。

例:

$ php path/to/app/index.php [segment1] [segument2] ... [segmentN]

所以,有這條路線(xiàn):

Route::cli("make/controller/{name}", function($name){
    echo "Making the controller " . $name ;
});

它可以通過(guò)運(yùn)行訪問(wèn):

$ php path/to/app/index.php make controller test

結(jié)果將是:

Making the controller test
內(nèi)置CLI工具 Built-in CLI tools

從版本0.2.0開(kāi)始,Luthier CI附帶了幾個(gè)命令行工具,可以幫助您完成一些重復(fù)性任務(wù)。

寫(xiě)入權(quán)限

確保該application文件夾具有寫(xiě)入權(quán)限,以便這些命令正常工作

僅適用于開(kāi)發(fā)

出于安全原因,如果您的應(yīng)用程序配置了testing或production環(huán)境 ,則將禁用這些命令

激活 Activation

默認(rèn)情況下禁用CLI工具。要激活它們,只需在路線(xiàn)文件中添加幾行



  luthier make command

這允許生成各種各樣的框架文件。

句法:

$ php index.php luthier make [resource] [name] [type?(sequenatial|date)=date]

其中resource是資源的類(lèi)型(controller,model,helper,library,middleware或migration),name是資源的名稱(chēng)和type(在創(chuàng)建遷移的情況下)被遷移以產(chǎn)生類(lèi)型。

例子:

// Creating a controller:
$ php index.php luthier make controller ControllerName

// Creating a model:
$ php index.php luthier make model ModelName

// Creating a library:
$ php index.php luthier make library LibraryName

// Creating a helper:
$ php index.php luthier make helper HelperName

// Creating a middleware:
$ php index.php luthier make middleware MiddlewareName

// Creating a migration (by default, migrations are created by date)
$ php index.php luthier make migration create_users_table
$ php index.php luthier make migration create_users_table date
$ php index.php luthier make migration create_users_table sequential
luthier migrate command

運(yùn)行(或回滾)遷移。

句法

$ php index.php luthier migrate [version?=latest]

version要運(yùn)行的遷移的版本在哪里。如果省略,它將繼續(xù)遷移到最新的可用版本。

也可以使用以下特殊值之一version:

reverse: 撤消所有遷移

refresh: 撤消所有遷移,然后繼續(xù)遷移到最新的可用版本

例子:

$ php index.php luthier migrate reverse
$ php index.php luthier migrate refresh

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://m.hztianpu.com/yun/31397.html

相關(guān)文章

  • Luthier CI 路由 Routes

    摘要:使用時(shí),必須為每個(gè)路由定義接受的謂詞,并且任何與這些參數(shù)不匹配的請(qǐng)求都將生成錯(cuò)誤。使用,可以使用匿名函數(shù)作為控制器,甚至可以在不使用單個(gè)控制器的情況下構(gòu)建完整的應(yīng)用程序。通過(guò)使用您告訴的方法,該路由將在請(qǐng)求下可用。 路由 ( Routes ) 內(nèi)容 ( Contents ) 介紹 Introduction 路由類(lèi)型 Route types 句法 Syntax 命名空間 Nam...

    RichardXG 評(píng)論0 收藏0
  • Luthier CI安裝 Installation

    摘要:安裝內(nèi)容要求安裝獲得啟用自動(dòng)加載和掛鉤將與您的應(yīng)用程序連接初始化要求安裝獲得需要通過(guò)安裝。編寫(xiě)權(quán)限如果在創(chuàng)建基本文件期間出現(xiàn)錯(cuò)誤,則可能是由于權(quán)限不足。確保該文件夾具有寫(xiě)入權(quán)限 安裝 ( Installation ) 內(nèi)容 ( Contents ) 要求 Requirements 安裝 Installation 獲得Luthier CI Get Luthier CI 啟用Co...

    inapt 評(píng)論0 收藏0
  • Luthier CI 簡(jiǎn)單的認(rèn)證 SimpleAuth

    摘要:訪問(wèn)控制列表的配置與訪問(wèn)控制列表使用的類(lèi)別和權(quán)限類(lèi)別組的名稱(chēng)和的關(guān)聯(lián)排列。 簡(jiǎn)單的認(rèn)證 SimpleAuth 內(nèi)容 Contents 介紹 Introduction 安裝 Installation 第1步:復(fù)制所需的文件 Step 1: Copy the required files 第2步:安裝數(shù)據(jù)庫(kù) Step 2: Install the database 第3步:定義...

    Scorpion 評(píng)論0 收藏0
  • 關(guān)于Luthier CI

    摘要:歡迎關(guān)于是的一個(gè)插件,增加了有趣的功能,旨在簡(jiǎn)化大型網(wǎng)站和的構(gòu)建。它是為了盡可能地與框架集成,因此在安裝后,應(yīng)用程序中已存在的所有內(nèi)容應(yīng)該繼續(xù)正常工作。在大多數(shù)情況下,安裝不會(huì)超過(guò)分鐘社區(qū)和支持要報(bào)告錯(cuò)誤并提出更改,請(qǐng)?jiān)L問(wèn)上的存儲(chǔ)庫(kù) 歡迎 關(guān)于Luthier CI Luthier CI是CodeIgniter的一個(gè)插件,增加了有趣的功能,旨在簡(jiǎn)化大型網(wǎng)站和API的構(gòu)建。 它是為了盡可能...

    lk20150415 評(píng)論0 收藏0
  • Luthier CI 認(rèn)證 Authentication

    摘要:認(rèn)證介紹包含構(gòu)建用戶(hù)身份驗(yàn)證系統(tǒng)所需的所有工具。不幸的是,它缺乏易于實(shí)現(xiàn),維護(hù)和擴(kuò)展的集成接口或庫(kù)。激活作為可選模塊,必須首先激活認(rèn)證功能。它專(zhuān)為最常見(jiàn)的身份驗(yàn)證設(shè)計(jì)通過(guò)表單和數(shù)據(jù)庫(kù)進(jìn)行傳統(tǒng)登錄。 認(rèn)證 Authentication 介紹 Introduction CodeIgniter包含構(gòu)建用戶(hù)身份驗(yàn)證系統(tǒng)所需的所有工具。不幸的是,它缺乏易于實(shí)現(xiàn),維護(hù)和擴(kuò)展的集成接口或庫(kù)。 Lut...

    FrancisSoung 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

閱讀需要支付1元查看
<