- var $name = 'Retorno';
- public $filter...
- function retornar()
- {
- $this->set('retornos', $this->Retorno->find('all'));
- }
- public $com...
- function retornar()
- {
- $this->set('retornos', $this->Retorno->find('all'));
- }
- public $com...
- /**
- * This converts from Cake's Model::find('all') array structure to an array ready for pr...
- Notice (8): Undefined index: Retornos [APP\Controller\RetornosController.php, line 14]
- PagDigi...
- <div class="row-fluid">
- <?php
- <?php
- /**
- * Controler dos Retornos
- */
- class RetornosController extends AppController
- {
- ...
- /* controller */
- $categorias = $this->Categoria->getPath( $evento['Evento']['categoria_id'] );...
- // app/Model/A.php
- <?php
- class A extends AppModel
- {
- //...
- // app/views/errors/manutencao.ctp
- <h1>Sistema em Manutenção</h1>
- <p>O sistema está em manutenç...
Códigos para implantar um modo de manutenção para sites cakephp que permite tirar o site do ar pa...
- function action($id = null){
- //here $id gets value from url/action/2
- This is my js script in the form
- The form data is pre-loadaed with value from session
- Now ...
- // CustomFile.php
- <?php
- class CustomFile
- {
- function say_hi($str) {
- echo "hello " . $s...
- Fatal error: Call to a member function postLink() on a non-object in /Users/javjar/Sites/cakephp-...
- /**
- Structure:
- App
- - Plugin
- - MyPlugin
- - Lib
- - CustomFile.php
- - ...
- <?php
- ?>
- //AppController.php
- <?php
- class AppController extends Controller {
Esse código contém apenas as funções que utilizam o componente Auth, do CakePHP 2.0.
- require_once(APP . 'Vendor' . DS . 'dompdf' . DS . 'dompdf_config.inc.php');
- $dompdf = new DOMPD...
dompdf output file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose....
HTML output of dompdf file that will not show images
- No AuthComponent => everything is public
- With AuthComponent => everything denied by default (e...
- simon@saturn:~$ ffmpeg
- FFmpeg version SVN-r0.5.6-4:0.5.6-3, Copyright (c) 2000-2009 Fabrice Bell...
- <?php
- App::uses('AppModel', 'Model');
- /**
- * Game Model
- *
- * @property Category $Catego...
- $this->Game->Behaviors->attach('Containable');
- $this->Session->setFlash(debug(...
- <?
- $aSql = "
- SELECT
- *
- ...
- Error I'm getting is below.
- Fatal error: Call to a member function dispatchMethod() on a non-obj...
a
- Error is Fatal error: Call to a member function dispatchMethod() on a non-object in APP/lib/Cake/...
auth error in model
- foreach($ex as $elem){
- echo $elem;
- }
- <?php
- class WebserviceController extends AppController {
- 'Aut...
- <?php
- /**
- * Behavior to calculate and save depth of a record in MPTT
- * Based on TreePlus beh...
TreePlus Behavior
- //controller
- <?php
- App::uses('AppController', 'Controller','CakeEmail','Network/Ema...
Trying to follow documentation
//link to documentation http://book.cakephp.org/2.0/en/views/js...
- /**
- * test that saving habtm records respects conditions relating to an associated mode...
Core unit test for ModelWriteTest.php to show that if conditions key of HABTM association referen...
- Routes.php
- <?php
- App::import('Lib', 'Routes/SlugRoute');
- Router::connect(
- '/telefoon/:i...
- public function add(){
- $this->layout = 'ajax';
- if($this->request->is('ajax')){
- if(!emp...
- Hello all,
- i have done a registration form.In this form,i have three required fields.Name,email...
- // /app/Event/BlogEventListener.php
- <?php
- App::uses('CakeEventListener', 'Event');
- class Blo...
Overview of how I attached an event listener to a controller and dispatched it from an action.
- SELECT `Order`.`id` FROM `ps2migrate`.`orders` AS `Order` WHERE 1 = 1 LIMIT 3
- SELECT `Product`...
