Download Yii 1.1 Application Development Cookbook by Alexander Makarov PDF

By Alexander Makarov

This booklet is a suite of Yii recipes with chapters mostly self sustaining of one another. it really is choked with essentially helpful options and ideas defined with code and the necessary pictorial illustrations. when you are a developer with a great wisdom of PHP5, are conversant in the fundamentals of Yii, and feature attempted to boost purposes utilizing Yii, then this publication is for you. wisdom of the thing orientated strategy and MVC development can be an outstanding virtue as Yii makes use of those generally.

Show description

Read or Download Yii 1.1 Application Development Cookbook PDF

Best programming books

Programming Your Home: Automate with Arduino, Android, and Your Computer (Pragmatic Programmers)

Take regulate of your house! Automate domestic home equipment and lighting fixtures, and find out about Arduinos and Android smartphones. Create functions that leverage principles from this and different interesting new platforms.

In Programming your place, expertise fanatic Mike Riley walks you thru numerous customized domestic automation tasks, starting from a mobilephone program that indicators you to package deal deliveries at your entrance door to an digital safeguard puppy that would hinder undesirable visitors.

Open locked doorways utilizing your phone. gather a poultry feeder that posts Twitter tweets to inform you while the birds are feeding or whilst chook seed runs low. Have your place communicate to you if you obtain electronic mail or let you know approximately vital occasions resembling the coming of tourists, and masses more!

You'll tips on how to use Android smartphones, Arduinos, X10 controllers and a big selection of sensors, servos, programming languages, internet frameworks and cellular SDKs. Programming your place is written for telephone programmers, internet builders, know-how tinkerers, and an individual who enjoys development state-of-the-art, homemade digital projects.

This publication offers you the foundation and realizing to build extraordinary automation functions that may rework your place of abode into the neatest domestic on your neighborhood!

What You Need:

To get the main out of Programming your place, you will have a few familiarity with the Arduino platform besides a keenness for tinkering. you need to get pleasure from leading edge pondering and studying workouts in addition to have a few sensible program improvement event. The initiatives use a number of elements together with sensors and actuators, cellular units, and instant radios, and we'll even inform you the place you may get them.

RasPi Magazine [UK], Issue 16 (2015)

From the crew at the back of Linux person & Developer journal, RasPi is the basic consultant to getting the main out of the Raspberry Pi credit-card sized desktop. jam-packed with professional tutorials on find out how to layout, construct and code with the Raspberry Pi, this electronic journal will teach and encourage a brand new new release of coders and makers.

Microsoft Windows 2000 and IIS 5.0 administrator's pocket consultant

This booklet is superb while you're working a server with home windows 2000 and IIS. should you run into difficulties or have questions whilst environment issues up or holding them it's a speedy reference for solutions.

Applied Dynamic Programming for Optimization of Dynamical Systems (Advances in Design and Control)

According to the result of over 10 years of analysis and improvement by way of the authors, this publication offers a large pass component of dynamic programming (DP) thoughts utilized to the optimization of dynamical platforms. the most target of the examine attempt used to be to boost a strong direction planning/trajectory optimization device that didn't require an preliminary bet.

Extra info for Yii 1.1 Application Development Cookbook

Example text

There's more... info/) See also ff The recipe named Configuring URL rules in this chapter ff The recipe named Creating URL rules for static pages in this chapter Creating URL rules for static pages A website typically contains some static pages. Usually, they are /about, /contact, /tos, and so on, and it is common to handle these pages in a single controller action. Let's find a way to create URL rules for these types of pages.

Var=val Chapter 1 The methods that allow us to ensure request type are getIsPostRequest, getIsAjaxRequest, and getRequestType. ff For example, we can use getIsAjaxRequest to serve different content based on request type: class TestController extends CController { public function actionIndex() { if(Yii::app()->request->isAjaxRequest)s $this->renderPartial('test'); else $this->render('test'); } } In the preceding code, we are rendering a view without layout if the request is made through AJAX. ff While PHP provides superglobals for both POST and GET, Yii way allows us to omit some additional checks: class TestController extends CController { public function actionIndex() { $request = Yii::app()->request; $param = $request->getParam('id', 1); // equals to $param = isset($_REQUEST['id']) ?

Php How to do it... We need to generate URLs pointing to index and page actions of WebsiteController. Depending on where we need it, there are different ways for doing it, but the basics are the same. Let's list some methods that generate URLs. 42 Chapter 2 CHtml::link() and some other CHtml methods such as form, refresh, and ajaxLink all accept URLs and are typically used in views. These are using CHtml::normalizeUrl internally to resolve internal routes. Therefore, you should pass data in one of the following formats: ff URL string: In this case, URL passed will be used as is.

Download PDF sample

Rated 4.02 of 5 – based on 16 votes