Yii1.1 for beginners

What is Yii Model-View-Controller architecture? MVC schema Model defines relations among data in DB and rules that must be followed when saving data to DB. It also gives us tools to read/save data from/to DB. View shows data to user. It doesn’t write to DB or count difficult things. It just receives data and shows them using HTML, CSS, JS, etc. Controller processes and changes the data, handles user’s actions, decides, counts, thinks and calls models and views. It simply acts. ...

June 4, 2020 · 3 min · 532 words · Ken Cho

Yii 1.1 Quick Start

What is Yii? Yii is a high-performance, component-based PHP framework for developing large-scale Web applications rapidly. It enables maximum reusability in Web programming and can significantly accelerate your Web application development process. What is Yii best for? Yii is a generic Web programming framework that can be used for developing virtually any type of Web application. Because it is light-weight and equipped with sophisticated caching mechanisms, it is especially suited to high-traffic applications, such as portals, forums, content management systems (CMS), e-commerce systems, etc. ...

May 27, 2020 · 2 min · 278 words · Ken Cho

Yii 2.0 - Getting Started

Install Composer via Composer on Mac OS X curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer Install Yii composer create-project --prefer-dist yiisoft/yii2-app-basic basic Installing Assets Add the following lines to /basic/composer.json "replace": { "bower-asset/jquery": ">=1.11.0", "bower-asset/inputmask": ">=3.2.0", "bower-asset/punycode": ">=1.3.0", "bower-asset/yii2-pjax": ">=2.0.0" }, Verify the Installation Go into the basic/ php yii serve User browser to access: http://localhost:8080/ CHeck if the minimum requirements are met by running cd basic php requirements.php ...

May 26, 2020 · 2 min · 408 words · Ken Cho

OOP

What is OOP? Object-oriented programming is a style of coding that allows developers to group similar tasks into classes. This helps keep code following the tenet “don’t repeat yourself” (DRY) and easy-to-maintain. Object-oriented programming is a style of coding that allows developers to group similar tasks into classes. What is a class? A blueprint for a house. It defines the shape of the house on paper, with relationships between the different parts of the house clearly defined and planned out, even though the house doesn’t exist. ...

May 26, 2020 · 8 min · 1700 words · Ken Cho

How to format text using Markdown?

Markdown is a simple way to format text that looks great on any device. It doesn’t do anything fancy like change the font size, color, or type — just the essentials, using keyboard symbols you already know. Here is the source of the following cheatsheet.

May 22, 2020 · 1 min · 45 words · Ken Cho