Friday, November 06, 2009

Zend Framework 1.9.5 was released

Two weeks after Zend Framework 1.9.4 was released, Zend Framework 1.9.5 is available for download. Changelog contains mostly bug fixes and minor changes... Still waiting for 2.0 version :)

Another mockup tool: Mockingbird

Mockingbird is an online tool that makes it easy for you to create, link together, preview, and share mockups of your website or application.

Mockingbird is built using Cappuccino framework.

Other similar tools for mockup interfaces are: Flairbuilder and Balsamiq.

Thursday, November 05, 2009

CakePHP 1.3 alpha is out

CakePHP team announced CakePHP 1.3 alpha - ready for download. New features include:
  • Router - generate urls with new style prefixes
  • Helpers - Helper::assetTimestamp() - to prevent url caching
  • Helpers - TextHelper - highlight function
  • Helpers - NumberHelper::addFormat() function
  • Error handling
  • improved Scaffolding
  • Logging - Configure::write('log', E_WARNING);
  • Models and datasources
  • Console and Shells
You can see the complete list here: List of new features in CakePHP 1.3 alpha

Sunday, June 21, 2009

Shozu on my n82 phone

Configured my blogger account too. Need to get a keyboard 4 my phone

Posted by ShoZu

Friday, May 01, 2009

Magento installation - login problems on localhost

If anyone is trying to install Magento on localhost, instead of using the url: http://locahost/magentoStore (or similar) use http://127.0.0.1/magentoStore (127.0.0.1 instead of localhost) Forum thread related to magento installation localhost login Works for Firefox and IE, not working on Safari though...

Monday, April 27, 2009

Magecamp

Starting tomorrow I'll be attending Mage::Camp... I'll have to register first for my VIP pass, hope that does not take long...

My agenda includes the Keynote speech from Varien (Roy Rubin), Magento Enterprise Edition and I'll see maybe some Internet World sessions...

Magento Enterprise Edition is a platform with great potential to cover the needs of a medium/large e-tail company... I have in mind a lot of eCommerce companies in Romania that would benefit from that, lower TCO, better change management and more features for their front end ...

Also, offline retailers could benefit from promoting at least their products in an online environment, attracting new customers and so on...

I'd like to see Mobexpert, which now uses oscommerce based solution just for a catalog... or Bricostore, Praktiker, and so on using a solution that can offer lots of functionalities for getting the most out of their promotions, bundles, cross-selling, up-selling, etc...

I'll post some more opinions during tomorrow... So stay tuned...

Sunday, April 05, 2009

PHP Frameworks: CodeIgniter

CodeIgniter is a php web development framework... In its own words:
CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If you're a developer who lives in the real world of shared hosting accounts and clients with deadlines, and if you're tired of ponderously large and thoroughly undocumented frameworks
Instead of a web development framework I'd rather call it a collections of libraries that help you in developing a web application... I should continue with "easier" but is not actually like that, beacause "easier" for me means in the first place faster... The MVC pattern that tries to cover is actually going with some best practices and that's it... First time I tried CodeIgniter was at the recommendation of a fellow that was using CodeIgniter and was very happy with it... I tried to build a backend application for quote management, but I gave up and used a framework inspired by CakePHP, but quite truncated with a very good ORM... That was an unhappy experience and left CodeIgniter, and started using more and more CakePHP... The main reason I didn't continue with CodeIgniter was that I had to write lots of code... for everything I need I had to write code... And that's not helpful.. And after a year or so, at our company I got a very nice customer that was quite good four our image and decent pay... We already had a name, couple of large (national and multi-national companies) in out portfolio The code of the website was in 2 controllers (8k and 12k code code, yes that's 8.000 and 12.000 lines of code) and 2 views (the container of html code)... Of course CodeIgniter was used... They had no idea what they were doing in there....
class Start extends Controller {

function funcNameHere($paramx=''){
#code here
$data['content_html'] = 'html code here..';
#sql queries and stuff here... no models used...
#loops here to build the content
$this->load->view('main_view', $data);
}
#other 1000 functions here
}
So it's not at all easy to deal with this... But, without some extra-functionalities needed the application was working... Anyway, instead of rewriting the entire app, we just moved to a proper approach only the modules that needed to be changed... Details in another story maybe... This was another proof that using a Web Development Framework does not actually means writing quality code... My conclusions about CodeIgniter so far:
  • is a collection of libraries for developing web applications
  • not a RAD framework
  • too much code needed to be written
  • good documentation
  • lacks AJAX library
  • low complexity and easy to learn
  • weak ORM
So, a beginner that wants to use a framework, can start with CodeIgniter or if you need more control over your application also you can use CodeIgniter... I will be involved in projects that are built with CodeIgniter only if it's a requirement or it's easier than using something else. I prefer CakePHP (web applications development) and Zend Framework (as a toolkit)...

Sunday, February 15, 2009

CakePHP: model without a database table

In my previous post I wrote about CakePHP controller without a model... But is not the most fortunate approach because you will have to process some data that should be in the model logic... So, instead of eliminating the model, just make a model class that does not require a database table:
class ChartsController extends AppController
{
var $name='Charts';
function index() {
 //code goes here
}
}
and the model:
class Chart extends AppModel
{
var $name = 'Chart';
var $useTable = false;
}
Setting the $useTable property to false is all you need to do...

Web Development PHP Frameworks News

I updated the Yahoo Pipes badge on the right column with the rss feed from Web Development PHP Frameworks Pipe. All the articles from CakePHP bakery were not well processed so I fixed that... Now you can watch these 4 main PHP frameworks in one place:
  • CakePHP
  • Symfony
  • Zend Framework
  • Code Igniter
Feel free to add any requests to this feed...

Tuesday, January 06, 2009

CakePHP: controller without models

How to create a controller without models. When you don't specify anything in a controller: Error: Database table tableName for model modelName was not found. So, you can do this:
class PagesController extends AppController {
  var $name = 'Pages';
  var $uses = array();#this controller uses no models...
}
And now you can edit your views and that's it...

Magento 1.2.0.1 - small fixes from 1.2

After announcing the release of Magento 1.2, version 1.2.0.1 was already announced one day later (30 december)... Release notes for version 1.2.0.1:
  • Fixed checking customer ID in download controller
  • Fixed “Incorrect table name…” SQL error during upgrade on some MySQL versions
In Magento 1.2 the highlights were:

  • Added downlodable product type
  • Implemented fulltext search
  • Added layered navigation to search results
  • Added option to disable Google checkout for selected products
  • Added fixed amount product taxes
  • Upgraded ZF library to version 1.7.2

Monday, January 05, 2009

What happened meanwhile...

Well, I got back from UK... KLM lost my luggage... So today I'm recovering them... Had my shoppings in there... suits, shirts and other stuff from M&S... Today I started a bit late, like at 4pm...:D This week I won't be able to write so often, but keep close because until next week I will publish more chapters on ZF Tutorials, Magento and other web frameworks... Happy New Year!!!