woensdag 5 maart 2008

CakePHP vs Zend Framework comparison

Chad wrote an interesting comparison between CakePHP and the Zend Framework. He has made an overview of the main differences between the both frameworks for now. My first look at his comparison was a little more points for the Zend Framework, but in his conclusion... Hmmm, I'm not gonna spoil this...

dinsdag 4 maart 2008

How to use $scripts_for_layout

Finally discovered how $scripts_for_layout works.

I have put

< ?php echo $javascript->link('jtip', false); ?>

in my view. False just means do not put it here, but put it where $scripts_for_layout is in my layout, so in the header.

Still looking for a way to have js scripts automatically included. It exists, but I still haven't found what I'm looking for... Anyone?

Nice Slideshare presentation about CakePHP

Can't get it shown here. But gwoo has a nice presentation about CakePHP 1.2. He gives you an overview of CakePHP and especially 1.2. Have a look at it, it's definitely worth your minutes and it will not hurt you.

maandag 3 maart 2008

New theme

Hi, I just changed to a new theme... I needed something fresh here. Soon I will add new posts here about CakePHP 1.2. I also included some new plugins (thanks to Joost de Valk). Thanks for the theme goes to http://www.nodethirtythree.com/.

dinsdag 19 februari 2008

Ajax is so easy...

Ok, download CakePHP 1.2 and create a basic website with some scaffolding or something. Include Prototype or jQuery and think about a part of your page you want to replace with the result of an Ajax request.

Suppose you have a scaffolded list of customers. When you press the View link, Cake redirects you to customers/view/123. You can catch the link and call some Javascript to load the result of customers/view/123 in a div on your index page. Quite easy, but you now see your header twice. Not cool. Hmmm....

maandag 11 februari 2008

Adding a filter to scaffolded tables

I just wrote a start for a filter which I can easily add above scaffolded tables. Scaffolding is great, but I want a form above to limit the number on results based on my parameters. It is not finished, but I just post what I have, any tips, let me know.

vrijdag 8 februari 2008

jQuery worth trying

This is a very short post, but I wanted to tell you about jQuery. I tried it earlier this week in a new CakePHP 1.2 project. Just included jquery.js in my layout and used the code below to have a toggle effect. With Mootools I always needed much more code to achieve this effect.

Try this example.

Let me know what you think of this!