Maximum level reached. You cannot reply to that comment.

Uncategorized

Free CakePHP Book

Download

Right Here

About

Super Awesome Advanced CakePHP Tips is free e-book about the CakePHP Framework. It covers topics that are generally missed in the beginner books that are on the market. You can read more in the announcement blog post.

Contents

  • Who Should Read This Book
    • How to Read This Book
  • How to Learn CakePHP
    • The Paid Way
    • The Free Way
    • After you’ve done Either/Both Of The Above
  • Models
    • Recursion
    • Containable Behavior
    • Why You Should Use It
    • This Will Catch Everyone At Least Once
  • Custom Find Types
    • The Unofficial Cake Way
    • My Way
    • Comparison
    • App Model
  • Getting the Logged In User from Anywhere
    • The User Model
    • In The AppController
    • Back to the User Model
    • Usage
    • What About The Configure Class?
    • Full Source
  • Automatically Tracking Created/Modified By
    • Database
    • Model Relations
    • Model BeforeSave Callback
    • Behavior BeforeSave Callback
    • The Full Behavior
  • Routing
    • Case Insensitive
  • Unit Testing
    • Views
      • Setting Up The Files
      • Setting Up The Test Class
      • Standard Index View
      • Creating The View Test
      • Testing the Rendered View
    • Controllers
      • Doing Things the Hard Way
      • Testing A Controller Method
      • Making assertions
    • Mock Objects
      • What is a Mock Object
      • Where can I get one of these fabulous devices?
      • Makings expectations with Mock Objects
    • Models
      • Test Case
      • Fixtures
    • Merging Add and Edit Actions
      • The Controller
      • The View
    • Cake Tricks from The Core
      • Cake Style $options Parameter
      • Handling Data Arrays with a Single Record or an Array of Records
    • Stupid Easy URL Slugs
    • jQuery
      • Replacing $javascript->event()
      • Replacing $ajax->link()
    • Expanding Trees With jQuery
      • Basic Tree
      • TreeHelper
      • TreeHelper With jQuery
      • Cleaning Up the Images
    • JavaScript In Views
    • Make Your Cake App Fast
      • Don't Use $uses Unless You Really, Absolutely Have To
      • Model Chains
      • Controller::loadModel and ClassRegistry::init.
      • Use Containable
      • Set Debug to 0
      • Cache your slow queries/web service requests/whatever
      • View Caching
      • HTML Caching
      • APC (or some other opcode cache)
      • Persistent Models
      • Store The Persistent Cache in APC
      • Speed Up Reverse Routing
      • Unchain Your Models
    • The Giant Configuration, Version Control and Deployment Section
      • Version Control
        • core.php
        • bootstrap.php
        • database.php
      • Multiple Environments
      • Deployment
        • Debug
        • Cache
      • Alternate Methods
    • CakePHP Reserved Classes
    • From The Bakery (And Other Places)
      • Behaviors
        • Sluggable
        • Soft Deletable
        • Linkable
      • Plugins
        • DebugKit
        • NamedScope
      • Helpers
        • Asset
        • Jquery Validation
        • HtmlCache
    • Copyright
    • Revisions
Posted in Uncategorized

BlogFollow - Show a snippet from a commenter’s blog in the comment

About BlogFollow
BlogFollow is a WordPress plugin that shows a snippet from a commenter's blog at the bottom on their comment. The purpose of this is to encourage user participation in your blog, by providing an incentive - an excerpt from their blog. Both parties win. The blog using BlogFollow receives more comments/content. The commenter has a chance to win new readers using both the comment and a snippet from their blog, which may be completely unrelated to the post topic.

Version
v1.0 - Initial Release (April 21st, 2007)

Compatibility
WordPress2
PHP4 and PHP5

Download
blogfollow.zip

Install
1. Upload the full directory into your plugins directory
2. Activate it in the Plugin options
3. The commenters feed will be determined automatically if they enter in a url. You don't have to edit your tempate files either.
4. You may want to edit your css. See below for an example.


/******************** BlogFollow Plugin *********************/
.blogfollow {
	margin: 0;
	padding: 5px;
	line-height: .5em;
}
.blogfollow legend {
	font-weight: bold;
	padding: 0 5px;
}
.blogfollow h2 {
	margin: 0 0 5px 0;
	padding: 0;
	font-size: 1.1em;
	font-weight: bold;
}
.blogfollow p {
	padding:0;
	margin: 0;
}

Badge
You can also add the BlogFollow badge to your site, so readers know you are running the plugin. Add to your template:


This blog is running the BlogFollow plugin.  If you comment on a post an excerpt from your latest blog will appear below your comment.

In The Future

  • Option to adjust the cache time (currently 24 hours - although Magpie RSS Parser also has a cache so it could be longer)
  • Whitelist/Blacklist option
  • Option to configure the generic text (currently "Read more from ")
  • Option to set how much of the post to show (currenlty 100 characters)
Posted in Uncategorized

About This Blog

Mission Statement:
To produce a new website every calendar month. The site doesn't have to be the next Google or MySpace, but should be interesting/useful.

Conspirators:
MattC - Does all the programming for the sites. This includes coding, DB, design and setting up hosting. And when I have time: marketing, sales, user interface design, site concepts, Q/A.

Guidelines:
The sites produced should be "fire and forget". This means it can't be a blog or some other site that requires constant updating from us. Therefore the site will generally fall into one of two categories. 1. Tool - A site that performs a useful function, for example GotAPI.com or KeepVid.com. 2. User Driven - A site where the content is provided by the users. Sites like Wikipedia.org, Flickr.com, or any of the million social networking sites fall into this group. The bottom line is maintaining one site is hard. Updating 12 new ones every year is impossible.

The site and all functionality will be built within the designated calendar month. If it's not done in time, then what is done will be launched and we will move onto the next site. Bugs may be fixed in old sites as they are found, but no new functionality will be added. The month following the launch of the site will be used to promote the site through web forums, press releases, blog postings...

The "I make the rules, so I can break them" clause:
We reserve the right to revisit any of our prior sites should the need arise. Say one of the sites really takes off and could use some new features that we didn't have time for originally. We would designate another calendar month to working on the site.

Posted in Uncategorized