December, 2008


14
Dec 08

ORM with PHP

Yes, in my opinion PHP is still one of the best solution to build complex web 2.0 applications.

There are a lot of great PHP Frameworks out there which makes your life easier (Symfony, CakePHP, Codeigniter, and more…).

Now you can enjoy 100% Object-relational mapping in PHP by using IgnitedRecord library under the Codeigniter framework.

Here is a snapshot of how ORM can be achieved with PHP:

$this->load->model(‘ignitedrecord/ignitedrecord’);

$this->post = IgnitedRecord::factory(‘posts’);
$this->post->belongs_to(‘user’)->fk(‘author’);

$posts = $this->post->like(‘CodeIgniter’)
->order_by(‘date’, ‘desc’)
->join_related(‘user’)
->find_all();

foreach($posts as $post){
echo $post->title;
echo $post->user_username;
}


6
Dec 08

Transforming your mobile phone into a fully functional callcenter

iPhone Apache PHPI was amazed when I saw that the iPhone provides a unix-like terminal.

I read this article: http://www.mgamble.ca/oss/iphone_asterisk/ and I realized that asterisk PBX can run on this mobile and handle calls as a typical call center with welcoming messages, ques, rules and so on…

What else could we expect? web server running on the mobile? This is possible too!
Check this out: http://idude.org/2007/11/07/an-iphone-powered-apache-web-server-with-php/