Edward Posted September 3, 2012 Share Posted September 3, 2012 Hey Larry, I was wondering if you would know this, will Yii 2 be completely in HTML5, since this is the new standard for HTML? Also any feedback from the big boys at Yii 2 on when the alpha will be coming out? Eager to get started learning this. Link to comment Share on other sites More sharing options...
Larry Posted September 3, 2012 Share Posted September 3, 2012 Yii is a PHP framework, it has nothing to do with the version of HTML in use. In fact, you can use Yii without using HTML at all. My understanding is the alpha version of Yii 2 will be made public this month. Link to comment Share on other sites More sharing options...
Edward Posted September 3, 2012 Author Share Posted September 3, 2012 I think you may be wrong there Yii 1 has CHTML helper functions so I think it does. If you don't use HTML with Yii what else could you use with it? Link to comment Share on other sites More sharing options...
Larry Posted September 3, 2012 Share Posted September 3, 2012 I've had components in a Yii-based site return XML, JSON, plain text, and sometimes nothing at all. Link to comment Share on other sites More sharing options...
Edward Posted September 3, 2012 Author Share Posted September 3, 2012 When I talk about html5 I was talking about whether it would be placed in the yii header rather than traditional, I meant no more than that. Your going to be teaching something that no one can even use until there is a stable release which could be end of next year, I need some confidence about this framework otherwise I might as well use zend or codeignitor. Link to comment Share on other sites More sharing options...
Larry Posted September 3, 2012 Share Posted September 3, 2012 As for the Yii stable release date, you have no basis for saying it could be the end of next year. Could it? Sure. It could also be the end of this year. Or January. Or never. We're talking about using software that's in development. This is no different than using an application or an operating system that's in development. If what you need is production-ready code today and in the very near future, then use Yii 1. Or use Zend or CodeIgnitor if you'd rather. Or whatever framework you want. If you're looking for confidence, it's very simple: if you're starting a project now, or in the near future, use Yii 1 (or something else). The site being created to sell my Yii book will be written in Yii 1, because it needs to be ready now. It's no more complicated than that. 1 Link to comment Share on other sites More sharing options...
Edward Posted September 4, 2012 Author Share Posted September 4, 2012 So you are no longer doing Yii 2? You are doing this for Yii 1 because it needs to be ready now? I see now that Zend are also trying to get a stable release of their version 2. I will be honest i wouldn't mind settling on Yii Version 1 as it looks easy to follow and i really like Alex M's cook book. I hope you will be doing version 1 Larry, do let me know? Check this out: yii/protected/views/layout/main.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="language" content="en" /> <!-- blueprint CSS framework --> <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" /> <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" /> <!--[if lt IE 8]> <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" /> <![endif]--> <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" /> <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" /> <title><?php echo CHtml::encode($this->pageTitle); ?></title> </head> Link to comment Share on other sites More sharing options...
rob Posted September 4, 2012 Share Posted September 4, 2012 So you are no longer doing Yii 2? You are doing this for Yii 1 because it needs to be ready now? No, Edward. Larry is saying he will be creating the website to sell his book in Yii 1. Link to comment Share on other sites More sharing options...
Edward Posted September 4, 2012 Author Share Posted September 4, 2012 Yeah but, a couple of week ago he was saying Yii 2, so that's why i asked for the confirmation. If its Yii 1 that would be better as the version is already stable and we can start production now. Read Larry's reply in this post http://www.larryullman.com/forums/index.php?/topic/1559-yii-20/ Link to comment Share on other sites More sharing options...
Larry Posted September 4, 2012 Share Posted September 4, 2012 The book is on Yii 2; the Web site to sell the book will be written in Yii 1. Link to comment Share on other sites More sharing options...
Edward Posted September 4, 2012 Author Share Posted September 4, 2012 In that case it will be Yii 2 i will be learning then, so i want to keep on the same tracks. Every author and coder has their own opinions on how things should be done, i like what you have done so far so i would like to keep learning more. I have compared codeignitor to Yii and i thought there code was pretty basic in comparison, i like hardcore oop code, i feel that is the right style for me. I told you i done maths before, in order to get the highest marks we had to always simplify each equation or expression to its simplest form. So if i see the long winded procedural code by second nature i can see something is wrong. Link to comment Share on other sites More sharing options...
Larry Posted September 4, 2012 Share Posted September 4, 2012 Someone just recommend the Laravel framework to me (http://laravel.com). One of its lead developers also wrote a book on it (https://leanpub.com/codehappy), which is available in print format. Link to comment Share on other sites More sharing options...
Edward Posted September 4, 2012 Author Share Posted September 4, 2012 Ha, you won't be getting rid of me that easy. Maybe that will work out for someone else but i am still strong on going with Yii, those guys have years of experience back from the days of Prado framework. Link to comment Share on other sites More sharing options...
Recommended Posts