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::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 | |
// 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
<?php | |
class Cep { | |
public function get_cep_cidade($tId, $city) | |
{ | |
$this->db->select('cep_cidade.nome, cep_estado.id, cep_estado.id_uf'); | |
$this->db->from('cep_cidade'); | |
$this->db->join( | |
'cep_estado', |
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
CREATE TABLE IF NOT EXISTS `country` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`iso` char(2) NOT NULL, | |
`name` varchar(80) NOT NULL, | |
`nicename` varchar(80) NOT NULL, | |
`iso3` char(3) DEFAULT NULL, | |
`numcode` smallint(6) DEFAULT NULL, | |
`phonecode` int(5) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
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 | |
( | |
[0] => Array | |
( | |
[Local] => Array | |
( | |
[id] => 40 | |
[user_id] => 1 | |
[neighborhood_id] => | |
[city_id] => 6015 |
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 |
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
<?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
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; |
OlderNewer