Pundit changes. Major overhaul of the file-layout.

I did a huge-ass overhaul of the file-layout in Pundit which breaks every thing.. Or just a tad more than that.

So why did I do it? Developer-friendliness. You. Yes, You.

If you were to start developing an application using Pundit you had to:

And really, who wants to do all that. No, so the new file-structure already contains everything including a skeleton for your application with easy overloading of Pundit features. So now you only need to do the following:

See, much nicer.

The actual new file-layout

index.php
.htaccess
application/
    .htaccess
    models/
    controllers/
    views/
    library/
    public/
        .htaccess
        js/
        css/
library/
    .htaccess
    Pundit/
    Solr/
    Smarty/
scripts/
    .htaccess
public/
    .htaccess
    js/
    css/

Which, if you have used RoR, CakePHP or Pundit prior should be pretty self-explaining.

Other changes

New and improved configuration method

Or, it’s actually not new, just actually used for something now.

The standard way of doing configuration of Pundit is now using either application/config/config.php or application/config/config.ini (a config.xml will maybe follow) which will be autoloaded and parsed by Pundit.

I will post about all the stuff you can influence by changing configuration-settings later, but for now the ones listed in the default config file will do.

Rewrite or PATH_INFO?

I’ve added support for using PATH_INFO instead of mod_rewrite if your host doesn’t support mod_rewrite. And as a matter of fact I’ve set this behavior as the default one for Pundit. If you need to change it back to the mod_rewrite way, set application.use_rewrite to true in your configuration file.

Shorthand-functions

Since I’m beginning to use PHP-templates more lately I was getting bored of all the PunditRegistry::get(’sth’) or PunditRegistry::get(’config’)->get(’application’, ’sth’); calls. So I’ve added some shorthand-functions which you can activate by setting core.use_shorthand to true.

So far I’ve only added p_reg() and p_conf() which corresponds to the two calls listed before.

PunditBlog demo-application

Of course I’ve updated the demo-application to correspond to the latest changes.. ;)

-fangel

Read more | May 12th, 2007 | Pundit | No comments

Pundit demo-application

Heyya
Soo, this it actually old news but since I never blogged about it, here goes. I did a small demo-application for Pundit. It’s one more of the ever useless “how to create a blog in 20 minutes with framework X” but with one important twist - it doesn’t have a video or anything. Just the [...]

Read more | April 8th, 2007 | Pundit | No comments

Pundit changes. And to the better as a matter of fact.

Weekend. Music. Coding. Three words that when brought together means changes to Pundit. And since I was getting bored with two specific things in the framework I had to go and change both. And of course one breaks all things known as backwards-compatibility.
So.. Here’s a quick intro to the things I got bored of typing [...]

Read more | March 18th, 2007 | Pundit | No comments

Pundit progress: Solr integration and revision 100 passed

I’ve spent a lot of time this weekend on added features to Pundit. Most noticeable is the Solr integration. For all you guys who don’t know what Solr is, its a search-thingy which is really fast and just utterly cool. Go read up on it at their site.
It only took 221 lines of code and [...]

Read more | March 11th, 2007 | PHP, Pundit | No comments

Wiki-kayay mother-funker.

Introducing.. The hardest working man in Show-Business… Faaaaangel. No, wait, thats not right. I’m not in show-business. And really I’m not that hardworking. And it’s not myself I’m introdusing, it’s my wiki.
Let me start over again, okay?
I have setup a wiki for some of my projects over at http://wiki.sevengoslings.net/. The area most likely to attract [...]

Read more | October 22nd, 2006 | Personal, Pundit | 2 comments

Full steam ahead. Go to Warp 9.

I have been spending some time doing speed-optimization of Pundit and the code I have made for UniteIT so far. My tool: Zend Studio and its “Profile URL” function. (find it under Tools -> Profile URL. You need the Zend Studio Server extention loaded on you apache process)
I still have some way to go [...]

Read more | October 8th, 2006 | PHP, Pundit | No comments

Pundit ftw! - and UniteIT status

I’ve been hard at work trying to code the new version of UniteIT - and of course I’m using Pundit. And can I just say - its a charm working with it. I have found some bugs and added a few features since the Introducing-post. The most prominent changed I’ve done is actually making PunditModel::save() [...]

Read more | September 24th, 2006 | Pundit, UniteIT | No comments

Introducing Pundit

New design
First of all, I have redesigned this site to this clean look. Clean being keyword here, I removed pretty much everything. That includes Live-Comments - but they will be back whenever I get the time… I used the motto “If you dont got it, dont show it” and then removed everything - nice, huh? [...]

Read more | September 15th, 2006 | PHP, Pundit, UniteIT | No comments