Skip to content

Instantly share code, notes, and snippets.

View adeonir's full-sized avatar
💻
Working remotely

Adeonir Kohl adeonir

💻
Working remotely
View GitHub Profile
public function add()
{
$image = $this->Images->newEntity();
if ($this->request->is('post')) {
$image = $this->Images->patchEntity($image, $this->request->data);
$album_id = $image['album_id'];
foreach ($image['image_file'] as $file) {
$image['image'] = $this->Upload->send($file, $album_id);
if ($this->Images->save($image)) {
<html>
<head>
<title>CakePHP Gerador de Hash</title>
</head>
<body>
<h1>Gerador de Hash Para CakePHP</h1>
<p>Recarregue a p&aacute;gina para gerar novos hashs!</p>
<?php
function geraSenha($tamanho = 15, $minusculas = true, $maiusculas = true, $numeros = true, $simbolos = true)
{