Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 I want to learn PHP Framework, but i dunno OOP & MVC

views
     
goolias
post Mar 19 2014, 01:37 PM

Casual
***
Junior Member
321 posts

Joined: Jan 2003
QUOTE(spyworld @ Mar 7 2014, 09:47 PM)
My personal opinion:
If you're very strong in basic programming. OOP and Framework isn't too complex at all.

Why OOP?
When you writing a script, you don't need to rewrite the script again. One of the advantage is taking variable from other function. Example:

CODE
function abc($a,$b){
$this->c = $c = $a+$b;
$this->d = $a+$b+$c;
}

function total(){
echo "first total".$this->c;
echo "second total".$this->d;
}


Some people think, "Framework is too complex!"
PHP framework is much more easy than scratch.
All the basic requirement of programming script is included in framework.
Before you start developing application using php framework, you must to understand MVC work.
I like Zend Training Course but too expansive. 1 Zend Training Course can buy 1 Macbook Pro.

Additional Message:
All Zend Guidebook/E-book must buy it.
*
Framework are pieces of puzzle people already built, and we make use of that. If you think PHP framework is complex, wait until you have seen MFC.

I seconded on Zend Training in fact training prices in Malaysia are outrageously expensive for a typical IT personnel salary earned in Malaysia.

Zend isn't a full fledge Framework, still lacking ORM and unit testing iinm.
But they are many follower on Zend, due to official support from Zend company, creators behind the PHP

MVC concept start emerge years ago, it was not flourish until web application was blooming for the past few years, I like the idea of splitting logic, presentation but to really practise on that it was not easy. Imagine javascript in your web pages, wouldn't that defeat the presentation layer to be clean from logic.
A strict MVC is hard to follow if you would like to know, try YII framework, one of the PHP framework I have seen that really disintegrate logic and presentation, CI is still a light MVC framework, that's why it is easy to grasp. Not the same case as YII but it is powerful. Yii tried to be the ASP.NET is PHP world.

BTW, CI development has been stopped, I would recommend you go to Laravel instead.



 

Change to:
| Lo-Fi Version
0.0163sec    0.67    6 queries    GZIP Disabled
Time is now: 13th December 2025 - 11:34 PM