... way [ 41 ] The TrackStar Application Unit tests Unit tests are tests that focus on the smallest units within a software application In an object-oriented application, (such as a Yii web application) ... YiiRoot/framework/yiic webapp trackstar Create a Webapplication under '/Webroot/trackstar'? [Yes|No] Yes This provides us with our skeleton folder structure and our out of the box working application You ... an application component To take a quick step back When we created the initial application, we specified the application type to be a webapplication Doing so actually specified that the application...
... Project description: Test project number one create_time: 2 010 - 01- 01 00:00:00 create_user_id: update_time: 2 010 - 01- 01 00:00:00 update_user_id: 1 row in set (0.00 sec) [ 70 ] Chapter You may have noticed ... 00:00:00', [ 69 ] Iteration 2: Project CRUD 'create_user_id' => 1, 'update_time' => '2 010 - 01- 01 00:00:00', 'update_user_id' => 1, ) ); $this->assertTrue($newProject->save(false)); } This code ... features of our application We know that the project is one of the most fundamental components in our application A user cannot anything useful with the TrackStar application without first either...
... /YiiRoot/framework/base/CComponent.php :13 1 /YiiRoot/yii-read-only/framework/db/ar/CActiveRecord.php :10 7 /Webroot/tasctrak/protected/tests/unit/IssueTest.php:6 FAILURES! Tests: 1, Assertions: 0, Errors: Okay, ... 'user_id') VALUES (1, 1), (1, 2); After running the preceding SQL, we have two valid members assigned to Project #1 One of the wonderful features of relational Active Record within Yii, is the ... return array( 'user1ToProject1'=>array( 'project_id' => 1, 'user_id' => 1, 'create_time' => '', 'create_user_id' => '', 'update_time' => '', 'update_user_id' => '', ), 'user2ToProject1'=>array( 'project_id'...
... 'issueBug'=>array( 'name' => 'Test Bug 1' , 'description' => 'This is test bug for project 1' , 'project_id' => 1, 'type_id' => 0, 'status_id' => 1, 'owner_id' => 1, 'requester_id' => 2, 'create_time' ... login() method on the user application component is called As mentioned, by default the webapplication is configured to use the Yii Framework class, CWebuser as the user application component Its ... authentication 'allowAutoLogin'=>true, ), [ 16 0 ] Chapter As it is configured as an application component, with the key 'user', we can access it at any place throughout our application using Yii::app()->user...
... the interactive webapplication shell is configured to use our test database: % YiiRoot/framework/yiic shell protected/config/test.php Yii Interactive Tool v1 .1 (based on Yii v1 .1. 2) Please type ... script for the application Then, within the context of the specific application, it provides tools to automatically generate new controllers, views and data models [ 18 2 ] Chapter Console applications ... application and execute the shell command (Remember YiiRoot stands for where you have installed the Yii Framework): % YiiRoot/framework/yiic shell Yii Interactive Tool v1 .1 (based on Yii v1 .1. 2)...
... our Trackstar applicationwith functionality that has come to be expected of most user-based web applications today The ability for users to communicate with each other within the application is ... 'issue_id' => 1, 'create_time' => '', 'create_user_id' => 1, 'update_time' => '', 'update_user_id' => '', ), 'comment2'=>array( 'content' => 'Test comment on issue bug number 1' , 'issue_id' => 1, 'create_time' ... is a test feature issue associated with project # that is completed', 'project_id' => 3, 'type_id' => 1, 'status_id' => 2, 'owner_id' => 1, 'requester_id' => 1, 'create_time' => '', 'create_user_id'...
... entire PHP applicationdevelopment life-cycle experience They provide products and services to help with configuration and installation, development, deployment and with production application ... this framework within our Yii application, we need to move some of the files within our application' s folder structure Let's create a new folder under the /protected folder within our application ... background-color:transparent; font-size :12 px; font-weight:bold; text-decoration:none; padding:5px 8px; } #mainmenu ul li a:hover, #mainmenu ul li a.active { color: #d11e1e; [ 272 ] Chapter 11 background-color:#ccc;...
... idea of a theme within Web applications and how they are specifically implementing within a Yii application We saw that themes allow you to easily put a new face on an existing Webapplication and ... stand-alone applications, they must reside within an application Modules are useful in helping architect your application in a modular fashion Large applications can often be segmented into discrete application ... serves a similar role to the module as the application class does to the entire application So CWebModule is to our module what CWebApplication is to our application Using a module Just as the successful...
... Number: 2 012 950492 ISBN 978 -1- 118 -17 335-0 (pbk); ISBN 978 -1- 118 -23995-7 (ebk); ISBN 978 -1- 118 -26466-9 (ebk); ISBN 978 -1- 118 -22704-6 (ebk) Manufactured in the United States of America 10 www.it-ebooks.info ... video 10 9 Chapter 6: Laying Out the App 11 1 Building a Windows Layout 11 2 Using typography 11 2 Making space 11 5 Keeping ergonomics ... status 10 0 Indeterminate progress status 10 1 Ratings 10 3 Sliders 10 5 Playing Media Files withHTML5 10 7 Listening to audio 10 7 Watching...
... Number: 2 012 950492 ISBN 978 -1- 118 -17 335-0 (pbk); ISBN 978 -1- 118 -23995-7 (ebk); ISBN 978 -1- 118 -26466-9 (ebk); ISBN 978 -1- 118 -22704-6 (ebk) Manufactured in the United States of America 10 About ... Windows ApplicationDevelopmentwithHTML5 ® FOR DUMmIES ‰ Windows ApplicationDevelopmentwithHTML5 ® FOR DUMmIES ‰ by Bill Sempf Windows® ApplicationDevelopmentwithHTML5 For Dummies® ... video 10 9 Chapter 6: Laying Out the App 11 1 Building a Windows Layout 11 2 Using typography 11 2 Making space 11 5 Keeping ergonomics...
... Controls 11 5 CheckBox Control 12 3 RadioButton Control 12 6 List-Style Controls 12 7 Image Control 13 8 ImageMap Control 14 1 HyperLink Control 14 5 HiddenField Control 14 7 Table Control 14 9 Calendar ... Calendar Control 15 8 Summary 17 7 Exercises 17 7 Key Concepts 17 7 References 17 8 10 4 10 7 Chapter THE ADDITIONAL STANDARD WEB SERVER CONTROLS 17 9 Overview of the Additional Standard Web Server Controls ... System .Web; System .Web. Security; System .Web. UI; System .Web. UI.WebControls; System .Web. UI.WebControls.WebParts; System .Web. UI.HtmlControls; public partial class HelloWorldCodeBehind : System .Web. UI.Page...
... manually 10 4 Placing JavaScript in different positions in the asset bundles 10 5 Making a custom asset bundle for our application 10 6 Themes 10 7 Making a custom snowy theme 10 8 Widgets 11 1 Summary 11 1 ... asset bundle with files from an arbitrary folder Asset publishing An asset bundle with files from a web- accessible folder [ ii ] www.it-ebooks.info 79 81 84 84 87 89 90 95 10 0 10 0 10 1 10 3 Table ... www.it-ebooks.info 15 16 16 16 18 19 19 20 22 26 26 27 34 34 34 36 37 38 Table of Contents Making the data and application layers 39 Defining the customer model at the data layer 40 Setting up the database 41...