News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Felix Geisendorfer's Blog:
Handling inline links to dynamic resources
November 08, 2006 @ 07:21:00

On the ThinkingPHP Blog today, there's a look at how to handle inline links to dynamic resources - specifically allowing users to create links in their own content to dynamic content elsewhere on the site.

I thought of something that would be both, easy to implement and easy to use. What I finally came up with is tightly coupled to my new url system that I'm using, so make sure to check it out in case you've missed it.

The basic idea of the system is that the URL of the page (made up partly of the title) would be the unique identifier for the page. For example, "[page 12]" would be expanded out to "/pages/12:my-title". Felix takes this idea and runs with it, showing how to implement it in a CakePHP project inside of a Model and a Component. The sample usage code is, of course, also included in the post.

0 comments voice your opinion now!
dynamic link inline cakephp page title unique dynamic link inline cakephp page title unique


blog comments powered by Disqus

Similar Posts

The Bakery: Mambo, Layout Switching, SimplePie and Caching Elements

IBM developerWorks: PHP frameworks, Part 1: Getting started with three popular frameworks

Felix Geisendorfer's Blog: Making error handling for Model::save more beautiful in CakePHP

Debuggable Blog: How to paginate a CakePHP search over a HABTM relation without hacking the core

Chris Hartjes' Blog: My Next Foolish Project: A console for CakePHP


Community Events





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


threedevsandamaybe application library language framework series laravel release interview install podcast developer introduction community unittest configure api code wordpress list

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