Edward
Members-
Posts
1115 -
Joined
-
Last visited
-
Days Won
27
Everything posted by Edward
-
Did you have something to do with that?
-
I just noticed on the YiiFramework.com site that they have extended the Version 1 maintenance period from 2013 to 2015. End of Maintenance "Dec 31, 2015 (may be extended further if needed)" http://www.yiiframework.com/download/ This is good news!
-
Chapter 13 Login Error
Edward replied to php_percolate's topic in PHP for the Web: Visual QuickStart Guide (4th Edition)
That's a cool way to check if a function exists. When i came to answer the question no one had answered yet, but i checked through the book first to locate where the functions.php script was included. By the time i got to submit my post you beat me to it. -
Chapter 13 Login Error
Edward replied to php_percolate's topic in PHP for the Web: Visual QuickStart Guide (4th Edition)
I looked at the script all seems to be fine, and considering this is the 4th edtion of the book it must be 100% correct. I saw that the header.html includes the functions.php script. So i would just check the include file paths, i think the path is incorrect that's why you are getting your error. -
Yes its kind of like waiting for the next issue of The Walking Dead comic. I didn't get through it all today i did complete my js reading today and got through a quarter of the yii book. All good as I expected.
-
That's cool, that's a long way from where you are now!
-
Access All Objects Of A Class
Edward replied to bijan's topic in PHP 5 Advanced: Visual QuickPro Guide (2nd Edition)
Yes you can do this by creating a static array, then you can assign each new instance of the newly created class to that array. This method is often used when storing active database connections. -
Have you checked out this previous thread, i was suffering from a could be similar problem: http://www.larryullman.com/forums/index.php?/topic/1732-enabling-url-rewriting-not-working/ Things to look out for. 1. Make sure the file is of type HTACCESS and not just FILE (So the file will have the period in front .htaccess) 2. Make sure in your httpd.conf that mod_rewrite has the .co extension as my extension was actually .so so it wasn't exactly as the book had stated, all the book logic was 100% correct. I would confirm these two factors to begin with and if its not one of these we can investigate your issue further.
-
Do you mind me asking what nationality are you? I tried already to build the MVC the OOP way, it worked but the point is there could be errors so its just makes more sense and after what Larry said just to go with something good like Yii that is readily available. If we did do it ourselves it will also be somewhat similar especially with the OOP coding style. These decisions could be made depending on the size of your projects.
-
Wednesday, October 31, 2012 Happy Halloween! Today i briefly finished the frameworks chapter of the Modern Javascript book, I worked through all the other chapters up to this but i feel now i will not benefit on going on further with the book. I still have my practice site, so now i think its time to get some of this straight JS implemented into the website to test it out. JQuery looks awesome but i still would rather complete the JS functionality from straight JS before using any JQuery so i am 100% about what is going on here. The way i like to do things is practice with my own code and then after come back to the Modern Javascript book and do the putting it all together chap, this way i can see if what i done was correct when i compare of Larry's code, it will also be easier for me to approach as up till now i have had zero js coding practice. Some of you will either be doing or remember Effortless E-Commerce, well there is also that now i have some basic PHP knowledge, i will work through Larry's Coffee shop to analyze the good techniques used and see how these can be adapted into my own site. The Yii Book has just come out today, i am working through this, first four chapters look like a breeze but i intend on keeping up with this as this will be my main project base. Anyway I've got quite a bit to be getting on with and i almost forgot i am also working through the Advanced PHP book i need another two weeks to get this done up to what i need for now. Well once i get more updates i write in my log but its busy busy busy for now.
-
I also don't like that kind of code bloat my self, there is an interesting statement Larry made in the Yii Book: "And second, you should give in to the framework. All frameworks have their own conventions: how things are to be done. Attempting to fight those conventions will be a frustrating, losing battle. Do your best to accept the way that the framework does things and it’ll be a smoother, less buggy, and faster experience." Tell me HartleySan are you a developer for your day job there in Japan or is this just sideline stuff for you?
-
Good to hear you are getting it if I am stuck I'll ask you. But easy as you say is what I need I think I've got enough challenging parts of code to deal with in js already as well as PHP. Anyway Yii will be fine if my site works well I can rechange code later on if need be, I just want to keep things simple at the moment.
-
Hartley are you going to purchase the Yii book? In the introduction of the book it notes that every web developer should know at least one framework or two. As most companies expect a developer to know at least one framework.
-
I am just unable to concentrate to do my study on the Javascript book today i am just so excited about this Yii Book. May be its a coincidence, but we have heavy rain here today i think i am going to try and finish the first 4 chapters today. Well i am making a start now be back later on to let you know how they go.
-
Yes it perfect, the yii subdomain on your site has a very nice slick look, was that created with Yii? The PDF worked fine on my mobile, I will read it at Tennis. Did you receive my payment? It says my card was charged on the email response. I'll download the kindle app today, didn't know about that.
-
Oh no, you are getting ahead of me again , Right its time to prepare a nice hot Double Latte Expresso and get onto it. Nice one Antonio.
-
Yes just done it now, but i am not sure if my payment cleared yet, no indication once you submit the button. Although i can download the book now it appears. Also i have a question what is mobi format, i have a Sumsung Galaxy note, can i put it on here for viewing?
-
Really the error handler function used in the param of set_error_hander() should be only defining the way to print the error whether site is live or not. I think the solution here is some code separation, it would be better to take out the HTML Header, Footer, and Nav stuff etc and have this printed by the main scripts. Just have the error handler only dealing with the printing or mailing of the error that's it. Make a separate PHP or HTML script for your HEADER and FOOTER. You can also include the NAV in the HEADER script. I would try to make these adjustments first then we can take a look at further errors, this is my advise.
-
Finally Christmas 2 has come, time to open up my presents.
-
The way most websites work these days is similar, so starting of with the PHP and MySQL as you are doing is a good start. You could start by trying to build parts from certain pages of your web site and getting them to work. If you are missing or unable to build some features into your web site it may be because some of this code is written in Javascript. Javascript deals with client side scripting where as PHP is server side. If you can use Javascript it means you can update things on the page on the fly without having to reload the page, that's the best thing about it. To be able to implement PHP and javascript well, you also need a good knowledge of HTML and CSS, HTML is easy but CSS requires a lot more work, you can purchase something like a CSS design patterns book to help you with some of the difficult stuff. But lastly once you have learned the other things i recommend learning a framework like YiiFramework as a base for building your website into, this will be tried an tested, so you don't need to worry about bugs coming up later on, it gives you maximum time for development and lastly saves time reinventing the wheel. YiiFramework is awesome as it using the lazy loading technique its also faster than and more efficient than other frameworks on the market. You may have heard of ZendFramework from the makers of PHP but my advise to you is stay away from it, its absolutely horrible. I would also recommend using the JQuery Javascript framework as an assistance in your web design. But seriously about 1.5 years ago i was asking the same questions like you, i bought book upon book until i come across Larry's books, i have read through his series and now i can say that as soon as i have leared his Yii book, i can build anything i need now. Believe you can go out an buy other books like I done but you won't find any books better than Larry's. Also being through a Large part of the book is not enough, you wait till you get till the last 3 chapters putting it all together, then you will start getting the idea on where to go. Its just about keeping patient and going on through these books and it will all come together nicely, trust me you stick to these books and you will be sorted.
-
Iframe Onload Event Troubles
Edward replied to HartleySan's topic in Modern Javascript: Develop and Design
Thanks HartleySan, hey could you help us on this thread clearing up some issues. http://www.larryullman.com/forums/index.php?/topic/1740-chapter-8-event-handling-page-298-preventing-default-behavior/ -
Its because you need to insert the while loop in one of those model divs. I don't have the actual model window code on me now but my guess is model content div.
-
Iframe Onload Event Troubles
Edward replied to HartleySan's topic in Modern Javascript: Develop and Design
This is useful i saw examples in the js book of where an iframe would be the appropriate solution. I and others may need this later on thanks for spending the time to share this with us.