| CARVIEW |
Feeds in the planet
English
Español
Nederlands
日本語
Português
Česky
Deutsch
HipHop for PHP
HipPHPとか、HipPopとかじゃないんですね。PHPのソースコードを「optimized C++」ソースコードに変換するというこのプロジェクト、実際に使われているものがオープンになることもあって、非常に話題になっています。と、CakePHP 1.2ガイドブックの共著の安藤さんがさっそく翻訳していました。翻訳:https://blog.candycane.jp/archives/275PHPをC++に変換して高速化する「HipHop for PHP」をFacebookが公開原文:HipHop for PHP: Move Fasthttps://developers.facebook.com/news.php?blog=1&story=358mod_cakeとか、mod_cakephpなどとつぶやいていた人にとっては、ぜひとも試してみたいプロジェクトですね。apacheではないらしいですが、そのうちブリッジをだれかが作るのではないかと。CakePHP 1.2ガイドブックのもう一人の共著者である新原さんのほうは、こちらではてなブックマークのホットエントリいり。Shin x blogPHP基礎文法最速マスターhttps://www.1x1.jp/blog/2010/01/php-basic-syntax.html
Getting layout variables in the view
I'm lazy and I want to save a line of code. :-) Plus, I don't want to repeat myself, and I'm just curious.
I have a heading which is the same as the page title. Is there a way to read the variable $title_for_layout from the view?
EDIT: I have found the way to accomplish more or less what I wanted, so I'll share it here.
First, of course it is no problem to set one more variable, but it
The fate of class suffixes in 5.3
Before PHP 5.3 was released, many programmers would suffix their classnames with the package and or module that it pertains to. For example, SessionHelper, UsersController, CommentModel, so on and so forth. But with the recent upgrade to namespaces, are these types of suffixes still required? // Current Practice
SessionHelper();
// Namespace Practice
\app\libs\helpers\Session();
// Redundant Practice
\app\libs\helpers\SessionHelper();
Error sending confirmation email
Hi, I'm trying to send a confirmation email using the email component when a user signs up, but am getting the following error...
Fatal error: Call to undefined function set() in .../home/myappfolder/app/controllers/users_controller.php
Here is my function in my users_controller.php
{{{
function signup() {
$this->User->create();
if($this->User->save($this->data))
Plugin using different Dynamic Database Connection
Hello,
Has anyone here tried to create a plugin which connects to a
difference database dynamically?
My Plugin name is "News"
I have tried adding this lines on beforeFilter on my
ArticlesController:
$db =& ConnectionManager::getDataSource('default');
$db->disconnect();
$db->config['host'] = 'localhost';
$db->config['login'] = 'login';
Announcing our support for Facebook's HipHop
Facebook's HipHop is a game changing-technology for companies
deploying large scale applications written in PHP.
Obfucating CakePHP
Hi,
I need to protect some of my web app code.
After searching for a solution, I got a solution by code obfuscation.
But as I read on how obfuscation works, I came into a question.
Can cakephp be obfuscated correctly using obfuscation tools out there?
Because as we know cakephp uses strict convention name on its directories, file, model, controller, view and action.
Or does anyone have
Cake console path
I try to bake models with the console.
I've already bakes a new app and created a database for it.
When i try to bake the models for the app its keeps on showing the
models of the main app.
How do i change the path to the new app?
(I use MAMP on OSX)
Returned data variable changes format when passed to view
Hi,
I am retrieving data from my model, and the retrieved data takes the typical Cake format when I use print_r in the controller:
Array
(
[Rental] => Array
(
[id] => 2
[rental_code] => VEpalms
)
[Location] => Array
(
[id] => 1
[city] => Venice Beach
)
[Rate] => Array
(
Microsoft Windows Azure Tables Datasource
An easy to use Datasource for Microsoft Windows Azure Tables. Azure Tables is capable of storing an infinite amount of data with it's design structure.
Transparent DatePicker with jquery
We will create an extended Helper FormHelper, without Difficulty to add a calendar date picker style in jquery (https://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/).
Please help with Savefield
I am new to cakephp. I like it already. I am trying to use saveField. I have keyed in the savefield like this
$this->Post->id = $id;
$this->Post->saveField('title', 'A New Title for a New Day', true);
Validation does not work.. and it keeps creating new rows in my database instead of updating the field.
i appreciate any help.
Thanks.
Cleaning house and sprucing up the place
Its been a few weeks of working in the evenings but its pretty much done. I’ve been wanting to do this redesign for a while now. 2 years ago when I built the version of this domain you’ve all come to know, I attempted to create a design that was different from other programming blogs, and fused my interests in both design and programming. I feel it turned out well.
Lögica de negocio y lógica de aplicación
Cuando se habla del patrón Modelo-Vista-Controlador a veces no queda claro cuál es el papel del Controlador.Veamos:El Modelo lleva la lógica de negocio, que básicamente es la representación de las entidades que la aplicación ha de manejar y sus relaciones. Así en una aplicación de gestión de bibliotecas tendremos modelos para los libros, socios, préstamos, etc., así como métodos para prestar libros, devolverlos, y otros muchos.La Vista lleva la lógica de presentación y cada vista sabe mostrar unos datos que recibe y nada más.¿Y el controlador? Solemos decir que el controlador pide datos al modelo y se los pasa a la vista, pero eso creo que no deja suficientemente claro su papel.
Is it worth starting with CakePHP 1.3
Hi guys,
I'm new to CakePHP and I'm wondering if I should start learning CakePHP version 1.3.0 (because version 1.2.x may be obsolete soon) or if I should stick to 1.2.x first.
How big are the differences between these two versions after all?
Cheers,
Manuel
Problem with use of redirect function
Hi,
i am new to cakePhp, I just started using this framework. I made blog application, the one in examples, and while creating a new post, or editing, or deleting a post I get a warning, the warning is as follows:
Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\cakephp-cakephp1x\app\controllers\posts_controller.php:40)
Post data again after authorization
I have a cakephp application where there is a form that is visible to visitors who haven't even logged in. If they submit the form without logging in, they are redirected to a login page from where i want them to go back to the add controller with all the submitted form data. Is this possible? If yes, how?
How to work with an old mysql database that does not have the tables names as cake wants
Is it possible to work with a database that does not have the table names as cake wants
for example: the users table is called user
[cakePHP][勉強会][nosql] 第49回PHP勉強会でMongoDBとCakeに関する発表をしてきた
第49回PHP勉強会@関東にて、「MongoDB + PHP + CakePHP」というタイトルで発表してきました。
MongoDBはRDB脳を持ったまま突入すると理解に苦しむケースがあり、僕も1週間ぐらい消化不良のまま色々な資料を見てました。
今回の発表では、その消化不良が起こらないように、またMongoDBが面白そう!と思ってもらえるような発表を心がけました。Twitterの反応を見てると、ある程度それが達成できたようなので良かったです。
スライドと動画を見てもらえれば、MongoDBの触りの部分と、PHPで操作するのがお手軽という感じを持ってもらえると思います。Pecl Mongoがmongodb.orgから公式にサポートされているので安心できます。スライドは、海外の人から発表を見てみたいというリクエストがあったので、英語で作りました。何人かのCakeやLithiumの人たちが海外から見てくれてたようです。
MongoDBは、本当に基本的なことを発表しただけで、実はかなり奥が深く、Map/Reduceを含めて色々と面白そうなことができます。また機会があればそいう発表をしたいと思います。
スライドはここから。
Multiple Backgrounds and CSS Gradients
CSS3 features are making their way into the various browsers and while many are holding off on implementing them, there are those who are venturing ahead and likely running into a world of interesting quirks across the various platforms.
Two such features that I have been having the pleasure of enjoying are the use of multiple backgrounds and CSS gradients. I'm covering both features because multiple backgrounds by itself is simple enough, as are CSS gradients, but combining the two is where things get interesting.
Multiple Backgrounds
What are multiple backgrounds when it comes to CSS? I mean the ability to define more than one background image for a single element. That sounds wonderful, doesn't it? It is. No more having to have nested elements with lots of CSS just to create a layered effect. The syntax is very straightforward: just separate each background image with a comma.



