E-commerce & Internet Marketing Blog: Tips and tricks in internet marketing. Latest trends in web design.

Why it’s better to do advanced web programming in Yii (= Yes It Is) framework compared to something else?

Yii framework

Yii framework

I have written why it’s always good idea to develop web on open source platforms like MODx, WordPress, Magento and I have written why MODx is better content management framework compared to others but today I want to explain why sometimes things should be written from scratch rather than using ready-made CMS systems. When you need more complicated functionality to be developed then often using ready made solution will mean actually same amount or even more hours of work to modify it, change what’s needed and remove unneccesary functionality. In the future when changes or amendments are needed then it may be even more expensive and complicated as existing script have been hacked so much that it might be even not possible. At more complicated cases downloading ready made scripts and hacking their core is never suggested by programmers who are able to program solutions from scratch and only “script kiddies” use ready made scripts.

Now, sould everything be done from scratch? Yes and no! Yes, because using ready made scripts is no good when you need rich functionality but not every piece of code should be written from scratch as that would take too many working hours and increase the price. So, frameworks should be used and below I’m going to explain why Yii framework is at the moment best PHP framework available.

Yii is fast!

Yii is fast!

It’s really fast!

All frameworks are slower than plain PHP but click on the image on the right to see the comparsion of Yii framework’s efficienty compared to developing in other most popular PHP frameworks that we have used in our development – CodeInteger, Zend, CakePHP, Prado and Symphony. There’s compared the amount of requests each framework can do in one second without very often used APC extension and with APC. As you can see the Yii is a hugely faster than other frameworks.

There are many reasons why PHP software developers consider using frameworks to be more effective but the main one is the speed of development. Frameworks save PHP application development time, help PHP web developers in creating stable applications and reduce the amount of repeated code. And that’s the most important in modern web application development and creating complicated dynamic sites and business applications. By oxagile.com

Well, of course performance isn’t the only important thing as otherwise just no framework could be used and written in plain PHP but with such a great performance Yii framework still has super rich set of features compared to others that improves the effecienty of web development.

Just some of features Yii provides:

  • built-in hierarchical role-based authentication support
  • Facebook, YouTube, Google etc. integration (eg. no login needed but just “Facebook connect”)
  • works well with third party code – for example it’s very easy to use in Yii some code from Zend
  • jQuery AJAX widgets (auto-complete input field, treeview, data grid, etc.) that let us develop modern and very versatile user interface (UI)
  • super easy to keep design (templating) separate from functionality
  • simple form helpers, validators and handlers
  • errors handling made nicer and easier
  • secure (safe from SQL injection, cross-site scripting (XSS), cross-site request forgery (CSRF), and cookie tampering, etc)
  • XHTML compilant
  • stricktly object-orientated (OOP)

Is it fast? … Is it secure? … Is it professional? … Is it right for my next project? … Yes, it is! By yiiframework.com

  • Magento is on Zend – there where I started learning Zend but I have to agree it’s “too massive”

  • I read a lot of interesting content here. Probably
    you spend a lot of time writing, i know how to save you a lot of work,
    there is an online tool that creates high quality, SEO friendly articles in seconds, just
    type in google – laranitas free content source

You can follow any responses to this entry through the RSS 2.0 feed.