A CakePHP component that connects to the most excellent file syncing tool known as Dropbox. Since Dropbox (http://www.dropbox.com) currently doesn't offer an API this component will login to Dropbox and parse their HTML using cURL. This component requires that you have the cURL extension loaded. This component can... List the files/folders of a dropbox folder using the files function. Get a dropb
This little behavior is more of a learning experiment for me into how behaviors work in the CakePHP side of things. It helps me with maintaining a list of users who are emailable rather than write a component or a model. Read on for more... This jist of this is, I want whatever model I plug this into to maintain it's own list of who (or what) will receive emails or not. This is great when your sal
Increment Behavior is ideal for use when you want to increment a certain field by a delta increment such as adding votes, updating view counters, etc. First, the code for the Increment Behavior Class, save the following code to a file called increment.php to the app/model/behavior directory. Behavior Class:Download code <?php /** * Increment Behavior Class file * * @author Ketan Patel * @li
When I first started, I realized that CakePHP didn't have an LDAP data source officially supported yet. I did find two articles about some good attempts. One by euphrate, unfortunately this one was only for reading from ldap. The second one was by Gservat, this one was a bit more complete, but was not really working for me. Before we get started I want to state the environment I was using to do my
A plugin to check whether your code follows Cake conventions. The plugin can be obtained from http://github.com/petteyg/code_check. Following coding conventions makes it easier for everyone to read code. CakePHP has a set of coding standards, available at http://book.cakephp.org/view/509/Coding-Standards. If you've written lots of code and aren't sure it follows the conventions, it can be hard t
Updated: July 5th, 2009: Added Express Checkout and modified both the component and the file under vendors. Also you will need to change the line that calls the paypal component for the direct payment controller. ----------------------------------------------- Looking for a lightweight, easy to use, Paypal credit card processing script? You have found it! This is for Cake 1.2. All you need is
My logs were getting big really fast. CakeLog does (at the time of writing) not have rotation built in so I put this little component together. Possibly someone else is logging as much as I am :) This component has some of the basic features of something like logrotation on Linux systems. The component is written so that pasting the code into the CakeLog class should be possible if you like hack
KCAPTCHA is a free and open source PHP solution to generate human validation images (CAPTCHA). KCAPTCHA is meant to be a very strong protected one but requires no special hosting featires, only PHP with GD library. You can download Kcaptcha from here: http://captcha.ru/en/kcaptcha/. After this, put kcaptcha folder into vendors directory. Create Captcha component: Component Class:Download c
Rails is very friendly for debugging by logging the request info and sql query. Developers can use tail -F command to watch the log for keeping in mind that what is framework doing in background. Cake put the sql query on the bottom of the page. Usually it's helpful. But in some case it's helpless.Such as performing a delete action or get data by AJAX. I will show you how to make Cake acts as
CSV is a standard format, which is often used to hand over tables or other information you want to handle in your CakePHP application. Since every CSV file is different you have always to implement a new import routine. To change this and to ease the access to CSV files this datasource implements the 'R' for read of the CRUD. The CSV datasource is readonly right now, but it is handy to easily re
I was looking for a way to export data in an iCalendar (RFC 2445) compatible format. To accomplish this I created a helper class that generates this code using the iCalcreator class. There are two major iCalendar classes available for PHP, phpicalendar http://phpicalendar.net/ and iCalcreator http://www.kigkonsult.se/iCalcreator/index.php. I chose the later since it was a single class file and sli
History does not happen, it is made. Warning: this message is long and full of goodies. Today, the history of the CakePHP grows stronger. December 25, 2008 will be remembered as one of the most important points in this history. After exactly 2 yrs from the first development release, we can happily say we have the most stable and powerful web framework available. Please enjoy our big present to you
CSRF attacks take advantage of the fact that if an authenticated client opens a page with a link , the browser will treat it as a regular link (normal!) and send over the credentials to the website, thus allowing the action to be performed. This component's goal is to suppress that risk by protecting your links with a secret. Everytime an action is authenticated and performed, the component will
This simple little JQuery function allows you to drop paginated data into your views with ease. I chose to implement ajax pagination in this manner because I wasn't able to successfully follow Rob Conner's technique in his super-useful Advanced Pagination article (http://bakery.cakephp.org/articles/view/advanced-pagination-1-2). I assume in this article that you are familiar with basic paginatio
Many organizations today utilize LDAP to store client and employee information. This tutorial will show you how to harness that data (as use in a CakePHP model) in your applications. Introduction Many organizations today utilize LDAP to store client and employee information. This tutorial will show you how to harness that data (as use in a CakePHP model) in your applications. L is for Lightweig
I was recently outputting some comma-delimited data and thought I would benefit from a simple csv helper. I hope this helper benefits someone else as well. This is my first submission so please give any criticism. This CSV helper enables you to output data in a csv format. It can automatically output the necessary headers so that it will open in Microsoft Excel. Sample Usage Download code $line
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く