Jump to content
Larry Ullman's Book Forums


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Edward

  1. That's a good explanation Antonio, now i know why i was getting more headaches than usual, all that stress on the left and right side. I have a few glitches in my CSS, someone is wrong here, it could be blueprints, it could be Yii, or it could be me, but its probably me, haha. I am building my site the normal way now but in a reasonably good css, its actually looking much better than i had expected. I am going to change to the MVC later on, i know there are others that have dived into MVC and frameworks, later forgetting the basics and getting suck, at least if we build the normal way it will be done. I have some of the best CSS books you can get if you want to know, but how can i get the chance to read them with all the time the coding takes. Ive been taking parts of of PHP & MySQL 4th edition, parts out of Knowledge is Power from Effortless Eccommerce, everything has to be changed. And those form help functions, i am debating over whether they are going to be necessary as there is much more detail in these input tags than in the book.
  2. Well it looks like i will have to learn the hard way on this submission errors. The problem with some of your scripts also was when i clicked on the browser back button we had an expired document page appearing which wouldn't look to great on the real website. I'll do what testing i can and see what i can find out, i am running my stuff live at the moment. Looking forward to getting that advanced book you have finished by the end of this year. At least Walking dead Season 3 will be out at the same time as its due out, so when we are stressed we have something to calm us.
  3. Chapter 9: Example–CMS with OOP Identifying the Goals Creating the Database Making the Template Writing a Utilities File Creating the Error View File Defining the Classes Creating the Home Page Viewing a Page Using HTML_QuickForm2 Logging Out Adding Pages Is it this chapter, is that your own MVC object-orientated framework? The book looks like it will be a good one, nothing on how to handle the stress of how to handle css related problems?
  4. I was thinking about that new book of yours Larry but it might be too late now, if you build up an oop mvc from scratch in the book to show how the whole thing worked, i don't think there would be any better example. I have another php book with one in but i couldn't understand it.
  5. Ah found them sorry, column1.php and column2.php in layouts.
  6. I am trying to work the yii CSS layout into my example. But with one of my pages it is wider than the other. Please see below the yii main.php in layouts folder. I am trying to find a division block <div id="content"> as they do have it mentioned in their main.css file #content { padding: 20px; } but i don't understand quite where in yii this is coming up or used, all i can see on the main layouts sheet is the <?php echo $content; ?>. But on one of the view's files i still can't find the content id being shown in a devision block, so is it somewhere else? <!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> <body> <div class="container" id="page"> <div id="header"> <div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div> </div><!-- header --> <div id="mainmenu"> <?php $this->widget('zii.widgets.CMenu',array( 'items'=>array( array('label'=>'Home', 'url'=>array('/site/index')), array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')), array('label'=>'Contact', 'url'=>array('/site/contact')), array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest), array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest) ), )); ?> </div><!-- mainmenu --> <?php if(isset($this->breadcrumbs)):?> <?php $this->widget('zii.widgets.CBreadcrumbs', array( 'links'=>$this->breadcrumbs, )); ?><!-- breadcrumbs --> <?php endif?> <?php echo $content; ?> <div class="clear"></div> <div id="footer"> Copyright © <?php echo date('Y'); ?> YiiCustomized.com </div><!-- footer --> </div><!-- page --> </body> </html>
  7. With Yii you don't have to bother with all those classes, you can extend or override their one's, that was the point of the framework. I think its probably better starting of with codeigniter php framework, most people are saying that if you want to learn MVC its best to start here then move to Yii later which is off course much better. Coding seems to be the easy part of web development, css seems to me to be the MF of it all.
  8. The best book to start on would be PHP and MySQL for Dynamic Websites 4th Edition, there is no other book better on the market. I had Effortless Ecommerce before i had this book and there were too many things i was unsure of, i am just coming to the end of the 4th Edition book and soon will be ready for the Effortless Ecommerce after i practiced with my own basic site using the stuff i learned.
  9. Does the double submission on form's error only occur when a script is passed back to itself? So i mean if we submit the forum to a new script we would avoid this kind of error? I have read through your book but haven't noticed this being mentioned anywhere. There is a lot of talk online about disabling the submit button using js, but i wanted to know why this happened and what the php solution for this was.
  10. So do you think its best keeping things simple in a site right now and just using generic div's or go with the html5 tags?
  11. Edward

    Yii Baby!

    Thank you that would be very helpful for us that are reading through your series.
  12. Its better to avoid the use of global variables if possible. In Larry's book he uses the PHP require function to include a MySQL connection script, that way you can add the script in where ever you need it. For example: require ('mysqli_connect.php');
  13. I checked out Youtube and stuff for HTML5, ive got the Visual Quickpro QUIDE for HTML5 and CSS by Bruce Hyslop and honestly YouTube barely even use any of those new Tags. If they think they are using HTML5, man they have got a lot of work to do. Do you think the browser can get round the page better, or don't you think it would be more benefit for search engines using HTML5 to pick out the appropriate content. What help would HTML5 have, would we have a header, footer, sidebar key on our keyboards?
  14. Edward

    Yii Baby!

    Larry did you happen to see this thread i posted?
  15. Edward

    Yii Baby!

    Larry I apologize if i am bugging you but i am close to the end of PHP and MySQL for Dynamic Web Sites. I would say that this book gives me enough knowledge to go and build any kind of site i wanted if it was in the procedural code and not in any design pattern like MVC. I really like how chap 17, 18 and 19 really summarize on all what is taught and wanted to say to you since you are making the Yii book could you do something like that for us in Yii and how to make yii do the message board, user registration and eCommerce shopping cart. If you could do that the book would be awesome and it would make it easy for us to basically learn what we need after. Other things i would like to see in the Yii book would be showing an example of making a new yii layout as currently i know there are two, and then implementing it into yii. Then possibly how to add CSS style sheets to these and where they should go. Also some stuff on using yii to add jquery/javascript. These kind of things seem to be the base.
  16. Well i think if you did read, understand and finished this book most of your questions would be answered. I would suggest to anyone that before they began to develop stuff that they at least had the basics in their pocket.
  17. Have you read the PHP and MySQL for Dynamic Web Sites 4th Edition book by Larry?
  18. So what happens when you reply to a current thread? Do you still get an error? I tried my post.php in response to a thread and to post a new thread and both were working. Did you setup the database and fill it in with the sample data that was provided in the sql file download for chap 17?
  19. Okay Antonio, i will be starting my practice site soon, so yeah I am gonna use it, here we come header's, footer's, section's, aside's etc. It all does make more sense so i will do it, it also makes it easier to pick parts out without specifying id's with CSS for particular sections in generic div's.
  20. Is it safe even to use HTML 5, i notice most major sites don't seem to bother with it still?
  21. I finished the message board example it all worked on my localhost. Which script are you encountering the problem on, can you print us out the php error you are receiving?
  22. I used to play World of Warcraft regularly, i think i will give 'The Secret World' a go when it comes out. I am happy your code is now working, but if you can its worth looking into learning some kind of framework like Yii as it can automatically populate dropdown menu's for you and save you the extra coding.
  • Create New...