CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 17 Aug 2025 07:32:18 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100124182024
location: https://web.archive.org/web/20100124182024/https://github.com/Morail/cakephp-commentable-behavior
server-timing: captures_list;dur=0.980899, exclusion.robots;dur=0.033677, exclusion.robots.policy;dur=0.016162, esindex;dur=0.017101, cdx.remote;dur=41.132418, LoadShardBlock;dur=175.949505, PetaboxLoader3.datanode;dur=57.181643, PetaboxLoader3.resolve;dur=63.978352
x-app-server: wwwb-app215
x-ts: 302
x-tr: 278
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app215; path=/
x-location: All
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=()
HTTP/2 200
server: nginx
date: Sun, 17 Aug 2025 07:32:19 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sun, 24 Jan 2010 18:20:24 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "65d5ffeaf4799ff4815740a578298c5a"
x-archive-orig-x-runtime: 144ms
x-archive-orig-content-length: 23983
x-archive-orig-set-cookie: csrf_id=b1e9e98947d4d779deb89ab63e295adf; path=/
x-archive-orig-set-cookie: _github_ses=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--884981fc5aa85daf318eeff084d98e2cff92578f; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
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: Sun, 24 Jan 2010 18:20:24 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 24 Jan 2010 18:20:24 GMT", ; rel="memento"; datetime="Sun, 24 Jan 2010 18:20:24 GMT", ; rel="next memento"; datetime="Wed, 29 Sep 2010 23:09:15 GMT", ; rel="last memento"; datetime="Wed, 16 Dec 2020 09:25:26 GMT"
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: 52_13_20100124155240_crawl102-c/52_13_20100124180256_crawl101.arc.gz
server-timing: captures_list;dur=0.548521, exclusion.robots;dur=0.018792, exclusion.robots.policy;dur=0.010319, esindex;dur=0.011640, cdx.remote;dur=8.614928, LoadShardBlock;dur=168.041825, PetaboxLoader3.datanode;dur=139.085613, load_resource;dur=375.045311, PetaboxLoader3.resolve;dur=289.468359
x-app-server: wwwb-app215
x-ts: 200
x-tr: 608
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
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
Morail's cakephp-commentable-behavior at master - GitHub
This service is courtesy of Pledgie.
Morail / cakephp-commentable-behavior forked from josegonzalez/cakephp-commentable-behavior
- Source
- Commits
- Network (6)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
-
Branches (1)
- master ✓
- Tags (0)
Sending Request…
Enable Donations
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
cakephp behavior plugin that allows any model to be commented upon — Read more
name | age | message | |
---|---|---|---|
![]() |
README.markdown | Fri Oct 16 10:13:01 -0700 2009 | fixing readme, thanks vad [josegonzalez] |
![]() |
config/ | Fri Nov 27 23:39:04 -0800 2009 | Updating comments table for postgres [vad] |
![]() |
models/ | Fri Jan 15 01:05:18 -0800 2010 | Adding a simple method for comment deletion [Morail] |
![]() |
tests/ | Sat Aug 01 23:08:44 -0700 2009 | adding fixture [josegonzalez] |
![]() |
views/ | Fri Oct 23 15:25:05 -0700 2009 | Making the entire thing actually work [josegonzalez] |
README.markdown
This plugin provides an easy way to include Commentable Behavior in your application. It also integrates Miles Johnson's (@gearvosh) CommentiaBehavior (https://www.milesj.me/resources/script/commentia-behavior) to enable some simple moderation of each comment before posting to the database.
Installation
- Clone from github : in your plugin directory type
git clone git://github.com/josegonzalez/cakephp-commentable-behavior.git commentable
- Add as a git submodule : in the directory containing your app, type
git submodule add git://github.com/josegonzalez/cakephp-commentable-behavior.git app/plugins/commentable
- Download an archive from github and extract it in
app/plugins/commentable
Usage
In a model that needs slugging, add :
var $actsAs = array('Commentable.Commentable')
Execute the SQL command contained at
config/sql/comments.sql
Add the following to it's controller (I'm using the Post controller as an example) :
function comment($id = null) { if (!empty($this->data['Comment'])) { if ($this->Post->createComment($id, $this->data)){ $this->Session->setFlash(__('Post was commented on', true), 'messages/success'); $this->redirect(array('action' => 'view', $id), 200, true); } else { $this->Session->setFlash(__('Post could not be commented on. Perhaps you left a field empty?', true), 'messages/error'); } } }
And add the following to the view (in my case the posts/view.ctp file) you'd like to comment on:
<h2><?php __('Post a Comment'); ?></h2> <?php echo $form->create('Post', array('action' => 'comment')); ?> <fieldset> <legend><?php __('Add Comment');?></legend> <?php echo $form->input('Post.id'); echo $form->input('Comment.name'); echo $form->input('Comment.email'); echo $form->input('Comment.body'); ?> </fieldset> <?php echo $form->end('Submit'); ?>