 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
SitePoint PHP Blog: DOM vs. Template
by Chris Cornutt 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.
voice your opinion now!
dom template smarty domlings html replace
Alex Netkachov's Blog:
by Chris Cornutt 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!
voice your opinion now!
eclipse tip autocomplete type hint template
NETTUTS.com: Create a PHP5 Framework - Part 2
by Chris Cornutt 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.
voice your opinion now!
mvc framework tutorial database template example
Total PHP: Browser based template editor
by Chris Cornutt 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.
voice your opinion now!
tutorial template editor form browser
ProDevTips.com: Pagination with PHP Doctrine
by Chris Cornutt September 04, 2008 @ 09:30:06
The ProDevTips blog continues their series on using Doctrine in a sample application in this new part, a look at paginating the results from your database query.
Things are starting to become more and more feature complete. Let's look at how to implement general search and pagination.
They define the search to perform ($searchConf) and the pagination parameters ($pageConf) and apply them to their current Doctrine setup applying a simple layout to make the numbered links for switching between pages. They also define the search() method that pulls the results from the table to push into the pagination component.
voice your opinion now!
pagination doctrine configure search template tutorial
Chad Kieffer's Blog: Speed up PHP development in Eclipse PDT with Templates and Snippets
by Chris Cornutt September 03, 2008 @ 11:17:54
Recently Chad Kieffer made a post to his blog about a handy little feature of the Eclipse IDE that can help you speed up your development - snippets and templatings.
You already know that Eclipse PDT provides autocompletion and hints for PHP's built in functions. In addition, commenting your code with PHPDoc adds autocompletion and hinting for your application's classes, methods, and variables. If you haven't already discovered, Eclipse PDT also provides autocompletion of PHP's control structures, class definitions, and methods through code templates.
He gives examples of both the templating and the snippets - inserting a switch() statement template and how to create a custom snippet of whatever code you choose.
voice your opinion now!
development eclipse pdt speed template snippet
PHPClasses.org: Site design theme editor
by Chris Cornutt September 03, 2008 @ 10:28:24
A while back the PHPClasses.org website announced that it would be changing its look a bit and allowing visitors to set up and configure their own look and feel as they chose. The editor to make these changes has finally been released and is ready for use.
The site is launching an editor that allows designs to propose new site design themes. This is the initial beta version of the site design editor, but it already allows any designer to try different presentation designs.
You can access the editor from here and it'll require a login to get in (to create your own custom layout). The system uses simple tag-based templating to wrap the content of the site in your look/feel of choice. You can even try it out on different sized resolutions to give you an idea of the template's flexibility.
voice your opinion now!
design contest theme custom editor template tags
|
Community Events
Don't see your event here? Let us know!
|