Quelques bonnes adresses CakePHP vues entre le 26/08/2010 et le 02/09/2010:
I've been getting to grips with the newest release of CakePHP which at the time of writing is 1.3.3. The first thing I usually do on an application is get a simple Admin section underway and here it is.
Everything has been included in a single zip file but you must first go through the motions of creating the database and update the database.php file as well as change a few things in the core.php file.
Today I found a good article about TDD, Test Driven Development using CakePHP 1.3. Nowadays with the constantly changes of scope in one web project the TDD is something that all programmer must know and practice, and some frameworks like the CakePHP give the support for that.
In a recently article for the php architect magazine, Carl Anderson describe a great article how to use the TDD inside the CakePHP 1.3.
You can download that tutorial by free here
I am using it for a while, but today I’ve decided to publish in the github.com. What this plugin does? The plugin is complete solution to add menu in your applications. It uses the nifty Superfish – jQuery menu plugin. You can find more info for it at http://users.tpg.com.au/j_birch/plugins/superfish/ Cakemenu can work with multilevel menus [...]
With JSConf.eu coming closer, I slowly have to start preparing my talk, which
mostly means hacking on node-dirty.
I have a few goals for the project. My main interest is challenging a few
assumptions people have about the performance and complexity of database
systems. Most of that is material for another post and my talk itself, but
today I'd like to talk about hidden classes in v8.
One of the things that is really fast in v8 is property lookups. This is
due to an optimization that creates hidden classes for an object.
I could go into a lengthy explanation of how that works, but instead I'll
invite you to see for yourself.
Consider the following two examples and guess which runs faster, and by how much:
Example 1:
I’ve been creating some bash scripts for an importer we are running at work. I was looking to do two things with this. Firstly, I wanted to brush up on my knowledge of bash scripting. Secondly, I wanted to improve the notifications sent out from the importer. I managed to get everything working fine.
Just a quick tip, I've been playing with the new 1.3.3 version of Cake recently and was trying to get the database sessions up and running but had difficultly finding the schema for the sessions table without using the command line to generate the table.
Here's the raw SQL that can be used to create the table. I'm sure it'll be useful in the future for me so I thought I'd share.
CREATE TABLE `cake_sessions` (
`id` varchar(255) NOT NULL DEFAULT '',
`data` text,
`expires` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
);
Now you just need to modify the core.php file so that the database is used for Sessions instead of the default:
Configure::write('Session.save', 'database');
シカゴで開催されるCakeFestに参加するために、明日から1週間ほどアメリカに行ってきます。
http://cakefest.org/
去年、CakeFest2009@ベルリンに参加し、色々な人と会えて刺激を受け、世界が変わったので、今年も参加。去年のレポートはこちら。
今年はなんと、英語で発表してきます。えいや!で送ったプロポーザルが採択され、カンファレンス1日目の昼食前に、1時間の発表枠で話すことになりました。内容は、MongoDB + CakePHPのこと。
実は今年のCakeFestは何かしら発表したいなと思ってて、そこに自分の作ったMongoDB Datasourceの内容がうまくフィットしそうだったので、応募しました。英語がたどたどしいと分かってて僕に発表枠を与えてくれたことに感謝!
このネタなら採択されるだろうなというものが手元にあり、まだ旬が過ぎてないという状況はまたとないチャンスということで、英語に不安をかかえつつ、チャンスに飛びつきました。躊躇したら負けるなと思ったので勢いで送った。
人生の中で英語で1時間もプレゼンする機会はあまりないし、これを機に新しい一歩が踏み出せるかもしれないという期待を抱きつつ、行ってきます。
歳を取るごとに新しい刺激がどんどん増えていく人生がいいなと思ってるので、その状況にだんだん近づいてきました。20代後半から特に。
30代のテーマは世界の壁を越えるというものになりそう。世界との壁を意識せずフラットに行動、交流できたらいいな。そして自分の子供にもそうあってほしいので、まずは自分がその壁を取り払わないとお手本になれないから、しばらくがんばってみます。
<!-- google_ad_section_start -->
Here is a tool that might help you with your MVC framework, like CakePHP, Symfony, and others – ORM Designer. In essence, it is a graphical user interface for drawing a visual representation of your project (such as an Entity Relationship Diagram (ERD)) and than converting it into the code. You can specify which framework and which ORM you want to use and it will generate the appropriate bits and pieces. What’s even more interesting is that it has import functionality, which means that you can start using it with an existing project. Here is the video that shows and explains more.
jQuery UI provides many fancy user interfaces for web developers. You can follow the steps below in order to use jQuery UI in CakePHP.
1. Download the jQuery UI library at jqueryui.com
2. Unzip the downloaded archive and copy the css folder and two .js files to /app/webroot
3. Add the following lines in your view file where you want to use the jQuery UI components
Veja também em:
http://www.itweb.com.br/blogs/blog.asp?cod=162
Plugin PagSeguro
Sem dúvida, uma das grandes dificuldades quando o assunto é pagamento on-line é a integração com as operadoras de cartões e bancos. Uma das ferramentas disponíveis para quem utiliza esses serviços e que traz vantagens tanto para o desenvolvedor quanto para o cliente ao qual se afilia às operadoras de pagamentos são os Gatways de pagamento. Esses serviços geralmente trabalham com várias bandeiras e bancos, disponibilizando um grande diferencial para pagamento em e-commerces e sistemas que utilizam paramento on-line.
Um Gatway de pagamento muito interessante é o PagSeguro, pertencente ao grupo UOL. Esse serviço se integra a diversos bancos e bandeiras, tornando-se muito simples para o desenvolvedor. Pensando nisso, criei um plugin para o CakePHP que, além de integrar-se, também faz o tratamento dos dados para envio ao PagSeguro.
I'm going to show you how I implemented a payment module via the Alertpay payment processor.
本日、初音ミクの誕生日である8月31日限定で渋谷シアターTSUTAYAで開かれているミクカフェをチラ見してきました。記事末尾に動画もありますよ。
公式ページ。
渋谷シアターTSUTAYA。
整理券を持った人たちが次の入場の列を作っていました。
We have decided to start pushing education and different technologies by giving away educational material on every 1st and 15th of the month. There is no catch, but be sure to read the directions below on how to enter.
Book topics that will be included in the giveaway are:
To be included in the drawing for each part of the month, you simply need to post a tweet that mentions Loadsys (@loadsys) and tag it with CakePHP (#cakephp). It would also be helpful to follow us so you can get notified when we draw the name. We will only ask for more information privately when we need to ship out the book.
Finally the Authake Plugin have an Installation guide. Basically the plugin provide Authentication and Authorization functionality for CakePHP’s appliation with few line of code. Authake has advanced User-Group-Role interface and allow you to secure your CakePHP’s application within a minute. The current version of the Plugin is “wrapped” in a single folder (according to CakePHP [...]
Work on CakePHP 2.0 is moving along, and I wanted to take some time to discuss and explain one of the sizeable refactorings that has been done for 2.0. In previous versions request parameters were just a bunch of arrays that were copied to the various places they were needed in the framework.
This is a helper + controller combo for CakePHP which I often use. It helps to re-size images at run-time and also aid display them. Oh yes! once the image is resized it also caches them. First let's look at helper method. PLAIN TEXT PHP: class MyHelper extends AppHelper { function getImageUrl($path, $size, [...]
Hi to everybody, this is a simple way of implement a bbcode parser, i have upload this because i haven`t found anything that let me implement my own tags and the helpers i have seen werent very secure.
I was doing a project, and needed to do a custom query to return a certain set of data from the table. I needed to be able to paginate those results, and using the "out of the box" or "base" pagination was not going to be able to handle this. So I needed to use the power of the paginator object, and set a custom query, using a custom model object, and set the options for the views to build the links appropriately.
There's plenty of information out there on how to create your own session handler for CakePHP, but when I needed to add some customization on top of the database storage system, I had to do a good amount of debugging and tracing to find out the best way to accomplish it. Hopefully, this will save you some time if you're doing the same thing.