This file contains hidden or 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 | |
$this->Paginator->setTemplates([ | |
'first' => '<li class="page-item"><a class="page-link" href="{{url}}">{{text}}</a></li>', | |
'prevActive' => '<li class="page-item"><a class="page-link" href="{{url}}">{{text}}</a></li>', | |
'prevDisabled' => '<li class="page-item disabled"><a class="page-link" href="{{url}}">{{text}}</a></li>', | |
'current' => '<li class="page-item"><a class="page-link" href="{{url}}">{{text}}</a></li>', | |
'number' => '<li class="page-item"><a class="page-link" href="{{url}}">{{text}}</a></li>', | |
'nextActive' => '<li class="page-item"><a class="page-link" href="{{url}}">{{text}}</a></li>', | |
'nextDisabled' => '<li class="page-item disabled"><a class="page-link" href="{{url}}">{{text}}</a></li>', | |
'last' => '<li class="page-item"><a class="page-link" href="{{url}}">{{text}}</a></li>' |
This file contains hidden or 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 | |
App::uses('AppController', 'Controller'); | |
class CountriesController extends AppController { | |
public $helpers = array('Js'); | |
public $components = array('RequestHandler'); | |
public function select() { | |
$countries = $this->Country->find('list'); |
This file contains hidden or 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 | |
// Tell me the root folder path. | |
// You can also try this one | |
// $HOME = $_SERVER["DOCUMENT_ROOT"]; | |
// Or this | |
// dirname(__FILE__) | |
$HOME = dirname(__FILE__); | |
// Is this a Windows host ? If it is, change this line to $WIN = 1; | |
$WIN = 0; |
This file contains hidden or 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 | |
$slug = slugit("thank you for visiting"); | |
echo $slug; | |
// returns: thank-you-for-visiting | |
?> |
This file contains hidden or 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 | |
/** | |
* CakePHP ClearCacheShell for 2.0 | |
* @author junichi11 | |
*/ | |
class ClearCacheShell extends AppShell { | |
public $uses = array(); | |
public $task = array(); |