Nice, and some feedback

Hi,

I've been checking the livepipe website for months! Glad to see it back up and am glad to see Picora! I love the simplicity and the fact that it's in one file!

Just some feedback here... How about putting the beginContentFor and friend to a separate helper class? It seems more like a helper.

How about a callback to all view helpers that pass the contents of the newly rendered template, to allow helpers to manipulate the view before the main view object returns it? ViewHelper::postViewRender($file_contents)

What about a view helper like Django's "extends" to let you do wrapping without having 2 statements? If you had the helper call back above, this could be possible.

What about letting the helpers have access to the view instance: $helper->view

Do you have plans to implement an http request object?

Anyway, very nice work. I've been working on something very similar to Picora. Are you interested in more developers?

Thanks, Matt

Posted April 7th, 2007 at 6:07pm by goodieboy

Thanks for the feedback! For personal reasons I was unable to maintain the site for many months, but I'm back on track and the most exciting releases are still ahead. Stay tuned...

In beta 3 PicoraView will gain:

protected function beforeDisplay(){} protected function afterDisplay(&$contents){}

There is no helper class, it's all in the view object, and to keep the "micro" ness of the framework, I don't want to add any more classes. Because of this, every view method already has access to the PicoraView object, because $this will always refer to it.

extends: This looks interesting, but it probably uses some django/python black magic. I've done some similar work in rails, and the functionality to make that easy is language level. It's possible in PHP, but no where near as pretty. I think it's out of scope of what I am trying to do, which is stay really really simple.

I am looking for more developers, but more just to go out and develop things with it and tell me about it! When I want all the goodies I use my own proprietary framework / CMS or rails.

Although if you want to write more unit tests I sure as hell wouldn't mind =)

Posted April 8th, 2007 at 9:05pm by ryan

Login or Register to Post