Git Product home page Git Product logo

Yii2 Framework

  • Installed apache2 (a web server)
sudo apt-get install apache2 apache2-doc apache2-utils
  • Installed PHP

  • Installed Composer

  • Installed mysql

  • Installed phpmyadmin

  • Using composer installed yii2 framework's basic project template

  • After installing I was able to run yii file in apache serve

./yii serve
  • Then opened the page with localhost:8080

  • Changed enableprettyurl to True in web.php to get nice url not the script name

  • Created a user and gave permissions to access databases

  • Created a database in mysql using phpmyadmin

  • Changed database settings in db.php in config folder

  • Created a table named book in database local

  • Created a model for tables book using model generator form http://localhost:8080/index.php/gii/model which auto generates the code required for that

  • Now added a row in the table book

  • Added a extra attribute book_desc using migrations by adding details in up() and down() function in migration file

  • Created a table named author in database local

  • Linked both the tables using foreign keys (author id from table book with table author)

Abhishek Bvs's Projects

qujini icon qujini

Open Source Question Paper Generator

rescuekerala icon rescuekerala

Website for coordinating rehabilitation of people affected in the 2018 Kerala Floods

video-cut-tool-front-end icon video-cut-tool-front-end

Wikimedia Tool to Trim Online Videos in Wikimedia Commons. This app provides the frond-end support. https://commons.wikimedia.org/wiki/Commons:VideoCutTool

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.