| CARVIEW |
Select Language
HTTP/2 200
server: nginx
date: Tue, 23 Dec 2025 19:19:59 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Fri, 02 Oct 2009 10:04:22 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "2203d69b6843583cef9fd8ed1cc2abef"
x-archive-orig-x-runtime: 122ms
x-archive-orig-content-length: 26647
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 02 Oct 2009 10:04:23 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_12_20091002072814_crawl102-c/51_12_20091002094546_crawl101.arc.gz
server-timing: captures_list;dur=0.534521, exclusion.robots;dur=0.042824, exclusion.robots.policy;dur=0.033015, esindex;dur=0.009645, cdx.remote;dur=6.388342, LoadShardBlock;dur=221.272168, PetaboxLoader3.datanode;dur=154.022390, PetaboxLoader3.resolve;dur=125.723684, load_resource;dur=119.604017
x-app-server: wwwb-app204-dc6
x-ts: 200
x-tr: 401
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app204; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
mcurry's interactive at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| Description: | Custom panel for the CakePHP DebugKit allowing for interactive sessions with your app edit |
| Homepage: | https://www.pseudocoder.com edit |
| Public Clone URL: |
git://github.com/mcurry/interactive.git
Give this clone URL to anyone.
git clone git://github.com/mcurry/interactive.git
|
| Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:mcurry/interactive.git
|
Jose Diaz-Gonzalez (author)
Tue Sep 29 02:24:22 -0700 2009
| name | age | message | |
|---|---|---|---|
| |
README | Mon Jun 08 20:14:17 -0700 2009 | fixed docs to match debug_kit trunk [mcurry] |
| |
controllers/ | Thu Jul 23 05:40:45 -0700 2009 | fix compatibility w/ security component [mcurry] |
| |
interactive_app_controller.php | Fri Jun 05 19:28:53 -0700 2009 | initial revision [mcurry] |
| |
interactive_app_model.php | Fri Jun 05 19:28:53 -0700 2009 | initial revision [mcurry] |
| |
models/ | Mon Jun 08 21:10:48 -0700 2009 | handle $this-> [mcurry] |
| |
tests/ | Mon Jun 08 20:53:10 -0700 2009 | better handling for name conflicts [mcurry] |
| |
vendors/ | Fri Jul 10 21:46:37 -0700 2009 | Q -> q [mcurry] |
| |
views/ | Tue Sep 29 02:24:22 -0700 2009 | fixing form url to point to current plugin. fix... [Jose Diaz-Gonzalez] |
README
/* * Interactive panel for the CakePHP DebugKit * Copyright (c) 2009 Matt Curry * www.PseudoCoder.com * https://github.com/mcurry/interactive * * @author Matt Curry <matt@pseudocoder.com> * @license MIT * */ /* About */ This plugin adds easy interactions with your CakePHP app using the console or through a custom panel for the CakePHP DebugKit. It handles simple PHP commands, SQL queries and PHP using your Cake objects. /* Examples */ 10 % 4 (returns 2) is_array(49) (returns false) SELECT id FROM users WHERE email = 'test@test.com' (retuns the id of the matching record) User::findByEmail('test@test.com') (returns the entire matching user record) /* Power Usage */ When using in the DebugKit panel you can stack commands, just make sure to end each with a ";" as you would in your code. If you're having trouble getting results for a particular command and can't figure out why try turning on debug as the first command: Configure::write('debug', 2); User::findByEmail('test@test.com'); /* Warning */ There isn't any sort of error detection or validation on the input. Also there isn't any pagination for long result sets. If you enter in a query that returns a million records, you're going to get a million records. You can't declare a variable and use it across commands. For example this doesn't work: $i = 10; $i ++; /* Instructions */ 1) Download the plugin to /app/plugin/interactive /* Console Instructions */ 1) Run the cake console passing the "interactive" shell from /app: ../cake/console/cake interactive 2) Enter commands as needed. Enter 'Q' to exit. 3) You can also commands as parameters. The interactive shell will run the command and exit ../cake/console/cake interactive Post::find('first') /* DebugKit Instructions (version 1.1) */ 1) You need to patch the DebugKit to include the fix for defect #21 (https://thechaw.com/debug_kit/tickets/view/21). The fix is 3 additional lines to /plugins/debug_kit/controllers/components/toolbar.php https://thechaw.com/debug_kit/commits/view/ba5a45f930e3f2b65cf779155c65048c660110c5 2) In your AppController include the panel (as well as all the default panels): var $components = array('DebugKit.Toolbar' => array('history', 'session', 'request', 'sqlLog', 'timer', 'log', 'variables', 'Interactive.interactive'); /* DebugKit Instructions (trunk) */ 1) Include the panel: $components = array('DebugKit.Toolbar' => array('panels' => array('Interactive.interactive'));
This feature is coming soon. Sit tight!










