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 | |
protected $_created_column = array('column' => 'account_date_add', 'format' => 'Y-m-d H:i:s'); | |
protected $_updated_column = array('column' => 'account_date_modified', 'format' => 'Y-m-d H:i:s'); |
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 | |
/** | |
* Overload saving to perform additional functions on the account | |
*/ | |
public function save(Validation $validation = NULL) | |
{ | |
// Do this for first time items only | |
if ($this->loaded() === FALSE) | |
{ |
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 | |
// In Hook -- you can even just call this for Router::$controller == 'main' only | |
$category_list = ORM::factory('category')->where('category_visible', '1') | |
->where('parent_id', '0') | |
->where('category_trusted != 1') | |
->orderby('category_position', 'ASC') | |
->orderby('category_title', 'ASC') | |
->find_all(); | |
Kohana::config_set('settings.category_list', 'category_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 defined('SYSPATH') OR die('No direct access allowed.'); | |
class Controller_API extends Controller | |
{ | |
/** | |
* @var Object Request Payload | |
*/ | |
protected $_request_payload = NULL; | |
/** | |
* @var Object Response Payload |
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
{ | |
"results": { | |
"organization": [ | |
"Howard University", | |
"New York Times" | |
], | |
"person": [ | |
"Harris Brown", | |
"Logosou", | |
"HELENE COOPER", |
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
{ | |
"results": { | |
"person": [ | |
"Bill", | |
"Moi", | |
"Githu Muigai", | |
"Kibaki" | |
], | |
"organization": [ | |
"Cabinet", |
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 Parse error: syntax error, unexpected '}' in /Users/david/LOCALHOST/Swiftriver/application/classes/swiftriver/dropletqueue.php on line 153 | |
PHP Stack trace: | |
PHP 1. {main}() /Users/david/LOCALHOST/Swiftriver/index.php:0 | |
PHP 2. Kohana_Request->execute() /Users/david/LOCALHOST/Swiftriver/index.php:118 | |
PHP 3. Kohana_Request_Client->execute() /Users/david/LOCALHOST/Swiftriver/system/classes/kohana/request.php:1138 | |
PHP 4. Kohana_Request_Client_Internal->execute_request() /Users/david/LOCALHOST/Swiftriver/system/classes/kohana/request/client.php:64 | |
PHP 5. ReflectionMethod->invoke() /Users/david/LOCALHOST/Swiftriver/system/classes/kohana/request/client/internal.php:118 | |
PHP 6. Controller_Crawler_Main->action_index() /Users/david/LOCALHOST/Swiftriver/system/classes/kohana/request/client/internal.php:118 | |
PHP 7. Swiftriver_Crawlers::do_crawl() /Users/david/LOCALHOST/Swiftriver/application/classes/controller/crawler/main.php:107 | |
PHP 8. Swiftriver_Crawlers::do_schedule() /Users/david/LOCALHOST/Swiftrive |
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
#!/bin/sh | |
############################################################ | |
############################################################ | |
# | |
# - In terminal make the script executable by typing: | |
# | |
# chmod a+x (yourscriptname) | |
# | |
# - Then in finder right-click your file and select | |
# "Open with" and then "Other...". |
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
<script type="text/javascript" charset="utf-8"> | |
$(document).ready(function() { | |
var orig_width = $("#map").width(); | |
var orig_height = $("#map").height(); | |
currZoom = map.getZoom(); | |
currCenter = map.getCenter(); | |
$(".fullscreenmap_click").colorbox({ | |
width:"100%", |
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 | |
... | |
// Array of available channel options | |
'channel_options' => array( | |
// Channel option with type | |
'email' => array( | |
// Label of the option (*tip use i18n __('xxx')) | |
'label' => __('Email'), | |
// Option type (text, textarea, password, radio) |