The Definitive Guide to Yii

Total Page:16

File Type:pdf, Size:1020Kb

The Definitive Guide to Yii The Definitive Guide to Yii 1.0 Qiang Xue and Xiang Wei Zhuo Copyright 2008-2009. All Rights Reserved. Contents Contents i License ix 1 Getting Started1 1.1 The Definitive Guide to Yii...........................1 1.2 New Features...................................1 1.2.1 Version 1.0.7...............................1 1.2.2 Version 1.0.6...............................1 1.2.3 Version 1.0.5...............................2 1.3 What is Yii....................................2 1.3.1 Requirements...............................3 1.3.2 What is Yii Best for?..........................3 1.3.3 How is Yii Compared with Other Frameworks?............3 1.4 Installation....................................3 1.4.1 Requirements...............................4 1.5 Creating First Yii Application..........................4 1.5.1 Connecting to Database.........................8 1.5.2 Implementing CRUD Operations....................9 2 Fundamentals 13 2.1 Model-View-Controller (MVC)......................... 13 ii Contents 2.1.1 A Typical Workflow........................... 14 2.2 Entry Script.................................... 15 2.2.1 Debug Mode............................... 15 2.3 Application.................................... 16 2.3.1 Application Configuration........................ 16 2.3.2 Application Base Directory....................... 17 2.3.3 Application Component......................... 17 2.3.4 Core Application Components..................... 18 2.3.5 Application Lifecycles.......................... 19 2.4 Controller..................................... 20 2.4.1 Route................................... 20 2.4.2 Controller Instantiation......................... 21 2.4.3 Action................................... 21 2.4.4 Filter................................... 22 2.5 Model....................................... 24 2.6 View........................................ 25 2.6.1 Layout................................... 25 2.6.2 Widget.................................. 26 2.6.3 System View............................... 27 2.7 Component.................................... 27 2.7.1 Component Property........................... 27 2.7.2 Component Event............................ 28 2.7.3 Component Behavior........................... 29 2.8 Module...................................... 30 Contents iii 2.8.1 Creating Module............................. 31 2.8.2 Using Module............................... 31 2.8.3 Nested Module.............................. 33 2.9 Path Alias and Namespace........................... 33 2.10 Conventions.................................... 34 2.10.1 URL.................................... 34 2.10.2 Code.................................... 35 2.10.3 Configuration............................... 35 2.10.4 File.................................... 35 2.10.5 Directory................................. 36 2.11 Development Workflow.............................. 37 3 Working with Forms 39 3.1 Working with Form................................ 39 3.2 Creating Model.................................. 39 3.2.1 Defining Model Class........................... 40 3.2.2 Declaring Validation Rules....................... 40 3.2.3 Securing Attribute Assignments..................... 43 3.2.4 Triggering Validation........................... 45 3.2.5 Retrieving Validation Errors...................... 46 3.2.6 Attribute Labels............................. 46 3.3 Creating Action.................................. 46 3.4 Creating Form.................................. 48 3.5 Collecting Tabular Input............................. 49 iv Contents 4 Working with Databases 53 4.1 Working with Database............................. 53 4.2 Data Access Objects (DAO)........................... 53 4.2.1 Establishing Database Connection................... 54 4.2.2 Executing SQL Statements....................... 55 4.2.3 Fetching Query Results......................... 56 4.2.4 Using Transactions............................ 56 4.2.5 Binding Parameters........................... 57 4.2.6 Binding Columns............................. 58 4.3 Active Record................................... 58 4.3.1 Establishing DB Connection....................... 59 4.3.2 Defining AR Class............................ 60 4.3.3 Creating Record............................. 61 4.3.4 Reading Record.............................. 62 4.3.5 Updating Record............................. 65 4.3.6 Deleting Record............................. 65 4.3.7 Data Validation.............................. 66 4.3.8 Comparing Records........................... 67 4.3.9 Customization.............................. 67 4.3.10 Using Transaction with AR....................... 67 4.3.11 Named Scopes.............................. 68 4.4 Relational Active Record............................ 70 4.4.1 Declaring Relationship.......................... 72 4.4.2 Performing Relational Query...................... 74 Contents v 4.4.3 Relational Query Options........................ 76 4.4.4 Dynamic Relational Query Options................... 78 4.4.5 Statistical Query............................. 78 4.4.6 Relational Query with Named Scopes................. 80 5 Caching 83 5.1 Caching...................................... 83 5.2 Data Caching................................... 85 5.2.1 Cache Dependency............................ 86 5.3 Fragment Caching................................ 87 5.3.1 Caching Options............................. 87 5.3.2 Nested Caching.............................. 89 5.4 Page Caching................................... 90 5.5 Dynamic Content................................. 91 6 Extending Yii 93 6.1 Overview..................................... 93 6.2 Using Extensions................................. 94 6.2.1 Application Component......................... 94 6.2.2 Widget.................................. 95 6.2.3 Action................................... 95 6.2.4 Filter................................... 95 6.2.5 Controller................................. 96 6.2.6 Validator................................. 96 6.2.7 Console Command............................ 97 vi Contents 6.2.8 Module.................................. 98 6.2.9 Generic Component........................... 98 6.3 Creating Extensions............................... 98 6.3.1 Application Component......................... 99 6.3.2 Widget.................................. 99 6.3.3 Action................................... 100 6.3.4 Filter................................... 100 6.3.5 Controller................................. 101 6.3.6 Validator................................. 101 6.3.7 Console Command............................ 101 6.3.8 Module.................................. 102 6.3.9 Generic Component........................... 102 6.4 Using 3rd-Party Libraries............................ 102 7 Special Topics 105 7.1 URL Management................................ 105 7.1.1 Creating URLs.............................. 105 7.1.2 User-friendly URLs............................ 106 7.2 Authentication and Authorization....................... 110 7.2.1 Defining Identity Class.......................... 110 7.2.2 Login and Logout............................ 112 7.2.3 Access Control Filter........................... 112 7.2.4 Role-Based Access Control....................... 116 7.3 Theming...................................... 121 7.4 Logging...................................... 122 Contents vii 7.4.1 Message Logging............................. 122 7.4.2 Message Routing............................. 123 7.4.3 Performance Profiling.......................... 126 7.5 Error Handling.................................. 127 7.5.1 Raising Exceptions............................ 127 7.5.2 Displaying Errors............................. 128 7.5.3 Message Logging............................. 130 7.6 Web Service.................................... 130 7.6.1 Defining Service Provider........................ 130 7.6.2 Declaring Web Service Action...................... 131 7.6.3 Consuming Web Service......................... 132 7.6.4 Data Types................................ 132 7.6.5 Class Mapping.............................. 133 7.6.6 Intercepting Remote Method Invocation................ 134 7.7 Internationalization................................ 134 7.7.1 Locale and Language........................... 135 7.7.2 Translation................................ 135 7.7.3 Date and Time Formatting....................... 138 7.7.4 Number Formatting........................... 139 7.8 Using Alternative Template Syntax....................... 139 7.8.1 Using CPradoViewRenderer ........................ 140 7.9 Console Applications............................... 143 7.9.1 Using the yiic Tool........................... 144 7.10 Security...................................... 144 viii Contents 7.10.1 Cross-site Scripting Prevention..................... 144 7.10.2 Cross-site Request Forgery Prevention................. 145 7.10.3 Cookie Attack Prevention........................ 146 7.11 Performance Tuning............................... 147 7.11.1 Enabling APC Extension........................ 147 7.11.2 Disabling Debug Mode.......................... 147 7.11.3 Using yiilite.php ............................ 147 7.11.4 Using Caching Techniques........................ 148 7.11.5 Database Optimization......................... 148 7.11.6 Minimizing Script Files......................... 149 License of Yii The Yii framework is free software. It is released under the terms of the following BSD License. Copyright c 2008-2009 by Yii Software LLC. All rights reserved. Redistribution and
Recommended publications
  • The Yii Framework – Larry Ullman
    The Yii Framework – Larry Ullman This is a copy of the Larry Ullman series ‘Learning the Yii Framework’. See http://www.larryullman.com/2009/06/18/introduction-to-the-yii-framework/. 1. Introduction to the Yii Framework In 2009, I had three decent-size Web sites to develop, so I thought I might try using a PHP framework for the first time, instead of coding everything from scratch. I’ve used Ruby on Rails for Web development before, so I’m comfortable with frameworks and the MVC architecture, but I wanted to educate myself on PHP frameworks. After researching a handful of frameworks, and after an unsatisfying attempt to use Zend Framework, I finally settled on, and really came to appreciate the Yii Framework. At the time, the Yii Framework was still quite new, and there are still bugs to be worked out (for the more advanced stuff), but Yii works so well that it’s very easy to use. In this first of several posts on the Yii Framework, I just discuss setting up and testing Yii. (Note: In October 2010, I’ve updated this entire series to reflect changes in Yii since this series was written, and to take into account feedback provided through the comments. Some outdated material will be crossed out, but left in to reflect how things have changed since the series was begun in June 2009.) The first thing you need in order to use the Yii Framework is access to a Web server with PHP installed, of course. But if you’re reading this, I’m going to assume you have access to a PHP-enabled server.
    [Show full text]
  • Implementación De Framework De Desarrollo Web Durante Un Proyecto”
    UNIVERSIDAD POLITÉCNICA DE SINALOA PROGRAMA ACADÉMICO DE INGENIERÍA EN INFORMÁTICA Tesina “Implementación de Framework de desarrollo web durante un proyecto” Para obtener la acreditación de las estadías profesionales y contar con los créditos para el grado de Ingeniero en Informática. Autor: Bernal Corral Daniel Asesor: M. C. Alejandro Pérez Pasten Borja Asesor OR: Ing. Omar Vidaña Peraza Mazatlán, Sinaloa 13 de Diciembre del 2019 Agradecimientos Agradezco a mis padres por brindarme todo su apoyo durante mis estudios, por darme las clases más importantes, por haber hecho posible que llegara a este momento, por enseñarme que no siempre todo sale perfecto y que debo esforzarme para obtener lo que quiero, por darme ánimos para seguir, por preocuparse por mí y esforzarse para que mi vida fuera mejor. A mi asesor por aconsejarme y corregir los errores que cometí durante el desarrollo de la tesina, por tomarse el tiempo para ver cada detalle y hacer recomendaciones, sugerir opciones, etc. A mi hermano por ayudarme a no rendirme, por asumir su rol de hermano mayor y tratar de guiar, por preocuparse por mí y ayudarme siempre que lo he necesitado. A los profesores que he tenido a lo largo de mis estudios y que me aportaron un poco de su conocimiento para enriquecer el mío. A todos mis compañeros que me ayudaron a hacer más amenas las clases. 6 ÍNDICE TEMÁTICO Índice de imágenes. 9 Resumen. ….. .11 Abstract. …. .11 Introducción. 11 Capítulo I. .. ... …12 1. Antecedentes. .. 13 1.1. Localización. .. ….. 13 1.2. Objetivos de la institución. …………….. 13 1.3. Visión. .14 1.4.
    [Show full text]
  • Alexey Rogachev
    Alexey Rogachev Web programmer, 30 years old Location: Almaty, Kazakhstan (Almaty Region) Experience: 9 years About Passionate full stack web developer. Perfectionist trying to find a balance between quality, deadlines and requirements. Languages: • Russian: ILR - 5, CEFR - C2 • English: ILR - 3, CEFR - C1 • Kazakh: ILR - 1, CEFR - A2 Work Aviata (2018 - Present) Location: Almaty, Kazakhstan Period: July 2018 - Present (1 year 11 months) Flight and railway tickets selling service. In 2018 it was united with ex-competitor “Chocotravel” and became the 2nd biggest internet plaform in Kazakhstan according to Forbes (short, details). Worked on railways project. After I joined this company it got bigger priority and dedicated team. Website: https://aviata.kz/railways/ Position: Web programmer Technologies: Python, Django, Django REST Framework, Flask, MySQL, Nginx, Gunicorn, CentOS, JavaScript, jQuery, Vue.js, HTML, Bootstrap, Sass, Webpack, Node.js, Docker Tasks: • Backend development - support and further development of API used by site, mobile apps and partner “Chocotravel”. Integration with other APIs and services. • Frontend development - both desktop and mobile site versions (until January 2019). • Making reports to determine success of adding new features. • Code review and mentoring of other team members. Highlights: • Set up Docker and Docker Compose for development, staging and production environments. • Developed new functionality - subscription to free places, timetable and routes of the trains, nearby dates search, push notifications. • Connected Google Cloud Storage. • Adapted and extended API for usage by partner “Chocotravel”. • Created mock server for supplier’s API with a set of quickly reproducible cases for easier testing and design showcase. • Improved unit tests’ coverage, wrote a suite of functional tests for main flow.
    [Show full text]
  • Performance Analysis Framework Codeigniter and Cakephp in Website Creation
    Performance Analysis Framework Codeigniter and CakePHP in Website Creation {tag} {/tag} International Journal of Computer Applications © 2014 by IJCA Journal Volume 94 - Number 20 Year of Publication: 2014 Authors: Hustinawati Albert Kurnia Himawan Latifah 10.5120/16549-5946 {bibtex}pxc3895946.bib{/bibtex} Abstract IThe era of rapidly evolving technologies currently provide a positive influence on the development of web technology . One such technology is the development of the framework. Framework is a framework that allows developers to build an application . There are two types of frameworks , one of which is a web application framework. In this framework there is one type of framework that is widely used by web developers , which is a PHP framework that until now has been growing more than fifteen types to follow the progress of existing technology . With the development of web technology , in addition to facilitate can also cause problems both for the beginners in the world of PHP programming or PHP programmers to choose a framework which is more convenient and effective to use. Therefore , in this study will be a comparison between the two types , namely PHP framework CakePHP framework CodeIgniter framework that is implemented with the creation of websites to display data from a database , so that the two kinds of PHP frameworks can be known benefits and drawbacks to the analysis based on six factors namely in terms of performance , architecture , features - features that are available , the application of Ajax , ORM implementation , and capacity of each library - each framework. 1 / 2 Performance Analysis Framework Codeigniter and CakePHP in Website Creation Refer ences - (http://www.
    [Show full text]
  • Adopting Web Framework in Web-Application Development
    ADOPTING WEB FRAMEWORK IN WEB-APPLICATION DEVELOPMENT Case: Kehittäjän tieto- ja menetelmäpankki Lahti University of Applied Sciences LAHTI UNIVERSITY OF APPLIED SCIENCES Degree Programme in Business Information Technology Bachelor’s Thesis Spring 2012 Nguyen Minh Thanh Lahti University of Applied Sciences Degree Programme in Business Information Technology NGUYEN, MINH THANH: Adopting web framework in web application development Case: Kehittäjän tieto - ja menetelmäpankki Bachelor’s Thesis of Degree Programme in Business Information Technology, 40 pages, 3 pages of appendices Spring 2012 ABSTRACT Since the web found its true form, it is no longer static web pages without any user’s interaction. During the last few years, web applications have matured to the point that they can compete with full-fledged desktop applications. The support technologies have been growing significantly with the likes of Google web toolkit, web application frameworks, and CMS. This thesis is based on the real application of Tykes, which has been coded by hand in PHP for a few years. The approach is set to improved Tykes’s features and performance. As the result, it shows the benefits of implementing web frameworks in real life works. The action research method is used to answer the research questions in this study, in inductive approach. The researcher’s experience is compared to other relevant published sources. Example source codes are extracted from Tykes. The research results show an expected range. It confirms the positive effects of implementing web framework in web application development. Features which have been tested in Tykes are presented and compared to their originals. Some example source codes are extracted from the application to prove the results.
    [Show full text]
  • Quantum Node Portal- Devices and Information Management
    Internship Report Master in Computer Engineering-Mobile Computing Quantum Node Portal- Devices and Information Management Sujane Natasha Lopez Leiria, September 2017 i This page was intentionally left blank ii Internship report Master in Computer Engineering-Mobile Computing Quantum Node Portal- Devices and Information Management Sujane Natasha Lopez Internship Report developed under the supervision of Professor Doctor Joao Pereira, professor at the School of Technology and Management of the Polytechnic Institute of Leiria. Leiria, September 2017 iii This page was intentionally left blank iv Acknowledgments I would like to take this opportunity to express my sincere gratitude to the people who helped me through this internship work. I sincerely thank Professor Joao Pereira for guiding me throughout my Internship Period, Professor Carlos Grilo for giving me an opportunity to do an Internship in Domatica Global Solutions. Undoubtedly the main person CEO and Founder Samuel Silva who believed in me and made this Internship possible. The Director Pedro Pina for being a good team leader and guiding my work. Besides them, a big thanks to my team members, my colleagues in Domatica Global Solutions. I am thankful to my parents for being with me and supporting me unconditionally. v This page was intentionally left blank vi Abstract An Internship in a European Company for developing a Web application-Domatica Global Solutions, Lisbon was undertaken to complete the Master’s Degree of Computer Engineering-Mobile Computing in the Polytechnic Institute of Leiria. The team Domatica deals with providing IoT solutions used for monitoring, controlling and collecting the data from the IoT gateways. The present work aims to develop a Web application for client’s side.
    [Show full text]
  • GRADUATION DATABASE SYSTEM by SRIKANTH GADDAM B.E, OSMANIA UNIVERSITY, 2009 a REPORT Submitted in Partial Fulfillment of The
    GRADUATION DATABASE SYSTEM By SRIKANTH GADDAM B.E, OSMANIA UNIVERSITY, 2009 A REPORT Submitted in partial fulfillment of the requirements for the degree MASTER OF SCIENCE Department of Computing and Information Sciences College of Engineering KANSAS STATE UNIVERSITY Manhattan, Kansas 2011 Approved by: Major Professor Dr. Gurdip Singh ABSTRACT Education plays a very important role in molding a person into a good individual by imparting knowledge in all aspects. Globalization has helped the students to go to different countries, attain knowledge and exposure on the culture of that country. Universities receive several hundreds of applications from all over the world to get admission for higher studies. By following the conventional method the faculty of the university and also the applicant will face lot of difficulties in communicating. In conventional method the acceptance or rejection would be generally intimated through post. The applicant will be in complete ignorance during the processing of application. They will be several scenarios where interaction between them is necessary to further process the application. This project is intended to overcome such problems and make the interaction between the staff and applicant smoother. The main objective of the project is to develop a website for Computing and Information Sciences department which manages the data regarding the prospective students as well as students currently enrolled. It can be accessed by prospective students (who wish to join the university), faculty and administrators. Applicant will be notified constantly through email and they can always check their application status online. The role of the administrators is to accept applications sent by prospective students and upload their details such as their GRE, TOEFL scores and their academic records into the database.
    [Show full text]
  • Netbeans Plugin Portal, Netbeans IDE Plugins Repository
    NetBeans IDE NetBeans Platform Enterprise Plugins Docs & Support Community Search HOME / Plugin Portal Not logged in | Log in | Register Featured plugin - PHP CakePHP Framework Welcome to the NetBeans Plugin Portal Download, comment, and rate plugins [4.62/5], provided by community members and rated by 22 third-party companies, or post your own users contributions! Support for CakePHP Framework. Learn more Most downloaded Top rated Newly added or updated Codename One iReport Darcula LAF for NetBeans 2016-11-11 [1,106,882] [4.83/5] MultiProperties Sublime Theme JS CSS Minify Compress 2016-11-10 [389,912] [4.73/5] FPR NetBeans Theme (Like Sublime Ruby and Rails Codename One Text Monokai Theme for NetBeans) [323,422] [4.7/5] 2016-11-09 NetBeans OpenGL Pack Toggle line wrap FlashPlugin [250,284] [4.67/5] 2016-11-09 NBAndroid PlantUML NetBeans System Properties [245,411] [4.66/5] 2016-11-07 Show more Show more Show more Plugins catalogue Live Filters - select or type to filter the catalogue, filters are applied all together. There is also multi column sorting activated by 'shift' clicking column headers. Name: Category: NetBeans version: Description: Owner: Verified for: Show entries Search: NetBeans Last Avg. On Plugin name Category Description Owner Downloaded versions updated Rating UC Web Applications 4.55 , Version Sublime Text default theme 8.0, 7.3 motammem 2014-09-24 389911 Sublime Theme Control for Netbeans IDE. [4.55/5] Systems, Utilities Plugin to minify JS , CSS and HTML for quicker Web page load times by reducing 4.73 Applications 8.1, 8.0, the size of js/css/html files.
    [Show full text]
  • Laravel 5 & Yii 2
    Laravel 5 & Yii 2 A look into two popular PHP frameworks • Connor Tumbleson • https://github.com/iBotPeaches • Developer (SourceToad) • Built Applications in • CodeIgniter • Laravel 4.2 • Laravel 5 Who am I? • Laravel 5.1 • Yii 2 Plan • Framework Popularity • History • Setup & Configuration • Environments • Controllers & Routes • Active Record • Views & Widgets • Modules & Packages • Code Generation • Community • Versioning Framework Popularity - History Framework Popularity - 7 day Framework Popularity - Multiple Frameworks Laravel - The PHP Framework for Web Artisans • Started in June 2011 • 1.0 Released August 2011 • Laravel 4 included Composer in May 2013 • Started by: Taylor Otwell • Previously: CodeIgniter (used, not team) • Last Release: v5.2.20 (2/19/2016) • as of 2/22/2016 Yii - A high-performance PHP framework best for developing Web 2.0 applications • Started in October 2006 • 1.0 Release December 2008 • Yii2 included Composer in October 2014 • Started by: Qiang Xue • Previously: Prado (dev) • Last Release: v2.0.7 (2/14/2016) Yii is pronounced as Yee, and is an acronym for "Yes It Is!" This is often the accurate, and most concise response to inquires from those new to Yii: Is it fast? ... Is it secure? ... Is it professional? ... Is it right for my next project? ... Yes, it is! Setup Both install via 1-2 lines with composer composer is PHP’s answer to package managers. - matching Ruby’s bundler & Node’s npm composer create-project --prefer-dist laravel/laravel blog composer global require "fxp/composer-asset-plugin:~1.1.1" composer
    [Show full text]
  • Preview Yii Tutorial (PDF Version)
    Yii About the Tutorial The Yii[ji:] framework is an open-source PHP framework for rapidly-developing, modern Web applications. It is built around the Model-View-Controller composite pattern. Yii provides secure and professional features to create robust projects rapidly. Audience The Yii framework has a component-based architecture and a full solid caching support. Therefore, it is suitable for building all kinds of Web applications: forums, portals, content managements systems, RESTful services, e-commerce websites, and so forth. Prerequisites Yii is a pure OOP (Object-Oriented Programming) framework. Hence, it requires a basic knowledge of OOP. The Yii framework also uses the latest features of PHP, like traits and namespaces. The major requirements for Yii2 are PHP 5.4+ and a web server. Copyright & Disclaimer Copyright 2016 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or in this tutorial, please notify us at [email protected] i Yii Table of Contents About the Tutorial ...........................................................................................................................................
    [Show full text]
  • "The Definitive Guide to Yii 2.0"
    The Definitive Guide to Yii 2.0 http://www.yiiframework.com/doc/guide Qiang Xue, Alexander Makarov, Carsten Brandt, Klimov Paul, and many contributors from the Yii community This tutorial is released under the Terms of Yii Documentation. Copyright 2014 Yii Software LLC. All Rights Reserved. Contents 1 Introduction1 1.1 What is Yii............................1 1.2 Upgrading from Version 1.1...................2 2 Getting Started 13 2.1 What do you need to know................... 13 2.2 Installing Yii........................... 14 2.3 Running Applications...................... 23 2.4 Saying Hello............................ 27 2.5 Working with Forms....................... 30 2.6 Working with Databases..................... 36 2.7 Generating Code with Gii.................... 42 2.8 Looking Ahead.......................... 48 3 Application Structure 51 3.1 Overview............................. 51 3.2 Entry Scripts........................... 52 3.3 Applications............................ 54 3.4 Application Components..................... 66 3.5 Controllers............................ 69 3.6 Models............................... 78 3.7 Views............................... 89 3.8 Modules.............................. 103 3.9 Filters............................... 110 3.10 Widgets.............................. 118 3.11 Assets............................... 122 3.12 Extensions............................. 142 4 Handling Requests 155 4.1 Overview............................. 155 4.2 Bootstrapping........................... 156 4.3 Routing and URL
    [Show full text]
  • Agile UI - Hackathon #1
    Agile UI - Hackathon #1 Welcome to the first Agile UI hackathon to be held in Latvia. On behalf of the creators of Agile UI, we invite you to emerse yourself into our product and have fun. Our team have been working hard to bring you the first version of our Component Framework. We are very passionate about component-based web development and we are pleased to present to you our latest creation which is an open-source product and is available to you for both personal and commercial projects. We would like to tell you more about other events, components and share useful articles with you that can help you improve as a Web Developer. You can get updates through our twitter (@atk4) or on Facebook. Getting Started We have prepared instructions for you so that you can get your hands on our brand new Agile UI library. The current version is 1.0 but we have planned more releases soon. To get the most up-to-date release: 1. Set up PHP and MySQL if you don't have (We recommend (https://www.mamp.info/en/) 2. Install Composer (https://getcomposer.org). If you have difficulties, read https://tommcfarlin.com/setting-php-and-composer-in-mamp/. 3. Install MySQL manager 4. Create a very basic "test.php" and open it through the browser. 1 <?php 2 3 echo "PHP WORKS!!"; If you have difficulties setting up PHP, MySQL or Composer, just Google! Answers are there. Installing Agile UI Through terminal go inside folder where "test.php" is located and run: 1 composer require atk4/ui This will install most recent version of "Agile UI" and "Agile Data".
    [Show full text]