Part of the EllisLab Network

News

Jeffrey Way Talks CodeIgniter

Yesterday Jeffrey Way, Editor of Nettuts+ did a video tutorial on Easy Authentication using CodeIgniter. As part of the tutorial he takes you through the process of building an authentication system with CodeIgniter and how to restrict access to certain parts of your website to only those who’ve logged in.

Posted by Marcus Neto on May 27, 2011

Giving Back

Today we have an announcement that we are very excited about. If you take a look around you will notice some ad spots have appeared in various locations around the CodeIgniter site. Our hope is that by adding some ads to CodeIgniter.com we can give back to the community in a number of ways. Capitalizing on the traffic will allow us to sponsor more events, invest in more hours coding and generally give back more to this awesome community. And we’ve also tried to make several of the ad spots more economical so that many of you can capitalize on them to promote the products or services that you are offering using CodeIgniter.

We are using the Buy Sell Ad Network to manage the ads. Those of you running ads on your sites are probably familiar with them. We chose BSA as it was a very simple process to get the ads online. But we wanted to make sure that whatever system we used allowed us to manage the content that appears on the site. BSA allows you to have complete control over the ads that appear here and we will be doing out best to make sure that they fit within the intent of this community.

I would also like to thank the Reactor Team for their feedback as part of this decision. Your contributions to this community are many and we thank you for that.

Posted by Marcus Neto on May 25, 2011

Press Release: CICON

For immediate release

Tickets On Sale For CICON2011: The First US CodeIgniter Conference

If you’ve been waiting for a chance to meet other CodeIgniter developers or experience great CI talks masterclasses then the wait is over! Tickets are now on sale for CodeIgniter Con 2011 US and are available via Eventbrite. They are currently going at Early-Bird rates so act quickly to get your discounted ticket before the offer runs out.

CICON2011 US is the first CodeIgniter-only conference in the United States, and will be taking place at New Work City in lower Manhattan, New York, on August 20-21 2011. Speakers including Zach Kitzmiller, Eric Barnes, Greg Aker, John Crepezzi, Dan Horrgian, and Kenny Katzgrau will be presenting and conducting masterclasses on topics for developers new to CodeIgniter and advanced CI developers looking to gain new skills and knowledge. For a developing list of what’s in store, check out the programme.

For anyone still not entirely sure if they should come, check out this promo video put together by CICON2011 showcasing some of the top members of the CodeIgniter community talking about discovering and using CI, including Rick Ellis(!), Derek Allard, Pascal Kriete, Greg Aker, Phil Sturgeon, Kenny Katzgrau and Eric Barnes.

Contact:
Adam Fairholm
954-871-3112
.(JavaScript must be enabled to view this email address)

 

Posted by Leslie Doherty on April 21, 2011

Press Release: CodeIgniter 1.7 Professional Development by Adam Griffiths

This Press Release is written by one of our community members: Adam Griffiths. If you’d like to contribute with a press release, please send an email to .(JavaScript must be enabled to view this email address).

In the beginning

About two years ago I was a regular old teenager, writing boring (and seriously not fun) procedural code. There was a rave going on about Ruby on Rails and I wanted to get in on the action. But being the lazy teenager, I didn’t want to learn a new language, I simply wanted to see if there was anything that could help me develop faster, better apps in PHP. I ended up looking at quite a few PHP frameworks (and even tried to roll my own) - but as soon as I found CodeIgniter and started reading the user guide, I was hooked. Little did I know that two years later I would have written and published a book all before my 18th birthday.

Taking a lot from the community

For the next few months I built a lot of stuff using CodeIgniter, all of which were just-for-fun to help me learn CodeIgniter faster. All in all, CI helped me become a better developer overall; I had never heard of MVC before reading the user guide, had no idea what a singleton class was and the syntax helped me write pretty code. I had been given a lot by using CodeIgniter, and the community helped me immensely in my initial stages of working out how to be a ‘real’ developer and not just a kid who writes code in his bedroom. I had watched screencasts, read blog posts and forum posts and even read tweets about how awesome CodeIgniter is and how to do different things with it. I felt like I had to give something back.

The Authentication Library

The Authentication Library was the child of a web app I was creating. I needed to find a simple user authentication solution that did everything for me so I could focus on writing the web app. I went through three or four community created solutions and found them all to either be too hard to use or not include a feature I needed. So I wrote my own library and made it very simply to use. I ended up rewriting the whole thing about 6 months later and doing the seemingly impossible, I made it even easier to use. Literally so easy all you needed to do to get a full user authentication system up and running is to extend the class ‘Application’ instead of ‘Controller’ in your controllers and you’re away. The community seemed to be using my library in all sorts of applications and at the time it was my way of saying thanks to both Ellis Lab and all of the CodeIgniter community members. Because of the huge uptake and interest in the library, I kept releasing updates, new features and included community fixes to make it a much better library overall.

Programmers Voice

After about a year or so of CodeIgniter development I starting writing tutorials and putting them online at programmersvoice.com. Soon enough the site started to get fairly popular, by far the highest traffic website I had created. Eventually I recorded screencasts and tutorial series on how to write CMS’ and even how to roll your own PHP framework. This was another way I could give back to the CodeIgniter community. Unfortunately, it got to the point where I had run out of ideas for blog posts and eventually the posts died down to sweet nothing. The domain now redirects to my own website after staying dormant for so long. One day it might make a reappearance.

Deciding to write a book and how the community helped

After deciding to write a book, I needed to know what to put in it! I decided I wanted to write a fairly advanced book since the user guide and all the other CodeIgniter books have the basics covered. So I turned to the forums for help. I wrote a post titled CodeIgniter Book Questions. This forum post helped me decide to go after a publisher, simply because the amount of people who gave comments on what should be covered in the book and how many people said they would buy it. I drew up a Table of Contents and threw it out there for more thoughts. This forum thread became the driving force behind finding a publisher and signing a contract.

I looked around the internet for publishers that I knew would at least think about taking me and the book on. I ended up emailed Packt Publishing giving reasons as to why I would be a good writer (having written many tutorials for my CodeIgniter tutorial website, I’m no stranger to technical writing) and used the forum thread as proof that there was interest out there in the community for an advanced book. Since Packt had published a CodeIgniter book in the past I felt there was a good chance they’d take me seriously. They did. After a number of emails back and forth between me and my future Editor, I had a contract sent to me in the post and I had already starting writing Chapter 1.

I stuck to the table of contents I wrote for the forum post as much as I could and even ended up writing three more chapters than I had originally planned.

Wanting to write a book and actually writing one are two very different things

I had actually wanted to write a book for about a year before I made the forum post that kicked it all off. I think I underestimated the huge task that writing a book is but given the circumstances, I did rather well balancing my college work and writing the book. The largest piece of writing I had ever done before this book was a tutorial for Programmers Voice at just shy of 3,000 words, that’s the length of the shortest Chapter of the book, and there are 10 chapters, that largest chapter is shy of 8,000 words!! Overall the whole book tips the scale at 50,000 words. That’s a lot of words, I know this isn’t the longest book in history but it’s quite an achievement! It was a huge undertaking but throughout the process I kept thinking of the guys who wanted the book, and those who sent me messages on twitter and via email asking me about it, and kept plugging along.

Once the first draft had been sent in to the publisher there was an immense sense of relief that I had finished writing. Until about a week later I had half of the chapters back from the publisher with corrections and comments to be made and read through. Once this had all been done and I had sent off the final drafts to the publisher, all there was left to do was to go through the code with my Technical Editor. No thanks to Facebook there for changing their API half way through development, all the code just stopped working! We dealt with it and the code still works today, two months after being published; maybe Facebook don’t hate me after all.

When I had my copies through the post I was immensely excited. So much so that when the box came when I was at college, I made my mum bring me the box so I could open it and show the book off to all my friends; some of which didn’t believe I was actually writing a book! The whole process was thoroughly enjoyable and hugely rewarding, I’m glad I did it.

Final thoughts

If you are thinking about writing a book I would advise you to know as much as you can about the whole process of book writing before you start. I hadn’t a clue how anything worked in the publishing industry, so once I had my documents through and had to give dates for handing each chapter in, I was baffled. I didn’t know how long it would take me to write 3,000 words or 30 pages; especially since I had college as well. I ended up guessing most of the dates and I will admit here, a few of the chapters were written in a few days before the Monday hand in date. By knowing what you’re getting into before you get into it, you give yourself more chance to get comfortable with the writing processes and you let your mind focus on writing, rather than if you’re formatting things correctly.

The most important piece of advice I can give to any budding authors out there though is to always write when you are awake and refreshed, read everything over before submitting it to the publisher and if you’re not happy with a chapter, you have the power to change it. On numerous occasions I wasn’t happy with the chapters I was writing so politely asked the publisher for an extension to my deadline. I was always focussed on writing a quality book, and I’m glad my publisher let me do just that.

Chase your dreams. Life’s too short to be standing still.

So go ahead and check out my book, CodeIgniter 1.7 Professional Development and check out my website.

Posted by Leslie Doherty on November 22, 2010

CodeIgniter Community Voice - HOWTO: Set up a CodeIgniter project in Subversion

EllisLab is blessed with two of the greatest communities that can be found anywhere on the internet in ExpressionEngine and more recently CodeIgniter.  Despite being a relative newcomer to the scene, the people attracted to CodeIgniter are among the smartest, most talented and down-to-earth developers around today.  From time to time we want to highlight some of these talented people, and we’ve asked them to lend their voice to ours.  Have your voice.  I hope you enjoy what they have to say as much as I did.

This week, our Community Voice author is Bruce Alderson, known on the forums as madmaxx, who has written a wonderful guide on how he uses subversion with CodeIgniter.  Bruce is an elder web monkey and systems programmer.  He totally digs the craft of building software, making cool stuff, and causing people to laugh so hard liquids are forced from their nose.  He’s currently the Chief Monkey at Discovery Software and author of the not-at-all famous robotpony.ca.  (Go read the one about shaving your yak)


After working with CodeIgniter for a few months (and WordPress for a few years), I’ve settled on a way to set up web projects that works well for development, deployment, and source control. Note that this style of layout only works on systems like Mac and Linux that have useful symlinks.

First, the folder layout

some-domain.com/
    
app/
        
config/
        
controllers/
        (
etc)
    public/
        .
htaccess           -> ../site-extras/.htaccess
        favicon
.ico         -> ../site-extras/favicon.ico
        js
/                 -> ../site-extras/js
        images
/             -> ../site-extras/images
        system
/
            
application/    -> ../../app/
    
site-extras/
         
js/
         
images/
        .
htaccess 

The layout favours a vhost setup, and splits your code and resources out of the CodeIgniter sources. Splitting your stuff from the CodeIgniter stuff lets you link your Subversion repository to theirs, so that you can keep it in sync with their development.

How it’s done

  1. Set up your source tree (not including the symlinks or CodeIgniter source) and add to your Subversion repo.
  2. Add a svn link to CodeIgniter’s repo (via svn propedit svn:externals, with public http://dev.ellislab.com/svn/CodeIgniter/tags/v1.6.2/) and run a svn update to grab the framework.  See the Subversion docs for details.
  3. Copy the CI application folder to the site root (as app), remove the .svn folders, symlink to application, and add it to your local svn repo.
  4. Symlink the other site-extras to the public webserver root, and configure your local machine (and public webserver) to point to this root for the domain’s virtual host setup.
  5. Alternatively, you can modify the $application_path to point to ../public/app/ (I’m not sure which is better yet).  See the CodeIgniter docs on apps for more details.

You now have a CodeIgnitor project ready for development. You can keep up-to-date with CodeIgniter updates, deploy easily, and get at your code without wading through extra levels of hierarchy.


Discuss this article

Posted by Derek Allard on August 15, 2008

Page 1 of 2 pages  1 2 >