<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4220013707875002464</id><updated>2011-04-22T01:23:07.854+07:00</updated><title type='text'>Cakephp-Indonesia</title><subtitle type='html'>berlajar bersama tentang Cakephp Framework</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cakephp-indonesia.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4220013707875002464/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://cakephp-indonesia.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>vcrack</name><uri>http://www.blogger.com/profile/08312299592098902007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4220013707875002464.post-7841259928195240506</id><published>2007-12-15T17:37:00.000+07:00</published><updated>2007-12-15T17:43:56.127+07:00</updated><title type='text'>Cake's Scaffolding is Pretty Cool</title><content type='html'>&lt;p&gt;So cool that you'll want to use it in production apps. Now, we think its  cool, too, but please realize that scaffolding is... well... just scaffolding.  It's a bunch of stuff you throw up real quick during the beginning of a project  in order to get started. It isn't meant to be completely flexible. So, if you  find yourself really wanting to customize your logic and your views, its time to  pull your scaffolding down in order to write some code.&lt;/p&gt; &lt;p&gt;Scaffolding is a great way of getting the early parts of developing a web  application started. Early database schemas are volatile and subject to change,  which is perfectly normal in the early part of the design process. This has a  downside: a web developer hates creating forms that never will see real use. To  reduce the strain on the developer, scaffolding has been included in Cake.  Scaffolding analyzes your database tables and creates standard lists with add,  delete and edit buttons, standard forms for editing and standard views for  inspecting a single item in the database. To add scaffolding to your  application, in the controller, add the &lt;span class="emphasis"&gt;&lt;em&gt;$scaffold&lt;/em&gt;&lt;/span&gt; variable:&lt;/p&gt;&lt;pre class="programlisting"&gt;&lt;?php&lt;br /&gt;class CategoriesController extends AppController&lt;br /&gt;{&lt;br /&gt;   var $scaffold;&lt;br /&gt;}&lt;br /&gt;?&gt;&lt;/pre&gt; &lt;p&gt;One important thing to note about scaffold: it expects that any field name  that ends with &lt;span class="emphasis"&gt;&lt;em&gt;_id&lt;/em&gt;&lt;/span&gt; is a foreign key to a  table which has a name that precedes the underscore. So, for example, if you  have nested categories, you'd probably have a column called &lt;span class="emphasis"&gt;&lt;em&gt;parent_id&lt;/em&gt;&lt;/span&gt;. With this release, it would be best to  call this parentid. Also, when you have a foreign key in your table (e.g. titles  table has &lt;span class="emphasis"&gt;&lt;em&gt;category_id&lt;/em&gt;&lt;/span&gt;), and you have  associated your models appropriately (see Understanding Associations, 6.2), a  select box will be automatically populated with the rows from the foreign table  (category) in the show/edit/new views. To set which field in the foreign table  is shown, set the &lt;span class="emphasis"&gt;&lt;em&gt;$displayField&lt;/em&gt;&lt;/span&gt; variable in  the foreign model. To continue our example of a category having a title:&lt;/p&gt;&lt;pre class="programlisting"&gt;&lt;?php&lt;br /&gt;class Title extends AppModel&lt;br /&gt;{&lt;br /&gt;   var $name = 'Title';&lt;br /&gt;&lt;br /&gt;   var $displayField = 'title';&lt;br /&gt;}&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;referer : http://manual.cakephp.org&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4220013707875002464-7841259928195240506?l=cakephp-indonesia.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cakephp-indonesia.blogspot.com/feeds/7841259928195240506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4220013707875002464&amp;postID=7841259928195240506' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4220013707875002464/posts/default/7841259928195240506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4220013707875002464/posts/default/7841259928195240506'/><link rel='alternate' type='text/html' href='http://cakephp-indonesia.blogspot.com/2007/12/cakes-scaffolding-is-pretty-cool.html' title='Cake&apos;s Scaffolding is Pretty Cool'/><author><name>vcrack</name><uri>http://www.blogger.com/profile/08312299592098902007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4220013707875002464.post-2954580926499152716</id><published>2007-12-13T13:37:00.000+07:00</published><updated>2007-12-13T13:38:29.871+07:00</updated><title type='text'>Config Database in Cakephp</title><content type='html'>&lt;div class="text"&gt;   &lt;h3&gt;Cake Database Configuration&lt;/h3&gt;   &lt;p&gt;Onward and upward: let's tell Cake where our database is and how       to connect to it. This will be the first and last time you configure       anything.&lt;/p&gt;   &lt;p&gt;A copy of Cake's database configuration file is found in       &lt;strong&gt;/app/config/database.php.default&lt;/strong&gt;. Make a copy of       this file in the same directory, but name it       &lt;strong&gt;database.php&lt;/strong&gt;.&lt;/p&gt;   &lt;p&gt;The config file should be pretty straightforward: just replace the       values in the $default array with those that apply to your setup. A       sample completed configuration array might look something like the       following:&lt;/p&gt;   &lt;div style="font-family: monospace;"&gt;var $default = array('driver'   =&gt; 'mysql',&lt;br /&gt;                     'connect'  =&gt; 'mysql_pconnect',&lt;br /&gt;                     'host'     =&gt; 'localhost',&lt;br /&gt;                     'login'    =&gt; 'cakeBlog',&lt;br /&gt;                     'password' =&gt; 'c4k3-rUl3Z',&lt;br /&gt;                     'database' =&gt; 'cake_blog_tutorial' );&lt;/div&gt;   &lt;p&gt;Once you've saved your new database.php file, you should be able       to open your browser and see the Cake welcome page. It should also tell       you that your database connection file was found, and that Cake can       successfully connect to the database.&lt;/p&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4220013707875002464-2954580926499152716?l=cakephp-indonesia.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cakephp-indonesia.blogspot.com/feeds/2954580926499152716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4220013707875002464&amp;postID=2954580926499152716' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4220013707875002464/posts/default/2954580926499152716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4220013707875002464/posts/default/2954580926499152716'/><link rel='alternate' type='text/html' href='http://cakephp-indonesia.blogspot.com/2007/12/config-database-in-cakephp.html' title='Config Database in Cakephp'/><author><name>vcrack</name><uri>http://www.blogger.com/profile/08312299592098902007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4220013707875002464.post-1510804708093299435</id><published>2007-12-13T13:06:00.000+07:00</published><updated>2007-12-13T13:12:55.026+07:00</updated><title type='text'>Introduce to Cakephp</title><content type='html'>&lt;div class="text"&gt;   &lt;h3&gt;Introduction&lt;/h3&gt;   &lt;p&gt;Welcome to Cake! You're probably checking out this tutorial       because you want to learn more about how Cake works. Its our aim to       increase productivity and make coding more enjoyable: we hope you'll see       this as you dive into the code.&lt;/p&gt;   &lt;p&gt;This tutorial will walk you through the creation of a simple blog       application. We'll be getting and installing Cake, creating and       configuring a database, and creating enough application logic to list,       add, edit, and delete blog posts.&lt;/p&gt;   &lt;p&gt;Here's what you'll need:&lt;/p&gt;   &lt;ol&gt;&lt;li&gt;     &lt;p&gt;A running web server. We're going to assume you're using           Apache, though the instructions for using other servers should be           very similar. We might have to play a little with the server           configuration, but most folks can get Cake up and running without           any configuration at all.&lt;/p&gt;    &lt;/li&gt;&lt;li&gt;     &lt;p&gt;A database server. We're going to be using mySQL in this           tutorial. You'll need to know enough about SQL in order to create a           database: Cake will be taking the reigns from there.&lt;/p&gt;    &lt;/li&gt;&lt;li&gt;     &lt;p&gt;Basic PHP knowledge. The more object-oriented programming           you've done, the better: but fear not if you're a procedural           fan.&lt;/p&gt;    &lt;/li&gt;&lt;li&gt;     &lt;p&gt;Finally, you'll need a basic knowledge of the MVC programming           pattern. A quick overview can be found in            &lt;a href="http://manual.cakephp.org/chapter/basic_concepts"&gt;Chapter "Basic Concepts"&lt;/a&gt;, Section 2: The           MVC Pattern. Don't worry: its only a half a page or so.&lt;/p&gt;    &lt;/li&gt;&lt;/ol&gt;   &lt;p&gt;Let's get started!&lt;/p&gt;&lt;br /&gt;&lt;div class="text"&gt;   &lt;h3&gt;Getting Cake&lt;/h3&gt;   &lt;p&gt;First, let's get a copy of fresh Cake code.&lt;/p&gt;   &lt;p&gt;To get a fresh download, visit the CakePHP project at Cakeforge:       &lt;a href="http://cakeforge.org/projects/cakephp/"&gt;http://cakeforge.org/projects/cakephp/&lt;/a&gt;        and download the stable release.&lt;/p&gt;   &lt;p&gt;You can also checkout/export a fresh copy of our trunk code at:       &lt;a href="https://svn.cakephp.org/repo/trunk/cake/1.x.x.x/"&gt;https://svn.cakephp.org/repo/trunk/cake/1.x.x.x/&lt;/a&gt;&lt;/p&gt;   &lt;p&gt;Regardless of how you downloaded it, place the code inside of your       DocumentRoot. Once finished, your directory setup should look something       like the following:&lt;/p&gt;   &lt;pre&gt;/path_to_document_root&lt;br /&gt;   /app&lt;br /&gt;   /cake&lt;br /&gt;   /vendors&lt;br /&gt;   .htaccess&lt;br /&gt;   index.php&lt;br /&gt;   VERSION.txt&lt;/pre&gt;   &lt;br /&gt;&lt;p&gt;Now might be a good time to learn a bit about how Cake's directory       structure works: check out        &lt;a href="http://manual.cakephp.org/chapter/basic_concepts"&gt;Chapter "Basic Concepts"&lt;/a&gt;&lt;/p&gt;  &lt;/div&gt;&lt;p&gt;From : http://cakephp.org&lt;br /&gt;&lt;/p&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4220013707875002464-1510804708093299435?l=cakephp-indonesia.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cakephp-indonesia.blogspot.com/feeds/1510804708093299435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4220013707875002464&amp;postID=1510804708093299435' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4220013707875002464/posts/default/1510804708093299435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4220013707875002464/posts/default/1510804708093299435'/><link rel='alternate' type='text/html' href='http://cakephp-indonesia.blogspot.com/2007/12/introduce-to-cakephp.html' title='Introduce to Cakephp'/><author><name>vcrack</name><uri>http://www.blogger.com/profile/08312299592098902007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4220013707875002464.post-4472449654316626198</id><published>2007-12-13T12:44:00.000+07:00</published><updated>2007-12-13T13:01:01.941+07:00</updated><title type='text'>Welcome</title><content type='html'>Apa itu Cakephp? Cake adalah sebuah Framework PHP, yang sangat bermanfaat untuk membuat aplikasi berbasis web khususnya PHP secara cepat.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Hot Features:&lt;/span&gt;&lt;br /&gt;Model, View, Controller Architectur&lt;br /&gt;View Helpers untuk AJAX, Javascript, HTML Forms&lt;br /&gt;terdapat Validation&lt;br /&gt;Application Scaffolding&lt;br /&gt;Application dan CRUD code generation menggunakan Bake&lt;br /&gt;Access Control Lists&lt;br /&gt;Data Sanitization&lt;br /&gt;Security, Session, dan Request Handling Components&lt;br /&gt;Flexible View Caching&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4220013707875002464-4472449654316626198?l=cakephp-indonesia.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cakephp-indonesia.blogspot.com/feeds/4472449654316626198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4220013707875002464&amp;postID=4472449654316626198' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4220013707875002464/posts/default/4472449654316626198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4220013707875002464/posts/default/4472449654316626198'/><link rel='alternate' type='text/html' href='http://cakephp-indonesia.blogspot.com/2007/12/welcome.html' title='Welcome'/><author><name>vcrack</name><uri>http://www.blogger.com/profile/08312299592098902007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
