Phalcon Developer Tools

Source: Internet
Author: User

This article is excerpted from "Netkiller PHP Codex"

Http://netkiller.github.io/php/index.html


8.4.1.4. Phalcon Developer Tools
# pear channel-discover pear.phalconphp.com# Pear Install Phalcon/devtools

Run the Phalcon test if it is installed correctly

# Phalconphalcon DevTools (2.0.7) help:lists the commands availables in Phalcon devtoolsavailable Commands:commands (al IAS of:list, enumerate) controller (alias Of:create-controller) model (alias Of:create-model) All-models (alias of: Create-all-models) Project (alias Of:create-project) Scaffold Migration Webtools
8.4.2. DevTools8.4.2.1. Creating a Project
# phalcon project --helpphalcon devtools  (2.0.7) help:  creates a  Projectusage:  project [name] [type] [directory] [enable-webtools]arguments:   helpShows this help textExample  phalcon project store  simpleoptions: --name                name of the new project --enable-webtools    determines  if webtools should be enabled [optional] --directory=s         base path on which project will be created  [optional] --type=s              type of the application to be generated  (micro, simple,  Multi-module)  --TEMPLATE-PATH&NBSp;     specify a template path [optional] --use-config-ini      use a ini file as configuration file [ optional] --trace               shows the trace of the framework in case of exception. [ optional] --help                shows this help

To create a test project

# Phalcon Project Testphalcon DevTools (2.0.7) success:controller "Index" was successfully created. Success:project "Test" was successfully created.
[[Email protected] example.com]# phalcon project www.example.comphalcon devtools   (2.0.7)   Success: Controller  "index"  was successfully created.   Success: Project  "www.example.com"  was successfully created. [[email protected] example.com]# find www.example.com/www.example.com/www.example.com/ appwww.example.com/app/logswww.example.com/app/viewswww.example.com/app/views/indexwww.example.com/app/views/ index/index.phtmlwww.example.com/app/views/layoutswww.example.com/app/views/index.phtmlwww.example.com/app/ configwww.example.com/app/config/config.phpwww.example.com/app/modelswww.example.com/app/ controllerswww.example.com/app/controllers/controllerbase.phpwww.example.com/app/controllers/ indexcontroller.phpwww.example.com/publicwww.example.com/public/imgwww.example.com/public/csswww.example.com/ Public/tempwww.example.com/public/fileswww.example.com/public/jswww.example.com/public/index.phpwww.example.com/public/.htaccesswww.example.com/.phalconwww.example.com/. Htaccesswww.example.com/index.html
8.4.2.2. Creating a Controller
# Phalcon Controller Samplephalcon DevTools (2.0.7) Success:controller "Sample" was successfully created.
# cat App/controllers/samplecontroller.php<?phpclass Samplecontroller extends \phalcon\mvc\controller{public function Indexaction () {}}

Phalcon Developer Tools

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.