Integrating my app as a plugin

63 views
Skip to first unread message

D'Artagnan

unread,
Feb 8, 2012, 12:57:32 AM2/8/12
to Croogo
I'm new to Croogo, but not to CakePHP. I've recently been required to
take an existing project and add CMS functionality to it. I've known
about Croogo for a few years, so I naturally turned to it when I heard
CMS. What I thought I would do is port my existing application to a
plugin for Croogo. Not so simple. I'm really struggling with this.
Can't even get a stock CakePHP 1.3.14 to run as a plugin. I don't
want to rewrite the entire existing site, just add/integrate Croogo.
Any advice on how I should go by doing this?

Rachman Chavik

unread,
Feb 8, 2012, 7:13:03 AM2/8/12
to cro...@googlegroups.com
Take a look at the bundled 'example' plugin.  There are some hooks that you need to create in config/bootstrap.php

D'Artagnan

unread,
Feb 8, 2012, 5:08:48 PM2/8/12
to Croogo
Thanks,but I can't seem to get it right. If you could send me a
workking example it would be nice. I also tried putting the app in
croogo webroot but the the url rewriting messes up abd turns the url
to app/webroot/myapp

Rachman Chavik

unread,
Feb 8, 2012, 7:00:57 PM2/8/12
to cro...@googlegroups.com
On Thursday, 9 February 2012 05:08:48 UTC+7, D'Artagnan wrote:
Thanks,but I can't seem to get it right.  If you could send me a
workking example it would be nice.

Hmm,
Which croogo version are you in? Iirc, in both versions, the example plugin should work.

 
I also tried putting the app in
croogo webroot but the the url rewriting messes up abd turns the url
to app/webroot/myapp


If you put your app in webroot, your app's .htaccess may need: 'RewriteBase /myapp'.

D'Artagnan

unread,
Feb 10, 2012, 2:00:52 AM2/10/12
to Croogo
I'm using Croogo 1.3.4 and CakePHP 1.3.14
I copied the app folder from the default CakePHP install into the
webroot of the default Croogo install and renamed the cake app folder
to myapp.
When I hit http://localhost/croogo-1.3.4/myapp it changes to
http://localhost/croogo-1.3.4/app/webroot/myapp/

I added RewriteBase /myapp to croogo-1.3.4/app/webroot/
myapp/.htaccess, but no luck.
Reply all
Reply to author
Forward
0 new messages