Udi Mosayev

Programming, Business and my thoughts..

Database Interaction with Codeigniter 1.7

Hi,

Yesterday I wrote about the new CodeIgniter book: CodeIgniter 1.7 Professional Development By Adam Griffiths.
Packt Publishing extracted an article from the book, “Database Interaction with Codeigniter 1.7” which can be very helpful for beginners. You’ll read about the Database class, ActiveRecord and Database Forge class that gives you few methods to perform different [not so casual] operations in your database.

I really recommend you to not use ActiveRecord if you’re not familiar with SQL. If you’ll use ActiveRecord from day 1, you wouldn’t really know whats happening under the hood. My opinion is the same about PHP frameworks, I don’t think its good idea to start working with a framework before you know the language good enough.
Although not using ActiveRecord you won’t enjoy the security of injections-free queries and multiple DB types support – but in the long run its better for you as web developer.

Moreover, consider extending the native Model and writing simple CRUD [Create/Read/Update/Delete] methods that can help you working faster and better. I promise I’ll write about it more, I wrote for my self a quite powerful MY_Model class.

This is it for now,
If you already got the book, share your thoughts with me.


View Comments

Written by Udi Mosayev

May 15th, 2010 at 7:17 pm

Friday / May 14th

generic (feed #5)
generic (feed #5)
generic (feed #5)
generic (feed #5)
generic (feed #5)
generic (feed #5)
blog (feed #1)

Hi,
Recently, new Codeigniter book came out. CodeIgniter 1.7 Professional Development by Adam Griffiths. Packt Publishing as…

twitter (feed #4)
Small taste of "Codeigniter 1.7 Professional Development" book here: http://bit.ly/aSPMkW #codeigniter #codeigniterbook [udiudi]
generic (feed #5)
digg (feed #3)
digg (feed #3)
digg (feed #3)
digg (feed #3)
digg (feed #3)
digg (feed #3)
digg (feed #3)
digg (feed #3)
digg (feed #3)

View Comments

Written by Udi Mosayev

May 14th, 2010 at 11:00 pm

Posted in General Talk

New CodeIgniter Book: CodeIgniter 1.7 Professional Development (by Adam Griffiths)


Codeigniter 1.7 Professional Development

Codeigniter 1.7 Professional Development

Hi,

Recently, new Codeigniter book came out. CodeIgniter 1.7 Professional Development by Adam Griffiths. Packt Publishing asked me to review this book, so once I’ll get it in the mail I review it for you.
Take a look at the TOC of the book, Personally I’m really excited about Chapter 7: Building a Large-Scale Application and Chapter 10: Developing and Releasing Code to the Community , they look very interesting to me.

What you will learn from this book : [From Packt Publishing's Book page]

  • Learn the Model-View-Controller design pattern to structure your code.
  • Create more readable and maintainable queries using the Active Record implementation.
  • Create and maintain database tables using the Database Forge class.
  • Authenticate users using Twitter oAuth and Facebook Connect.
  • Create your own Authentication Library for more control over your user accounts.
  • Secure your application using CodeIgniter’s built-in functionality and some quick tips to help further.
  • Build a RESTful Web Service, opening up your application to third-party developers.
  • Create extended Controllers, grouping functionality into multiple Controllers helping to keep repeated code to a minimum.
  • Learn techniques used by professionals to scale CodeIgniter over multiple servers.
  • Learn top tips for releasing code to the community and giving support to the developers using your code.

Who this book is written for: [From Packt Publishing's Book page]

This book is written for advanced PHP developers with a good working knowledge of Object Oriented Programming techniques who are comfortable with developing applications and wish to use CodeIgniter to make their development easier, quicker, and more fun. Basic knowledge of CodeIgniter will be helpful. This book will suit developers who fall into three categories:

  • Professional Developers – employees of a software house or organization with in-house software development.
  • Freelance Developers – solo developers working in the industry on their own.
  • Just-for-fun Developers – people working with PHP building web applications is their spare time for fun.

Packt Publishing also released an article called “Database Interaction with Codeigniter 1.7” which I want to read and discuss here later this weekend.


View Comments

Written by Udi Mosayev

May 14th, 2010 at 3:34 pm

Posted in CodeIgniter

Tagged with ,

Thursday / May 13th

digg (feed #3)
generic (feed #5)
twitter (feed #4)
Why Eclipse and Eclipse based IDEs so slow and heavy??? [udiudi]
generic (feed #5)
generic (feed #5)

View Comments

Written by Udi Mosayev

May 13th, 2010 at 11:23 pm

Posted in General Talk

Sunday / May 9th

twitter (feed #4)
RT @Scobleizer: Check this video out — When Zynga meets Chatroulette: @6Rounds http://youtu.be/5aTl7mctuqg [udiudi]
digg (feed #3)
digg (feed #3)
digg (feed #3)
digg (feed #3)
twitter (feed #4)
you’ll miss me the next two weeks. having hard days at work, need to focus. [udiudi]

View Comments

Written by Udi Mosayev

May 9th, 2010 at 11:12 pm

Posted in General Talk

Saturday / May 8th

twitter (feed #4)
RT @zappos: Join us for virtual happy hour! Live from Gansevoort in Miami at 5 PM PST today: http://bit.ly/9KUvEW #DeliveringHappiness [udiudi]
generic (feed #5)
generic (feed #5)
generic (feed #5)
twitter (feed #4)
Should I be worried? people googling my name and entering my blog.. [udiudi]
twitter (feed #4)
RT @philsturgeon: CodeIgniter Unzip library http://is.gd/bZUrP #codeigniter [udiudi]

View Comments

Written by Udi Mosayev

May 8th, 2010 at 11:16 pm

Posted in General Talk

Friday / May 7th

generic (feed #5)
twitter (feed #4)
RT @philsturgeon: Allow query strings in #CodeIgniter and still use $config['uri_protocol'] = ‘AUTO’ for maximum support: http://is.gd/bYaIM [udiudi]
twitter (feed #4)
Switched to Seesmic as my Desktop Twitter Client. Too bad the different Seesmic Clients [mobile and desktop] not synchronized [udiudi]
twitter (feed #4)
The reason I switched from @tweetdeck to @seesmic is Hebrew Support and the fact I use seesmic in Android. [udiudi]
twitter (feed #4)
The second @seesmic will sync the tweets I read on other seesmic client, I’ll be very very happy :D [udiudi]
twitter (feed #4)
Reading a little bit about continuous deployment, want to make deployment app for myself. [udiudi]
blog (feed #1)

I started to hear a lot about continuous deployment, which means to deploy every piece of code you commit right away. But wha…

twitter (feed #4)
I’ll create simple tool for continuous deployment. blog post: http://blog.umnet.co.il/2010/05/07/continuous-deployment/ [udiudi]
generic (feed #5)

View Comments

Written by Udi Mosayev

May 7th, 2010 at 11:04 pm

Posted in General Talk

Continuous Deployment

I started to hear a lot about continuous deployment, which means to deploy every piece of code you commit right away. But what I found more interesting to me is the strong infrastructure needed in order to do that.

Eric Ries wrote “Continuous deployment in 5 easy steps” and I really liked the idea of automated tests tool and deployment script.
I also read “Deployment Infrastructure for Continuous Deployment” and saw the Deployment tool kaChing developers created.

I’ll keep reading about this subject and think how can I create useful tool with Codeigniter which will help CI developers test their application and deploy the code.
For the beginning I’ll start with simple deployment, connecting to FTP and uploading modified files.

You can read more about Continuous Deployment here


View Comments

Written by Udi Mosayev

May 7th, 2010 at 4:42 pm

Posted in CodeIgniter,PHP,Web Development

Tagged with

Thursday / May 6th

twitter (feed #4)
Testing CodeLobster PHP IDE http://bit.ly/TT2NR #codelobster [udiudi]
generic (feed #5)
generic (feed #5)
twitter (feed #4)
So far so good.. #codelobster [udiudi]
twitter (feed #4)
#codelobster – The auto_complete is the best I’ve seen so far, BUT if you rename the models you load the auto complete not supported [udiudi]
twitter (feed #4)
#codelobster – Which is sad, because they’ve developed a plugin for Codeigniter. Besides that – its really lightweight and comfortable. [udiudi]
twitter (feed #4)
For now, #codelobster is my PHP IDE in Windows. They really should release Linux version :D [udiudi]
generic (feed #5)
generic (feed #5)
twitter (feed #4)
From Zero to a Million Users – Dropbox and Xobni lessons learned… http://slidesha.re/9PDXEu [udiudi]
digg (feed #3)
digg (feed #3)
digg (feed #3)
digg (feed #3)
digg (feed #3)
digg (feed #3)
digg (feed #3)
digg (feed #3)

View Comments

Written by Udi Mosayev

May 6th, 2010 at 11:44 pm

Posted in General Talk

Wednesday / May 5th

twitter (feed #4)
Great :-) RT @Dropbox: this is gonna be nuts. IPAD APP, ANDROID APP, and MOBILE API are finally here!! http://blog.dropbox.com/?p=492 [udiudi]
generic (feed #5)
generic (feed #5)
generic (feed #5)
generic (feed #5)

View Comments

Written by Udi Mosayev

May 5th, 2010 at 8:28 pm

Posted in General Talk