Giter Site home page Giter Site logo

packtpublishing / yii2-application-development-cookbook-third-edition Goto Github PK

View Code? Open in Web Editor NEW
50.0 14.0 16.0 994 KB

Code repository for Yii2 Application Development Cookbook Third Edition, published by Packt

License: MIT License

PHP 47.44% CSS 0.81% Smarty 0.01% Batchfile 0.05% HTML 37.32% JavaScript 14.25% Gherkin 0.09% Hack 0.03%

yii2-application-development-cookbook-third-edition's Introduction

Yii2 Application Development Cookbook Third Edition

This is the code repository for Yii2 Application Develoment Cookbook Third Edition, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish. ##Instructions and Navigation

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02. You will see something similar to the following:

 public function __construct($id, $module, ShoppingCart $cart, $config = [])
    {
        $this->cart = $cart;
        parent::__construct($id, $module, $config);
    }

    public function behaviors()
    {
        return [
            'verbs' => [
                'class' => VerbFilter::className(),
                'actions' => [
                    'delete' => ['post'],
                ],
            ],
        ];
    }

####Author Instructions

HHVM is installed.

Running PHP web scripts with HHVM is done by having your webserver talk to HHVM over FastCGI. Install nginx or Apache, and then:

  • $ sudo /usr/share/hhvm/install_fastcgi.sh
  • $ sudo /etc/init.d/hhvm restart
  • (if using nginx) $ sudo /etc/init.d/nginx restart
  • (if using apache) $ sudo /etc/init.d/apache restart

Detailed FastCGI directions are online at:

If you're using HHVM to run web scripts, you probably want it to start at boot:

  • $ sudo update-rc.d hhvm defaults

Running command-line scripts with HHVM requires no special setup:

  • $ hhvm whatever.php

You can use HHVM for /usr/bin/php even if you have php-cli installed:

  • $ sudo /usr/bin/update-alternatives --install /usr/bin/php php /usr/bin/hhvm 60

####Software and Hardware list

Chapter Software required OS required
1 to 12 Web Server, Database Server, PHP, Yii2 Windows/Mac/Ubuntu

##Related Products

Suggestions and Feedback

Click here if you have any feedback or suggestions.

yii2-application-development-cookbook-third-edition's People

Contributors

packt-itservice avatar packtbhagyashree avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.