background preloader

Yii PHP Framework: Best for Web 2.0 Development

Yii PHP Framework: Best for Web 2.0 Development
Yii comes with rich features: MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc. It can reduce your development time significantly. Books on Yii Beginning Yii [Video] This is a video course designed for new Yii users. If you are a PHP developer, either with or without previous framework experience, and you have an interest to learn Yii and to rapidly develop modern, sophisticated web applications, then this video course is for you.

Related:  FramewordsYii FrameworkFramework & Co

rights-user-preconfigured I prepackaged Yii Rights / Yii User so you don't have to configure anything but your database info. I prepackaged Yii Rights / Yii User / Yii Private Messaging so you don't have to configure anything but the basics. No hacks, installation, confusion, migrations, configurations, or headaches! Basically, these are downloadable working demos of the three modules. CDbCriteria Look up a class, method, property or event CDbCriteria represents a query criteria, such as conditions, ordering by, limit/offset. It can be used in AR query methods such as CActiveRecord::find and CActiveRecord::findAll. $criteria=new CDbCriteria(); $criteria->compare('status',Post::STATUS_ACTIVE); $criteria->addInCondition('id',array(1,2,3,4,5,6)); $posts = Post::model()->findAll($criteria);

A Shopping Cart Library for CodeIgniter What is flexi cart? flexi cart is a free open source shopping cart library for use with the CodeIgniter 2.0+ framework. It is designed with modularised features that can be mixed and matched, turned on or off, and can be customised to suit your requirements. What is flexi cart not? A Simple Codeigniter Template Library Codeigniter Simplicity is a Codeigniter Template Library that is here to make our life easier. It's been a while that there is not any official Template/Layout library inside Codeigniter. In that case I've created the Codeigniter Simplicity that is based on core functionalities of Codeigniter as it represents to me the "How it should be" project. The code is really simple to use and the naming of the functions are pretty obvious of what they are doing without any more complexity Obviously the first thing that you have to do is downloading the library.

Implementing cron jobs with Yii There are two ways to run a cron job: Emulate browser.Run PHP in CLI (console) mode. Emulating browser ¶ Yii DAO vs Active Record Performance Home » PHP » PHP MVC Frameworks » Yii DAO vs Active Record Performance I’m writing a new app using Yii Framework, but one of my concerns with Yii has been the impact of using ActiveRecord and ORM on the application performance, so I decided to actually compare how the two perform and the results are quite interesting… Basically for a simple test what I did is created a single table in the database with like 6 records. CodeIgniter / EllisLab A Brief History of CodeIgniter 2006: CodeIgniter was born. CodeIgniter is a powerful open-source PHP framework with a very small footprint, created by Rick Ellis in 2006.

How to use a single form to collect data for two or more models? Assume we want to use a single HTML form to collect input for both model A and model B, and we want to display input errors (if any) in the same error summary box. We can define the following action code: public function actionCreate(){ $a=new A; $b=new B; if(isset($_POST['A'], $_POST['B'])) { $a->attributes=$_POST['A']; $b->attributes=$_POST['B']; $valid=$a->validate(); $valid=$b->validate() && $valid; if($valid) { $a->save(false); $b->save(false); } } $this->render('create', array( 'a'=>$a, 'b'=>$b, )); } To add these new fields to your Create form, add your 2nd table fields no stored in a 2nd model. A's create.php:

Organize directories for applications with front-end and back-end using WebApplicationEnd behavior Previously there was described a way to build an application with front-end and back-end. I would like to continue this theme and suggest another way to organize directories using WebApplicationEnd behavior. If you are not familiar with events & behaviors yet, then please, read this tutorial to get basic knowledge about using them.

Related:  Frameworks PHPBibliothèques / FrameworkscmsYiiHtml & phpLibrairies/FrameworkFrameworkFrameworksFramework PHPsumix