People! For those who attended this week's club meeting...
Well, we were starting on the Cake Blog, which actually isn't hard to do. But we spent quite some time over setting up eclipse, which was practically us some headaches, especially to those who retrieve the wrong file from my thumbdrive. =X
Anyway! If anybody needs the eclipse file, and/or the cakephp: get them here------
CakePhpPDT ProjectNext, you guys must master the concept of MVC. Model-View-Controller.
- A model is an object representing data or even activity, e.g. a database table or even some plant-floor production-machine process.
- A view is some form of visualization of the state of the model.
- A controller offers facilities to change the state of the model.
An analogy would be something like........purchasing food:
You made a request at the counter [counter represents the view]
The counter then proceeds your request to prepare what you want. [controller acting in at backend]
Like say 'mee goreng', so it will refer the their refrigerator to retrieve the noodle. [refrigerator represents the model]
Easy concept right? So you just take note, if you are going to purchase food, you don't go directly to your refrigerator take out those stuff right? You need a controller to do that action, which here our counter staff is acting as one.
And thats one of purpose why we use cakephp; for those who started working on Cake Blog, you would have realised that it is built on this architecture pattern.
--
I think, there are still quite some 'lost sheeps' during the meeting. But what I can ensure for next lesson is only: a much more structured lesson.
Because that we are going to follow up with a few projects in near future, basics: have to be strong.
Oh yeah, I managed to go through a bit of SQL statements with few of you...Anyway it is really helpful to anyone who wants to retrieve data from database blah and blah. Especially us too, since we are mainly focusing on building web applications using PHP, and theres no escaping SQL from it. ^^
Basically: SQL - Structured Query Language.
What it does: retrieve/manipulate data in database. The language syntax and usage is basically same even on different software: MySql, Oracle, MS Access +++++++
Basic Forms: CRUD
Create, Retrieve, Update, Delete
A good tutorial for beginners, as usual:
SQL W3Schools--
Anybody with any good ideas for projects that we can handle, feel free to contact me at my gmail: inlajuki@gmail.com
Otherwise, we will plan some borrrring projects. >D
Projects will range from: websites or widgets that we can add on to a webpage. Theme: anything, but! It will be best if it sticks to something educational. ^^!