Tags » Cakephp

HTML: Editable Elements

I’m using the following:

  1. X-editable
  2. Bootstrap 2
  3. Cakephp / Any PHP Framework
Include the jQuery, Bootstrap 2 in your HTML head
<head>
    <!-- jQuery -->
    <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
    <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>

    <!-- Bootstrap -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
    <script src="js/bootstrap.min.js"></script>

    <!-- X-Editable -->
    <link href="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap-editable/css/bootstrap-editable.css" rel="stylesheet"/>
    <script src="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap-editable/js/bootstrap-editable.min.js"></script>
</head>
… 154 more words
PHP

Menggenerate File Excell di cakephp 2.20

Menggenerate File Excell di cakephp 2.20

1. Buat header excell untuk menggenerate file excel
Filenya seperti ini

CakePHP: Upload File

The Model
<?php

App::uses('AppModel', 'Model');

class Picture extends AppModel {
	public $useTable = 'picture';
	public $primaryKey = 'id';
	public $name = 'Picture';
	public $order = 'Picture.id ASC';

	protected $_displayFields = array(
		'id',
		'name',
		'link',
	);
}
?>
… 243 more words
CakePHP

Membuat Mysql Query di cakephp 2 ++

Membuat Mysql Query di cakephp 2 ++
Cara membuat mysql di query di cakephp dua sangat mudah kalau yang sudah tahu..
1. $this->
2. Nama Model… 236 more words

CakePHP: PHPMailer Component - Using GMail SMTP

Requirements:

  1. CakePHP 2.x
  2. PHPMailer

Download PHPMailer & extract it to APP/vendors.

Add following lines in APP/vendors/phpmailer/class.phpmail.php line 542, in ELSE statement. This to ensure we have a secured domain through SSL / TLS. 347 more words

Development

Simple Html to SMS formating script

Have you ever had a bit of an issue formatting the SMS messages you send out to users from your web / mobile applications. Well, I have! 182 more words

CakePHP