Warning (2): Missing argument 1 for PhotosController::index() [CORE/app/controllers/photos_controller.php, line 7]
var $uses = array();
var $name = 'Photos';
function index($old_id) {
PhotosController::index() - CORE/app/controllers/photos_controller.php, line 7
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 340
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 322
[main] - CORE/app/webroot/index.php, line 83
Notice (8): Undefined variable: old_id [CORE/app/controllers/photos_controller.php, line 9]
function index($old_id) {
if ($old_id):
$entry = $this->Entry->find('Entry.old_id = ' . $old_id . ' AND Entry.category_id = 1');
PhotosController::index() - CORE/app/controllers/photos_controller.php, line 9
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 340
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 322
[main] - CORE/app/webroot/index.php, line 83
Invalid Photo