background preloader

Educativo

Facebook Twitter

Getting Started: Creating First Yii Application. To give you an initial experience with Yii, in this section we describe how to create your first Yii application.

Getting Started: Creating First Yii Application

We will use yiic (command line tool) to create a new Yii application and Gii (powerful web based code generator) to automate code creation for certain tasks. For convenience, we assume that YiiRoot is the directory where Yii is installed, and WebRoot is the document root of our Web server. Run yiic on the command line as follows: % YiiRoot/framework/yiic webapp WebRoot/testdrive Note: When running yiic on Mac OS, Linux or Unix, you may need to change the permission of the yiic file so that it is executable.

This will create a skeleton Yii application under the directory WebRoot/testdrive. Without writing a single line of code, we can test drive our first Yii application by accessing the following URL in a Web browser: As we can see, the application has four pages: the homepage, the about page, the contact page and the login page. Home page Contact page Login page 1. 2. Welcome — CakePHP Cookbook 2.x documentation. Django at a glance. Because Django was developed in a fast-paced newsroom environment, it was designed to make common Web-development tasks fast and easy.

Django at a glance

Here’s an informal overview of how to write a database-driven Web app with Django. The goal of this document is to give you enough technical specifics to understand how Django works, but this isn’t intended to be a tutorial or reference – but we’ve got both! When you’re ready to start a project, you can start with the tutorial or dive right into more detailed documentation. Design your model¶ Although you can use Django without a database, it comes with an object-relational mapper in which you describe your database layout in Python code.

The data-model syntax offers many rich ways of representing your models – so far, it’s been solving many years’ worth of database-schema problems. Mysite/news/models.py Install it¶ Next, run the Django command-line utility to create the database tables automatically: $ python manage.py migrate Enjoy the free API¶ Getting Started with Rails. 1 Guide Assumptions This guide is designed for beginners who want to get started with a Rails application from scratch.

Getting Started with Rails

It does not assume that you have any prior experience with Rails. Rails is a web application framework running on the Ruby programming language. If you have no prior experience with Ruby, you will find a very steep learning curve diving straight into Rails. There are several curated lists of online resources for learning Ruby: Be aware that some resources, while still excellent, cover versions of Ruby as old as 1.6, and commonly 1.8, and will not include some syntax that you will see in day-to-day development with Rails. 2 What is Rails?

Rails is a web application development framework written in the Ruby programming language. Rails is opinionated software. The Rails philosophy includes two major guiding principles: 3 Creating a New Rails Project The best way to read this guide is to follow it step by step. 3.1 Installing Rails. Topcoder. Learn by Doing - Talentbuddy. PHP. Python. Ruby. Intro to JS: Drawing & Animation. W3Schools Online Web Tutorials. Learn. Learn HTML, CSS, JavaScript with our free online tutorial. Learn HTML, CSS, JavaScript with our free online tutorial.