News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

Eran Galperin's Blog:
OO PHP Templating
November 18, 2008 @ 13:05:30

On the TechFounder blog, Eran Galperin has taken a look at object-oriented templating in PHP applications, comparing the older search and replace method with the inclusion of PHP-based templates.

PHP as a language can be considered a templating system, as in its root it was meant to modify HTML pages dynamically. The need for more structured templating systems arose as PHP applications have grown more and more complex, giving birth to much more specialized and focused solutions.

He illustrates with an object replacement example - parsing the template as a PHP script and replacing any objects found with the corresponding object property value.

0 comments voice your opinion now!
template project search replace include object



Submission:
Taylor Luk Releases H2o Templating System (Django-inspired)
November 13, 2008 @ 09:31:41

Taylor Luk submitted some info about a project he's been working on for a while and is ready to release into the wild and see how useful it can be for others - H2o Template, a Django-inspired templating system.

I have been developing this for quite a while, started as a fun project to do django like syntax and compiles down to php code. Unlike the last django-like template for Zend Framework, this one is more stand alone. After couple major rewrite, now i am releasing 0.3 beta.

The syntax of the templates is pretty similar to Django and it includes a built-in caching driver, an extension system that allows for external filters/tags/extensions to be added in easily and internationalization support. He's currently using it on a CakePHP website in a view class on a production system.

Get more details and access the source on the project's github page.

0 comments voice your opinion now!
h2o template django inspire extension filter internationalize


PHPWomen.org:
PHPWomen ZendCon Unconference "Women in IT"
October 31, 2008 @ 11:16:56

As a part of this year's Zend/PHP Conference and Expo (2008), the PHP Women group hosted an unconference session. They talk about the session in this new post to their site.

At ZendCon this year, Juliette Reinders-Folmer of phpwomen.org ran a session in the unconference entitled "Women in IT". In this session she invited the attendees (a fairly even mix of the genders) to discuss various aspects of women working in the male-dominated IT industry, and specifically in PHP. We were lucky enough (thanks Paul Reinheimer of php|architect!) to get the session recorded.

You can download the audio from the phpwomen.org website and check out the forum entry to continue the discussion. Their post also includes several talking points concerning women in the IT industry and how PHP Women can help.

0 comments voice your opinion now!
phpwomen zendcon08 unconference session women it mp3 podcast


AskAboutPHP.com:
CodeIgniter Organizing views simply
October 29, 2008 @ 15:35:08

New on the AskAboutPHP.com blog, this tutorial concerning CodeIgniter view organization has been posted:

Trying my hands at using CodeIgniter, one of the first obstacles I had was how to organize my 'blocks' on a page. Without knowing any better, I thought I had to reiterate the same view calls in every function within the controller, making the controller codes very messy. It turns out that CodeIgniter allows us to nest views within views, and that has made things a lot simpler for me.

Instead of loading and calling the view() method over and other in his actions, he chooses to make a "template" view with each of the other calls to view() contained inside. Then you just pass in the data you want the view to render and call that template view. This also allows you to easily create a site-wide template.

0 comments voice your opinion now!
codeigniter framework organize view template container


DevShed:
Securing Your Web Application Against Attacks
October 21, 2008 @ 08:47:32

DevShed continues their series focusing on the security of your web application in this fifth part of the series. This time they look at preventing attacks on your app via correct authentication.

You will probably recall from the last article that I mentioned the existence of two methods of authentication and discussed the first one, which is through an HTML form. In this article, the fifth one in an eight-part series, we'll start with the second method of authentication. We'll also discuss how attackers may gain access to your system.

This authentication method uses a simple form to let the user pass in their credentials. Unfortunately, because of its simplicity, this also opens it up to three kinds of attacks - password sniffing, reply attacks and brute force attacks.

0 comments voice your opinion now!
secure application tutorial html form login password sniff brute force


NETTUTS.com:
The Anatomy of GamePress - Part 1
October 09, 2008 @ 09:35:51

The NETTUTS site has a tutorial posted today that's part one of a series looking at the Gamepress theme for WordPress and how to customize it to your needs.

GamePress is a "Gaming News & Reviews" theme for WordPress and currently one of the most popular themes at ThemeForest. It is the most advanced theme I've created so far, and really pushes what the WordPress engine can do!

This first of two parts introduces you to the template and the various components/content blocks it contains like the Features Slider, Latest Headlines, Older News and the Reviews page. You can check out a live demo of it in action to see what you think.

0 comments voice your opinion now!
gamepress wordpress template gaming review news


SitePoint PHP Blog:
DOM vs. Template
September 25, 2008 @ 11:18:25

In this new post to the SitePoint PHP Blog there's a look at using a small templating engine recently released by Fredrik Holmstrom that takes a different tack on working with template files - it parses them into a DOM structure.

The main difference to traditional template engines (Such as Smarty), is that the template it self doesn't have any imperatives within. In fact, the template doesn't even have to be written to the template engine, to be used - Any markup can be used as a source.

The templating system uses Domlings, bits of HTML to match against and replace with the bound information. A few examples are included - a simple binding, how to switch out a block of HTML, pushing it back in and looping over a block of information to do some search and replace.

0 comments voice your opinion now!
dom template smarty domlings html replace


Alex Netkachov's Blog:
September 23, 2008 @ 07:08:23

In a new post today Alex Netkachov shows a handy little tip for the Eclipse users out there that want to use the @var type hint in their code.

@var variable type hint is very useful, but adding it a little bit complex: usually you need to type the class name or copy/paste it from somewhere. But with Eclipse PDT templates you can simplify this and add an autocomplete for variable name and class name.

It's a simple one-step process - you just add in a new template to your Eclipse application and it will prompt you to select the class name from a list and drop it right in. No more cut and paste needed!

0 comments voice your opinion now!
eclipse tip autocomplete type hint template


NETTUTS.com:
Create a PHP5 Framework - Part 2
September 16, 2008 @ 10:39:53

NETTUTS.com has posted the second part of their tutorial on how to create a simple framework of your own in a PHP5 environment.

With the basic structure for our Framework in place, it is time to start adding functionality to it. In this tutorial we will create a template manager and database handler, bringing us a step closer to a powerful Framework fit for use for almost any project. If you haven't already, be sure to review Part 1 of this series first!

This time they look at a few different parts of the framework, namely the database handler, the template manager and loading data into the framework. The end it with an example of the simple framework in action - pulling a list of members from a database and displaying them to the page.

0 comments voice your opinion now!
mvc framework tutorial database template example


Total PHP:
Browser based template editor
September 04, 2008 @ 14:34:36

On the Total PHP blog today, there's a new tutorial showing how to make a very basic template editing form to update the templates for your site.

A common feature to CMS scripts is a browser based means of editing your templates. This can be helpful if you manage your site remotely or on the move quite often. In this tutorial we walk through how to create a simple template editor in PHP.

The process is pretty simple - a form that allows you to either create or edit a current template file and some PHP that handles the submit. It takes in the data from the textarea and pushed it out to the correctly named file. It's a pretty simple setup and it requires that the web server user can write to the files, but it can be a big help when you can't get into the machine otherwise.

0 comments voice your opinion now!
tutorial template editor form browser



Community Events









Don't see your event here?
Let us know!


zend code framework job releases PHP5 zendframework cakephp conference book release application ajax PEAR mysql database example developer security package

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework