This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Controlles/Component/MailSenderComponent.php | |
App::uses('CakeEmail', 'Network/Email'); | |
Class MailSenderComponent extends Component { | |
public function sendmail($subject, $titleMail, $name, $email, $message) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App::import('Lib', 'LoadConfigs', array('file' => 'static.php')); | |
class AppController extends Controller { | |
.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// menu lateral | |
echo $this->element($pages_dir . '/menu-topo/usuarios'); | |
?> | |
<div class="users form"> | |
<?php echo $this->Form->create('User', array('type'=>'file')); ?> | |
<fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.controller('SmsCtrl', function($scope) { | |
if (SMS) { | |
var _phoneNumbers = '+554192292992'; // numero de teste com codigo do Brasil e DDD | |
SMS.sendSMS(_phoneNumbers, "hello, Francis!", function() { | |
console.log('watching!'); | |
$scope.sendStatus = 'Watching!'; | |
}, function() { | |
console.log('not watching!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bom dia Edgard | |
eu expliquei nesse plaste http://paste.ubuntu.com/8318549/ | |
[9:19:46 AM] Francis: e neste a chamada das 2 classes http://paste.ubuntu.com/8318553/ | |
[9:21:16 AM] Francis: e esse o final, tentando reusar o metodo putJob() http://paste.ubuntu.com/8318563/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@precise64:~$ cat .zshrc | |
# ~/.zshrc: executed by the command interpreter for login shells. | |
# Environments | |
export ANT_HOME=/usr/share/ant | |
export JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64" | |
export VAGRANT_H=/home/vagrant | |
export SDK_P=$VAGRANT_H/sdKs | |
export SDK_ADT=adt-bundle/sdk | |
export NODE_PATH="/usr/lib/node_modules" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App::import('Controller', 'Users'); | |
App::import('Controller', 'Business'); | |
class AdministratorController extends AppController { | |
public function panel_profile() { | |
switch ($this->userDataGroupID) { | |
// Case Group is Developer's | |
case 1 : | |
$Users = new UsersController; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @todo CakePHP Permissions Array by Kevin Wentworth (Saco Design, Inc.) | |
* @todo Handles retrieving all ACL Permissions and storing them in an array. | |
* @todo Comments and bug reports welcome at kevin at sacode sign dot com | |
* | |
* @licensed Licensed under UYOR (Use at Your Own Risk) | |
* @link http://www.mainelydesign.com/blog/view/getting-all-acl-permissions-in-one-lookup-cakephp-1-3#null | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Constructor_lib { | |
function __construct() { | |
$this->CI =& get_instance(); | |
} | |
function create_controller_files($tables = NULL, $create = FALSE) { | |
if(!$tables) $tables = $this->CI->db->list_tables(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array | |
( | |
[Agencia] => Array | |
( | |
[joins] => Array | |
( | |
[0] => Array | |
( | |
[table] => cidades | |
[alias] => Cidade |
NewerOlder