background preloader

Web development

Facebook Twitter

6 CodeIgniter Hacks for the Masters. CodeIgniter is a simple and powerful open source web application framework for PHP. Today, we'll do some core "hacks" to this framework to change and improve its functionality. In the process, you'll gain a better understanding of the intricacies of CodeIgniter. It is not recommended to apply these hacks to an existing project. Since they change some of CodeIgniter's core functionality, it can break the existing code.As of this writing, CodeIgniter 1.7.2 is the latest stable release. On the left side, you see the regular way of loading a model in CodeIgniter, from within a Controller. There are two more side effects of this hack. And you no longer have to add a require_once call before you do model class inheritance.

All we need to do is add a PHP 5 style autoloader function. Add this code to the bottom of system/application/config/config.php: If you are interested in applying this hack for controllers too, you can use this code instead: Now you can not have a URL like this: That is all. W3Schools Online Web Tutorials. Webmonkey - The Web Developer's Resource | Wired.com. Building Dynamic Websites | Harvard Video Course. Chris Shiflett. Speckyboy Design Magazine | Web Design, Web Development and Graphic Design Resources.

Web development tutorials, from beginner to advanced. A Better Login System. Net.tuts+ has published several great tutorials on user login systems. Most tutorials only deal with authenticating the user, which allows for two levels of security: logged in and not logged in. For many sites, a finer degree of control is needed to control where users can go and what they can do. Creating an access control list (ACL) system will give you the flexibility for granular permissions. Introduction Imagine you are running a great tutorial site that lets users learn about a wide variety of web development techniques. In addition to your normal readers, you have some premium subscription members, as well contributing authors and administrators. Your problem You want to restrict users' to only specific pages that their particular account allows access to. The solution Implementing an access control list will allow you a great deal of control over what users can and cannot access on your site.

Step 1: Create the Database Step 2: Database Include Lines 4-8 set up our variables. Analysis. Scriptdd.com บทความบ้าบ่นของคนทำเวบ. MooTools Consultant, jQuery Consultant - David Walsh.