News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
Basecamp Style Subdomains With CodeIgniter
November 18, 2010 @ 12:38:23

On NetTuts.com today there's a new tutorial showing you how to use the CodeIgniter framework to create Basecamp-style subdomains in your application.

CodeIgniter is a simple and lightweight PHP framework used to create powerful web applications. Today, we are going to do something nifty: we'll combine user names and subdomains to make for a more cohesive user experience. If you're a bit confused, this feature allows your users to access their accounts by typing in a custom url, which maps to their user name, such as harbinger.yourapp.com.

Their setup shows the homepage for the application if you go directly to the domain but changes to a login form when you hit the subdomain. There's a bit of DNS configuration involved to get the subdomains working (you'll have to add in a wildcard to catch the subdomains). They show you how to set this up on your localhost if you're working on OSX or Windows. With a few changes to the Apache server for virtual host and a basic install of CodeIgniter, they get started creating the database tables and control panel application.

0 comments voice your opinion now!
basecamp subdomain codeigniter tutorial framework dns apache


blog comments powered by Disqus

Similar Posts

Debuggable Blog: Unit Testing in CakePHP Part 1 - Introduction to Unit Testing

DevShed: Inserting, Updating and Deleting Database Rows with Code Igniter

NETTUTS.com: Everything You Need to Get Started With CodeIgniter

Sanisoft Blog: Theming your CakePHP apps (V1.2)

SitePoint PHP Blog: How to Create a Unique 64bit Integer from String


Community Events

Don't see your event here?
Let us know!


community language release example interview extension introduction series security library laravel podcast voicesoftheelephpant api list php7 version framework opinion laravel5

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework