Archive | HowTo RSS feed for this section

[CakePHP] Pagination options persistence

TweetEditing a record and redirecting to a paginated list is a very common workflow pattern in CakePHP. However there is a small problem with this pattern if used with default pagination. after editing the user is always returned to to the first page with the default order and default limit. This is not very user [...]

Read full story · Comments { 2 }

[CakePHP] Organizing themes in sub-folders

TweetCakePHP offers a wonderful built-in theming solution. However, the only shortfall is that all themes are to be kept in a single folder and there is no direct way to organize them in sub-folders. This post assumes that you are familiar with CakePHP Theming concepts. If not, then head on to the book before reading [...]

Read full story · Comments { 1 }

Geo-distance search in Sphinx

TweetA common scenario in many search applications is geo-distance based searches. Geo-distance search means finding geographic locations nearby to the specified point on earth. Geo distance search is a very common feature in applications involving set of entities each having a specific geographic coordinate associated with it. Some examples are real estate portals, property listings, [...]

Read full story · Comments { 3 }

[How To] Create a component in Joomla – Part II

TweetIn my last blog post I wrote about How To Create a component in Joomla. The output text was hardcoded into the view. This doesn't follow the MVC pattern exactly because the view is intended to only display the data, and not contain it. In this second part of the tutorial we will demonstrate how [...]

Read full story · Comments { 0 }