Jamie Rumbelow's Blog: Named Scopes with CodeIgniter

Courtesy PHPDeveloper.org  Thu, 01/07/2010 - 12:20

Jamie Rumbelow has proposed an idea to help simply some of the interactions your CodeIgniter application can have with your databases by using named scopes.

Named scopes are a really powerful feature of models - they allow you to define a clean, concise syntax when performing queries within your models - and best of all, are really easy to utilize in CodeIgniter.

The main principle of a named scope is that you create a method that,...


 

More related items

Charles Sprayberry's Blog: Why you should use DI
In this recent post from Charles Sprayberry he explains why using dependency injection (DI) in your application is a good idea and can help make things easier in the long run. Dependency...

Introducing Ubuntu Cities Scope for Unity
Softpedia: "New plugins for the Unity interface of the Ubuntu operating system, called Lens and Scopes, that will make your Unity experience much better."

Pim Elshoff's Blog: SOLID design
In your development time, you might have heard of the SOLID development design principles that aim to keep you and your application well structured and on track. If you haven't had the time...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com