Re: Jake question: rewrite problem?

2009-03-17 Thread Robin

By the way, unfortunately, Magnik is not providing support. That's why
I am seeking help from you guys.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Jake question: rewrite problem?

2009-03-17 Thread Robin

That was what I meant by "upgrade" in my previous posts. But I guess I
should call it migrating the application to the newer version instead,
if that's what you are suggesting.

I would very much like to do that. But I have the most slimest idea
about cakephp. I can use the scripts made by others, do some search/
modify of php to suit my needs on the very basic level. I know basic
php. Would you be able to point me to the right direction as to where
to start building the store on new version?

I tried to use the complete new version of cake, and use the the
magnik app folder to "merged into" the app folder, so that I have a
new core (\cake), and modified \app folder, hopefully with all the
files to suit the new core. But obviously, it was not easy since a lot
of modifications have been made between the two versions, plus magnik
app has a lot more code in it. My php level is simply not enough to
manage it.

Is that what you would do to "create a store from scrach using magnik
and a current build of cakephp"? Or am I just using a completely wrong
way and driving myself crazy? Your advice will be greatly
appreciated!





On Mar 17, 3:37 pm, Brendon Kozlowski  wrote:
> At this point, I'd suggest contacting 
> Magnik.http://www.magnik.com/api/terms_and_conditions
>
> See if it's compatible with the current version of CakePHP.  If they
> do any URL rewriting of their own (or custom routes) it *may* break
> the default setup ofJake.  If that's the case, you'd then need to
> compare and contrast the routes.
>
> As for an older version of CakePHP, I don't know how to get access to
> it without using an SVN client - and since I don't use SVN, I still
> wouldn't know for sure if it's available via that method either.
>
> Have you tried creating a "store" from scratch using Magnik and a
> current build of CakePHP?  If you can get that working, theJake
> interoperability can come after.
>
> On Mar 17, 1:48 pm, Robin  wrote:
>
>
>
> > Hi Brendon, I appreciate your help. I am under the impression that
> > it's not just thejake.ini configuration problem. I tried the latest
> > cakephp version and it works like a charm. But using exactly the same
> > configuration file, while using the script I mentioned written in an
> > earlier version of cake 1.2, I am having the problem. So, I guess
> > either between the two versions, there has been something leading to
> > the problem, or it is the application-building process broke some
> > connections. I thought that the building of the application will not
> > break the relationship betweenjakeand cake, since it should not
> > touch the cake core, but I may well be wrong. But that was the reason
> > I suspected it was the version difference. I am not trying to talk you
> > into guiding me through the upgrading process, I am just trying to
> > identify my problem. Is there a way I can get a cakephp
> > 1.2.0.5427alpha version, so that I can try and see whether it is
> > application-related or version-related? I searched online for long
> > time and found nowhere to download such earlier version of cakephp. Do
> > you have any resources, maybe a backup of earlier files? Again, thanks
> > so much and have a good one!
>
> > Robin
>
> > On Mar 17, 12:03 pm, Brendon Kozlowski  wrote:
>
> > > Umm...what?  You just went from having issues usingJake, a connector
> > > for CakePHP and Joomla, to a completely different application issue.
> > > If it is upgrade problems, I'm of the mindset that if you can't do it
> > > yourself, someone should be hired to do it for you.
>
> > > Anyhow, I took a look at Joomla (v1.5) andJake(v1.0.3.38b for Joomla
> > > 1.5), running CakePHP v1.2.0.7962 (as it was the latest I happened to
> > > have, already downloaded).
>
> > > The primary step thatJakeignores, is that it *assumes* your CakePHP
> > > application is ALREADY installed, configured, and running.  The
> > > configuration ofJakeis then to simply point to where you have it
> > > installed.  I misunderstood howJakeintegrated Joomla and CakePHP.
> > > You install Joomla on its own.  You also install CakePHP on its own.
> > > My (test) directory structure was as follows:
>
> > > - htdocs/
> > > --- joomla/
> > > -- joomla related files...
> > > --- cake/
> > > - app/
> > > --- webroot/
> > > - cake/
> > > - vendors/
>
> > > After following the instructions onJake'ssite, after importing the
> > >JakeZIP archive and reading that I needed to configure the "jake.ini"
> > > file, I came to realize it expected the app to have already been
> > > baked, and all it was asking for was the full (or relative) path to
> > > the CakePHP application.
>
> > > As for Magnik.com's application, I'm not familiar with that, nor do I
> > > really want to be.  Hopefully you can get that working on your own.
> > > Supposedly it uses a version of Cake v1.2, so the routing and htaccess
> > > rules should be the same, so it seems theJakeconfiguration is
> > > (hopefully) simply the problem here.
>
> > > On M

Re: Jake question: rewrite problem?

2009-03-17 Thread Brendon Kozlowski

At this point, I'd suggest contacting Magnik.
http://www.magnik.com/api/terms_and_conditions

See if it's compatible with the current version of CakePHP.  If they
do any URL rewriting of their own (or custom routes) it *may* break
the default setup of Jake.  If that's the case, you'd then need to
compare and contrast the routes.

As for an older version of CakePHP, I don't know how to get access to
it without using an SVN client - and since I don't use SVN, I still
wouldn't know for sure if it's available via that method either.

Have you tried creating a "store" from scratch using Magnik and a
current build of CakePHP?  If you can get that working, the Jake
interoperability can come after.

On Mar 17, 1:48 pm, Robin  wrote:
> Hi Brendon, I appreciate your help. I am under the impression that
> it's not just the jake.ini configuration problem. I tried the latest
> cakephp version and it works like a charm. But using exactly the same
> configuration file, while using the script I mentioned written in an
> earlier version of cake 1.2, I am having the problem. So, I guess
> either between the two versions, there has been something leading to
> the problem, or it is the application-building process broke some
> connections. I thought that the building of the application will not
> break the relationship between jake and cake, since it should not
> touch the cake core, but I may well be wrong. But that was the reason
> I suspected it was the version difference. I am not trying to talk you
> into guiding me through the upgrading process, I am just trying to
> identify my problem. Is there a way I can get a cakephp
> 1.2.0.5427alpha version, so that I can try and see whether it is
> application-related or version-related? I searched online for long
> time and found nowhere to download such earlier version of cakephp. Do
> you have any resources, maybe a backup of earlier files? Again, thanks
> so much and have a good one!
>
> Robin
>
> On Mar 17, 12:03 pm, Brendon Kozlowski  wrote:
>
>
>
> > Umm...what?  You just went from having issues using Jake, a connector
> > for CakePHP and Joomla, to a completely different application issue.
> > If it is upgrade problems, I'm of the mindset that if you can't do it
> > yourself, someone should be hired to do it for you.
>
> > Anyhow, I took a look at Joomla (v1.5) and Jake (v1.0.3.38b for Joomla
> > 1.5), running CakePHP v1.2.0.7962 (as it was the latest I happened to
> > have, already downloaded).
>
> > The primary step that Jake ignores, is that it *assumes* your CakePHP
> > application is ALREADY installed, configured, and running.  The
> > configuration of Jake is then to simply point to where you have it
> > installed.  I misunderstood how Jake integrated Joomla and CakePHP.
> > You install Joomla on its own.  You also install CakePHP on its own.
> > My (test) directory structure was as follows:
>
> > - htdocs/
> > --- joomla/
> > -- joomla related files...
> > --- cake/
> > - app/
> > --- webroot/
> > - cake/
> > - vendors/
>
> > After following the instructions on Jake's site, after importing the
> > Jake ZIP archive and reading that I needed to configure the "jake.ini"
> > file, I came to realize it expected the app to have already been
> > baked, and all it was asking for was the full (or relative) path to
> > the CakePHP application.
>
> > As for Magnik.com's application, I'm not familiar with that, nor do I
> > really want to be.  Hopefully you can get that working on your own.
> > Supposedly it uses a version of Cake v1.2, so the routing and htaccess
> > rules should be the same, so it seems the Jake configuration is
> > (hopefully) simply the problem here.
>
> > On Mar 16, 5:21 pm, Robin  wrote:
>
> > > Thanks Brendon. Definitely appreciate your help. Maybe you can use the
> > > exact cake application I am using so that to reproduce what I am
> > > seeing right now. Here is the 
> > > link:http://www.magnik.com/api/files/magnik%201.2.4.zip.
> > > It is a amazon script written in cakephp. I do think the version
> > > matters since I can use the latest version of cake with no problem,
> > > although I don't have the capability to upgrade that application to
> > > latest cake. Thanks again!
>
> > > On Mar 16, 10:19 am, Brendon Kozlowski  wrote:
>
> > > > Whoops, Smelly Eddie is right.  I think "below" as being outside the
> > > > document root, not within.  I'm back from my trip, I'll see if I can
> > > > install Joomla withJakesupport on a test server later tonight to see
> > > > what the issue is.
>
> > > > On Mar 15, 1:23 pm, Robin  wrote:
>
> > > > > I realized that this might be a completely different problem. Since
> > > > > the mainframe of joomla wasn't displayed after I calledjakecomponent
> > > > > with index.php?option=com_jake. It might be a problem thatjakecalls
> > > > > joomla files, including css files. If that's the case, it is the
> > > > > handling of joomla url be wrong. Since the cake\app path is defined
> > > > > relative

Re: Jake question: rewrite problem?

2009-03-17 Thread Robin

Hi Brendon, I appreciate your help. I am under the impression that
it's not just the jake.ini configuration problem. I tried the latest
cakephp version and it works like a charm. But using exactly the same
configuration file, while using the script I mentioned written in an
earlier version of cake 1.2, I am having the problem. So, I guess
either between the two versions, there has been something leading to
the problem, or it is the application-building process broke some
connections. I thought that the building of the application will not
break the relationship between jake and cake, since it should not
touch the cake core, but I may well be wrong. But that was the reason
I suspected it was the version difference. I am not trying to talk you
into guiding me through the upgrading process, I am just trying to
identify my problem. Is there a way I can get a cakephp
1.2.0.5427alpha version, so that I can try and see whether it is
application-related or version-related? I searched online for long
time and found nowhere to download such earlier version of cakephp. Do
you have any resources, maybe a backup of earlier files? Again, thanks
so much and have a good one!

Robin

On Mar 17, 12:03 pm, Brendon Kozlowski  wrote:
> Umm...what?  You just went from having issues using Jake, a connector
> for CakePHP and Joomla, to a completely different application issue.
> If it is upgrade problems, I'm of the mindset that if you can't do it
> yourself, someone should be hired to do it for you.
>
> Anyhow, I took a look at Joomla (v1.5) and Jake (v1.0.3.38b for Joomla
> 1.5), running CakePHP v1.2.0.7962 (as it was the latest I happened to
> have, already downloaded).
>
> The primary step that Jake ignores, is that it *assumes* your CakePHP
> application is ALREADY installed, configured, and running.  The
> configuration of Jake is then to simply point to where you have it
> installed.  I misunderstood how Jake integrated Joomla and CakePHP.
> You install Joomla on its own.  You also install CakePHP on its own.
> My (test) directory structure was as follows:
>
> - htdocs/
> --- joomla/
> -- joomla related files...
> --- cake/
> - app/
> --- webroot/
> - cake/
> - vendors/
>
> After following the instructions on Jake's site, after importing the
> Jake ZIP archive and reading that I needed to configure the "jake.ini"
> file, I came to realize it expected the app to have already been
> baked, and all it was asking for was the full (or relative) path to
> the CakePHP application.
>
> As for Magnik.com's application, I'm not familiar with that, nor do I
> really want to be.  Hopefully you can get that working on your own.
> Supposedly it uses a version of Cake v1.2, so the routing and htaccess
> rules should be the same, so it seems the Jake configuration is
> (hopefully) simply the problem here.
>
> On Mar 16, 5:21 pm, Robin  wrote:
>
>
>
> > Thanks Brendon. Definitely appreciate your help. Maybe you can use the
> > exact cake application I am using so that to reproduce what I am
> > seeing right now. Here is the 
> > link:http://www.magnik.com/api/files/magnik%201.2.4.zip.
> > It is a amazon script written in cakephp. I do think the version
> > matters since I can use the latest version of cake with no problem,
> > although I don't have the capability to upgrade that application to
> > latest cake. Thanks again!
>
> > On Mar 16, 10:19 am, Brendon Kozlowski  wrote:
>
> > > Whoops, Smelly Eddie is right.  I think "below" as being outside the
> > > document root, not within.  I'm back from my trip, I'll see if I can
> > > install Joomla withJakesupport on a test server later tonight to see
> > > what the issue is.
>
> > > On Mar 15, 1:23 pm, Robin  wrote:
>
> > > > I realized that this might be a completely different problem. Since
> > > > the mainframe of joomla wasn't displayed after I calledjakecomponent
> > > > with index.php?option=com_jake. It might be a problem thatjakecalls
> > > > joomla files, including css files. If that's the case, it is the
> > > > handling of joomla url be wrong. Since the cake\app path is defined
> > > > relative to joomla folder, the path will be wrong as well. But I still
> > > > cannot locate howjakecould mess up with the joomla url writing.
> > > > Anyone please?
>
> > > > On Mar 14, 1:18 pm, Robin  wrote:
>
> > > > > Thanks Smelly. Actually, I did try both, and they gave me the same
> > > > > result. The way I avoided the mixing of index.php page is that I
> > > > > renamed index.php in cakephp to cakephp.php, and call that page 
> > > > > injakecomponent. But still exactly the same symptom. I actually tried 
> > > > > a
> > > > > few other ways, like put joomla files in a folder named joomla and put
> > > > > it under webroot rather than directly copying joomla files to webroot,
> > > > > etc. They all give the same error and symptom.
>
> > > > > One thing I almost forgot and I guess is important: I suppose any
> > > > > cakephp link originally in my cake application shoul

Re: Jake question: rewrite problem?

2009-03-17 Thread Brendon Kozlowski

Umm...what?  You just went from having issues using Jake, a connector
for CakePHP and Joomla, to a completely different application issue.
If it is upgrade problems, I'm of the mindset that if you can't do it
yourself, someone should be hired to do it for you.

Anyhow, I took a look at Joomla (v1.5) and Jake (v1.0.3.38b for Joomla
1.5), running CakePHP v1.2.0.7962 (as it was the latest I happened to
have, already downloaded).

The primary step that Jake ignores, is that it *assumes* your CakePHP
application is ALREADY installed, configured, and running.  The
configuration of Jake is then to simply point to where you have it
installed.  I misunderstood how Jake integrated Joomla and CakePHP.
You install Joomla on its own.  You also install CakePHP on its own.
My (test) directory structure was as follows:

- htdocs/
--- joomla/
-- joomla related files...
--- cake/
- app/
--- webroot/
- cake/
- vendors/

After following the instructions on Jake's site, after importing the
Jake ZIP archive and reading that I needed to configure the "jake.ini"
file, I came to realize it expected the app to have already been
baked, and all it was asking for was the full (or relative) path to
the CakePHP application.

As for Magnik.com's application, I'm not familiar with that, nor do I
really want to be.  Hopefully you can get that working on your own.
Supposedly it uses a version of Cake v1.2, so the routing and htaccess
rules should be the same, so it seems the Jake configuration is
(hopefully) simply the problem here.

On Mar 16, 5:21 pm, Robin  wrote:
> Thanks Brendon. Definitely appreciate your help. Maybe you can use the
> exact cake application I am using so that to reproduce what I am
> seeing right now. Here is the 
> link:http://www.magnik.com/api/files/magnik%201.2.4.zip.
> It is a amazon script written in cakephp. I do think the version
> matters since I can use the latest version of cake with no problem,
> although I don't have the capability to upgrade that application to
> latest cake. Thanks again!
>
> On Mar 16, 10:19 am, Brendon Kozlowski  wrote:
>
>
>
> > Whoops, Smelly Eddie is right.  I think "below" as being outside the
> > document root, not within.  I'm back from my trip, I'll see if I can
> > install Joomla withJakesupport on a test server later tonight to see
> > what the issue is.
>
> > On Mar 15, 1:23 pm, Robin  wrote:
>
> > > I realized that this might be a completely different problem. Since
> > > the mainframe of joomla wasn't displayed after I calledjakecomponent
> > > with index.php?option=com_jake. It might be a problem thatjakecalls
> > > joomla files, including css files. If that's the case, it is the
> > > handling of joomla url be wrong. Since the cake\app path is defined
> > > relative to joomla folder, the path will be wrong as well. But I still
> > > cannot locate howjakecould mess up with the joomla url writing.
> > > Anyone please?
>
> > > On Mar 14, 1:18 pm, Robin  wrote:
>
> > > > Thanks Smelly. Actually, I did try both, and they gave me the same
> > > > result. The way I avoided the mixing of index.php page is that I
> > > > renamed index.php in cakephp to cakephp.php, and call that page 
> > > > injakecomponent. But still exactly the same symptom. I actually tried a
> > > > few other ways, like put joomla files in a folder named joomla and put
> > > > it under webroot rather than directly copying joomla files to webroot,
> > > > etc. They all give the same error and symptom.
>
> > > > One thing I almost forgot and I guess is important: I suppose any
> > > > cakephp link originally in my cake application should be rewrite to a
> > > > joomla component link, right? So, in my original question, I said the
> > > > link is supposed to be "http://localhost/cake/about_us";, that's not
> > > > correct! It should actually be "http://localhost/joomla/index.php?
> > > > option=com_jake.../about_us. It seems to me that this simply
> > > > indicatesjake'srewriting is wrong.
>
> > > > Still in need of help. Please
>
> > > > Robin
>
> > > > On Mar 14, 9:10 am, Smelly Eddie  wrote:
>
> > > > > I have to disagree with Brennen about one thing.
>
> > > > > For security reasons, it is recommended to have most of CakePHPs file
> > > > > (the core) *above* the webroot.
>
> > > > > Your servers (site's) document root should point to cake/app/webroot.
> > > > > That is where you should drop Joomla.
>
> > > > > visiting localhost/  would then show cake  localhost/about_us   would
> > > > > show your static page
>
> > > > > visiting localhost/joomla would then show Joomla.
>
> > > > > Just mixing joomla files into the webroot directory (as your second
> > > > > example above) would be troublesome because both the cake index and
> > > > > the joomla index will be competing. In your case it looks like you
> > > > > completing wrote over the cake index, which would explain the trouble.
>
> > > > > On Mar 13, 4:28 pm, Robin  wrote:
>
> > > > > > Anybody can help please? Thanks so muc

Re: Jake question: rewrite problem?

2009-03-16 Thread Robin

Thanks Brendon. Definitely appreciate your help. Maybe you can use the
exact cake application I am using so that to reproduce what I am
seeing right now. Here is the link: 
http://www.magnik.com/api/files/magnik%201.2.4.zip.
It is a amazon script written in cakephp. I do think the version
matters since I can use the latest version of cake with no problem,
although I don't have the capability to upgrade that application to
latest cake. Thanks again!


On Mar 16, 10:19 am, Brendon Kozlowski  wrote:
> Whoops, Smelly Eddie is right.  I think "below" as being outside the
> document root, not within.  I'm back from my trip, I'll see if I can
> install Joomla withJakesupport on a test server later tonight to see
> what the issue is.
>
> On Mar 15, 1:23 pm, Robin  wrote:
>
>
>
> > I realized that this might be a completely different problem. Since
> > the mainframe of joomla wasn't displayed after I calledjakecomponent
> > with index.php?option=com_jake. It might be a problem thatjakecalls
> > joomla files, including css files. If that's the case, it is the
> > handling of joomla url be wrong. Since the cake\app path is defined
> > relative to joomla folder, the path will be wrong as well. But I still
> > cannot locate howjakecould mess up with the joomla url writing.
> > Anyone please?
>
> > On Mar 14, 1:18 pm, Robin  wrote:
>
> > > Thanks Smelly. Actually, I did try both, and they gave me the same
> > > result. The way I avoided the mixing of index.php page is that I
> > > renamed index.php in cakephp to cakephp.php, and call that page 
> > > injakecomponent. But still exactly the same symptom. I actually tried a
> > > few other ways, like put joomla files in a folder named joomla and put
> > > it under webroot rather than directly copying joomla files to webroot,
> > > etc. They all give the same error and symptom.
>
> > > One thing I almost forgot and I guess is important: I suppose any
> > > cakephp link originally in my cake application should be rewrite to a
> > > joomla component link, right? So, in my original question, I said the
> > > link is supposed to be "http://localhost/cake/about_us";, that's not
> > > correct! It should actually be "http://localhost/joomla/index.php?
> > > option=com_jake.../about_us. It seems to me that this simply
> > > indicatesjake'srewriting is wrong.
>
> > > Still in need of help. Please
>
> > > Robin
>
> > > On Mar 14, 9:10 am, Smelly Eddie  wrote:
>
> > > > I have to disagree with Brennen about one thing.
>
> > > > For security reasons, it is recommended to have most of CakePHPs file
> > > > (the core) *above* the webroot.
>
> > > > Your servers (site's) document root should point to cake/app/webroot.
> > > > That is where you should drop Joomla.
>
> > > > visiting localhost/  would then show cake  localhost/about_us   would
> > > > show your static page
>
> > > > visiting localhost/joomla would then show Joomla.
>
> > > > Just mixing joomla files into the webroot directory (as your second
> > > > example above) would be troublesome because both the cake index and
> > > > the joomla index will be competing. In your case it looks like you
> > > > completing wrote over the cake index, which would explain the trouble.
>
> > > > On Mar 13, 4:28 pm, Robin  wrote:
>
> > > > > Anybody can help please? Thanks so much!
>
> > > > > Robin
>
> > > > > On Mar 13, 1:08 am, Robin  wrote:
>
> > > > > > Hi Brendon, Thanks for the response. I am following the 
> > > > > > documentation
> > > > > > onJake'swebsite:http://dev.sypad.com/projects/jake/documentation/configuration/.
> > > > > > It didn't specify whether joomla has to be installed under 
> > > > > > app\webroot
> > > > > > or not. Since it does have ajake.ini configuration file, which 
> > > > > > allows
> > > > > > me to put in the cakephp folder relative to the joomla folder I am
> > > > > > guessing at least the component is trying to take care of the 
> > > > > > relative
> > > > > > paths by itself.
>
> > > > > > But I did try putting joomla in different locations. Here are a few
> > > > > > examples I tried:
> > > > > > 1. >htdoc
> > > > > >        >cakephp
> > > > > >           >app
> > > > > >               >webroot
> > > > > >           >cake
> > > > > >        >joomla
> > > > > >           >components
> > > > > >               >jake
>
> > > > > > 2. >htdoc
> > > > > >        >cakephp
> > > > > >           >app
> > > > > >               >webroot
> > > > > >                   >index.php (of joomla)
> > > > > >                   >components (of joomla)
> > > > > >                       >jake
> > > > > >                   >administrator (of joomla)
> > > > > >                   >other joomla folders and files
> > > > > >           >cake
>
> > > > > > Neither of them worked for me. Same error and same symptoms (like 
> > > > > > the
> > > > > > missing "\cake" in the URL, etc)
> > > > > > Any clue? Thanks again!
>
> > > > > > Robin
> > > > > > On Mar 12, 6:08 pm, Brendon Kozlowski  
> > > > > > wrote:
>
> > > > > > 

Re: Jake question: rewrite problem?

2009-03-16 Thread Brendon Kozlowski

Whoops, Smelly Eddie is right.  I think "below" as being outside the
document root, not within.  I'm back from my trip, I'll see if I can
install Joomla with Jake support on a test server later tonight to see
what the issue is.

On Mar 15, 1:23 pm, Robin  wrote:
> I realized that this might be a completely different problem. Since
> the mainframe of joomla wasn't displayed after I called jake component
> with index.php?option=com_jake. It might be a problem that jake calls
> joomla files, including css files. If that's the case, it is the
> handling of joomla url be wrong. Since the cake\app path is defined
> relative to joomla folder, the path will be wrong as well. But I still
> cannot locate how jake could mess up with the joomla url writing.
> Anyone please?
>
> On Mar 14, 1:18 pm, Robin  wrote:
>
>
>
> > Thanks Smelly. Actually, I did try both, and they gave me the same
> > result. The way I avoided the mixing of index.php page is that I
> > renamed index.php in cakephp to cakephp.php, and call that page 
> > injakecomponent. But still exactly the same symptom. I actually tried a
> > few other ways, like put joomla files in a folder named joomla and put
> > it under webroot rather than directly copying joomla files to webroot,
> > etc. They all give the same error and symptom.
>
> > One thing I almost forgot and I guess is important: I suppose any
> > cakephp link originally in my cake application should be rewrite to a
> > joomla component link, right? So, in my original question, I said the
> > link is supposed to be "http://localhost/cake/about_us";, that's not
> > correct! It should actually be "http://localhost/joomla/index.php?
> > option=com_jake.../about_us. It seems to me that this simply
> > indicatesjake'srewriting is wrong.
>
> > Still in need of help. Please
>
> > Robin
>
> > On Mar 14, 9:10 am, Smelly Eddie  wrote:
>
> > > I have to disagree with Brennen about one thing.
>
> > > For security reasons, it is recommended to have most of CakePHPs file
> > > (the core) *above* the webroot.
>
> > > Your servers (site's) document root should point to cake/app/webroot.
> > > That is where you should drop Joomla.
>
> > > visiting localhost/  would then show cake  localhost/about_us   would
> > > show your static page
>
> > > visiting localhost/joomla would then show Joomla.
>
> > > Just mixing joomla files into the webroot directory (as your second
> > > example above) would be troublesome because both the cake index and
> > > the joomla index will be competing. In your case it looks like you
> > > completing wrote over the cake index, which would explain the trouble.
>
> > > On Mar 13, 4:28 pm, Robin  wrote:
>
> > > > Anybody can help please? Thanks so much!
>
> > > > Robin
>
> > > > On Mar 13, 1:08 am, Robin  wrote:
>
> > > > > Hi Brendon, Thanks for the response. I am following the documentation
> > > > > onJake'swebsite:http://dev.sypad.com/projects/jake/documentation/configuration/.
> > > > > It didn't specify whether joomla has to be installed under app\webroot
> > > > > or not. Since it does have ajake.ini configuration file, which allows
> > > > > me to put in the cakephp folder relative to the joomla folder I am
> > > > > guessing at least the component is trying to take care of the relative
> > > > > paths by itself.
>
> > > > > But I did try putting joomla in different locations. Here are a few
> > > > > examples I tried:
> > > > > 1. >htdoc
> > > > >        >cakephp
> > > > >           >app
> > > > >               >webroot
> > > > >           >cake
> > > > >        >joomla
> > > > >           >components
> > > > >               >jake
>
> > > > > 2. >htdoc
> > > > >        >cakephp
> > > > >           >app
> > > > >               >webroot
> > > > >                   >index.php (of joomla)
> > > > >                   >components (of joomla)
> > > > >                       >jake
> > > > >                   >administrator (of joomla)
> > > > >                   >other joomla folders and files
> > > > >           >cake
>
> > > > > Neither of them worked for me. Same error and same symptoms (like the
> > > > > missing "\cake" in the URL, etc)
> > > > > Any clue? Thanks again!
>
> > > > > Robin
> > > > > On Mar 12, 6:08 pm, Brendon Kozlowski  wrote:
>
> > > > > > Robin, I won't be able to respond again (most likely) until Monday 
> > > > > > at
> > > > > > the earliest, but maybe someone else can help you if you provide 
> > > > > > some
> > > > > > more information.  It looks like your installation paths may be a
> > > > > > problem.  Can I ask what documentation you were following to get 
> > > > > > this
> > > > > > setup (source)?  Also, please give a textual example of your 
> > > > > > directory
> > > > > > structure, if possible.  CakePHP typically expects to be *below* the
> > > > > > web root, which is why you may be having issues if both Joomla and
> > > > > > CakePHP are at the same level (I haven't usedJake, but I'd think 
> > > > > > that
> > > > > > Joomla should be in

Re: Jake question: rewrite problem?

2009-03-15 Thread Robin

I realized that this might be a completely different problem. Since
the mainframe of joomla wasn't displayed after I called jake component
with index.php?option=com_jake. It might be a problem that jake calls
joomla files, including css files. If that's the case, it is the
handling of joomla url be wrong. Since the cake\app path is defined
relative to joomla folder, the path will be wrong as well. But I still
cannot locate how jake could mess up with the joomla url writing.
Anyone please?

On Mar 14, 1:18 pm, Robin  wrote:
> Thanks Smelly. Actually, I did try both, and they gave me the same
> result. The way I avoided the mixing of index.php page is that I
> renamed index.php in cakephp to cakephp.php, and call that page 
> injakecomponent. But still exactly the same symptom. I actually tried a
> few other ways, like put joomla files in a folder named joomla and put
> it under webroot rather than directly copying joomla files to webroot,
> etc. They all give the same error and symptom.
>
> One thing I almost forgot and I guess is important: I suppose any
> cakephp link originally in my cake application should be rewrite to a
> joomla component link, right? So, in my original question, I said the
> link is supposed to be "http://localhost/cake/about_us";, that's not
> correct! It should actually be "http://localhost/joomla/index.php?
> option=com_jake.../about_us. It seems to me that this simply
> indicatesjake'srewriting is wrong.
>
> Still in need of help. Please
>
> Robin
>
> On Mar 14, 9:10 am, Smelly Eddie  wrote:
>
>
>
> > I have to disagree with Brennen about one thing.
>
> > For security reasons, it is recommended to have most of CakePHPs file
> > (the core) *above* the webroot.
>
> > Your servers (site's) document root should point to cake/app/webroot.
> > That is where you should drop Joomla.
>
> > visiting localhost/  would then show cake  localhost/about_us   would
> > show your static page
>
> > visiting localhost/joomla would then show Joomla.
>
> > Just mixing joomla files into the webroot directory (as your second
> > example above) would be troublesome because both the cake index and
> > the joomla index will be competing. In your case it looks like you
> > completing wrote over the cake index, which would explain the trouble.
>
> > On Mar 13, 4:28 pm, Robin  wrote:
>
> > > Anybody can help please? Thanks so much!
>
> > > Robin
>
> > > On Mar 13, 1:08 am, Robin  wrote:
>
> > > > Hi Brendon, Thanks for the response. I am following the documentation
> > > > onJake'swebsite:http://dev.sypad.com/projects/jake/documentation/configuration/.
> > > > It didn't specify whether joomla has to be installed under app\webroot
> > > > or not. Since it does have ajake.ini configuration file, which allows
> > > > me to put in the cakephp folder relative to the joomla folder I am
> > > > guessing at least the component is trying to take care of the relative
> > > > paths by itself.
>
> > > > But I did try putting joomla in different locations. Here are a few
> > > > examples I tried:
> > > > 1. >htdoc
> > > >        >cakephp
> > > >           >app
> > > >               >webroot
> > > >           >cake
> > > >        >joomla
> > > >           >components
> > > >               >jake
>
> > > > 2. >htdoc
> > > >        >cakephp
> > > >           >app
> > > >               >webroot
> > > >                   >index.php (of joomla)
> > > >                   >components (of joomla)
> > > >                       >jake
> > > >                   >administrator (of joomla)
> > > >                   >other joomla folders and files
> > > >           >cake
>
> > > > Neither of them worked for me. Same error and same symptoms (like the
> > > > missing "\cake" in the URL, etc)
> > > > Any clue? Thanks again!
>
> > > > Robin
> > > > On Mar 12, 6:08 pm, Brendon Kozlowski  wrote:
>
> > > > > Robin, I won't be able to respond again (most likely) until Monday at
> > > > > the earliest, but maybe someone else can help you if you provide some
> > > > > more information.  It looks like your installation paths may be a
> > > > > problem.  Can I ask what documentation you were following to get this
> > > > > setup (source)?  Also, please give a textual example of your directory
> > > > > structure, if possible.  CakePHP typically expects to be *below* the
> > > > > web root, which is why you may be having issues if both Joomla and
> > > > > CakePHP are at the same level (I haven't usedJake, but I'd think that
> > > > > Joomla should be inside Cake's webroot folder?).
>
> > > > > On Mar 12, 2:35 pm, Robin  wrote:
>
> > > > > > Hi everyone:
>
> > > > > >      I am pretty new to cakephp. I am trying to use theJakecomponent
> > > > > > to integrate it into cms. I am having some problems and just 
> > > > > > wondering
> > > > > > if you guys can help.
>
> > > > > >      My cakephp is version 1.2.0.5427alpha and joomla 1.5.9. Due to
> > > > > > limited php knowledge, I am trying to avoid upgrading cake. Since I 
> > > > > > am
> >

Re: Jake question: rewrite problem?

2009-03-14 Thread Robin

Thanks Smelly. Actually, I did try both, and they gave me the same
result. The way I avoided the mixing of index.php page is that I
renamed index.php in cakephp to cakephp.php, and call that page in
jake component. But still exactly the same symptom. I actually tried a
few other ways, like put joomla files in a folder named joomla and put
it under webroot rather than directly copying joomla files to webroot,
etc. They all give the same error and symptom.

One thing I almost forgot and I guess is important: I suppose any
cakephp link originally in my cake application should be rewrite to a
joomla component link, right? So, in my original question, I said the
link is supposed to be "http://localhost/cake/about_us";, that's not
correct! It should actually be "http://localhost/joomla/index.php?
option=com_jake.../about_us. It seems to me that this simply
indicates jake's rewriting is wrong.

Still in need of help. Please

Robin


On Mar 14, 9:10 am, Smelly Eddie  wrote:
> I have to disagree with Brennen about one thing.
>
> For security reasons, it is recommended to have most of CakePHPs file
> (the core) *above* the webroot.
>
> Your servers (site's) document root should point to cake/app/webroot.
> That is where you should drop Joomla.
>
> visiting localhost/  would then show cake  localhost/about_us   would
> show your static page
>
> visiting localhost/joomla would then show Joomla.
>
> Just mixing joomla files into the webroot directory (as your second
> example above) would be troublesome because both the cake index and
> the joomla index will be competing. In your case it looks like you
> completing wrote over the cake index, which would explain the trouble.
>
> On Mar 13, 4:28 pm, Robin  wrote:
>
>
>
> > Anybody can help please? Thanks so much!
>
> > Robin
>
> > On Mar 13, 1:08 am, Robin  wrote:
>
> > > Hi Brendon, Thanks for the response. I am following the documentation
> > > on Jake's 
> > > website:http://dev.sypad.com/projects/jake/documentation/configuration/.
> > > It didn't specify whether joomla has to be installed under app\webroot
> > > or not. Since it does have a jake.ini configuration file, which allows
> > > me to put in the cakephp folder relative to the joomla folder I am
> > > guessing at least the component is trying to take care of the relative
> > > paths by itself.
>
> > > But I did try putting joomla in different locations. Here are a few
> > > examples I tried:
> > > 1. >htdoc
> > >        >cakephp
> > >           >app
> > >               >webroot
> > >           >cake
> > >        >joomla
> > >           >components
> > >               >jake
>
> > > 2. >htdoc
> > >        >cakephp
> > >           >app
> > >               >webroot
> > >                   >index.php (of joomla)
> > >                   >components (of joomla)
> > >                       >jake
> > >                   >administrator (of joomla)
> > >                   >other joomla folders and files
> > >           >cake
>
> > > Neither of them worked for me. Same error and same symptoms (like the
> > > missing "\cake" in the URL, etc)
> > > Any clue? Thanks again!
>
> > > Robin
> > > On Mar 12, 6:08 pm, Brendon Kozlowski  wrote:
>
> > > > Robin, I won't be able to respond again (most likely) until Monday at
> > > > the earliest, but maybe someone else can help you if you provide some
> > > > more information.  It looks like your installation paths may be a
> > > > problem.  Can I ask what documentation you were following to get this
> > > > setup (source)?  Also, please give a textual example of your directory
> > > > structure, if possible.  CakePHP typically expects to be *below* the
> > > > web root, which is why you may be having issues if both Joomla and
> > > > CakePHP are at the same level (I haven't used Jake, but I'd think that
> > > > Joomla should be inside Cake's webroot folder?).
>
> > > > On Mar 12, 2:35 pm, Robin  wrote:
>
> > > > > Hi everyone:
>
> > > > >      I am pretty new to cakephp. I am trying to use the Jake component
> > > > > to integrate it into cms. I am having some problems and just wondering
> > > > > if you guys can help.
>
> > > > >      My cakephp is version 1.2.0.5427alpha and joomla 1.5.9. Due to
> > > > > limited php knowledge, I am trying to avoid upgrading cake. Since I am
> > > > > using xampp on my own computer right now, so mod_rewrite is on. But I
> > > > > always get problem like the following when I connect from jake (with
> > > > > the url ofhttp://localhost/joomla/index.php?option=com_jake), while
> > > > > direct connect to cake (http://localhost/cake) is completely fine.
> > > > > Here is the error message I got when connecting with jake:
> > > > > --
> > > > > Missing controller
> > > > > You are seeing this error because controller Controller could not be
> > > > > found.
> > > > > Notice: If you want to customize this error message, create app\views/
> > > > > errors/missing_controller

Re: Jake question: rewrite problem?

2009-03-14 Thread Smelly Eddie

I have to disagree with Brennen about one thing.

For security reasons, it is recommended to have most of CakePHPs file
(the core) *above* the webroot.

Your servers (site's) document root should point to cake/app/webroot.
That is where you should drop Joomla.

visiting localhost/  would then show cake  localhost/about_us   would
show your static page

visiting localhost/joomla would then show Joomla.

Just mixing joomla files into the webroot directory (as your second
example above) would be troublesome because both the cake index and
the joomla index will be competing. In your case it looks like you
completing wrote over the cake index, which would explain the trouble.

On Mar 13, 4:28 pm, Robin  wrote:
> Anybody can help please? Thanks so much!
>
> Robin
>
> On Mar 13, 1:08 am, Robin  wrote:
>
> > Hi Brendon, Thanks for the response. I am following the documentation
> > on Jake's 
> > website:http://dev.sypad.com/projects/jake/documentation/configuration/.
> > It didn't specify whether joomla has to be installed under app\webroot
> > or not. Since it does have a jake.ini configuration file, which allows
> > me to put in the cakephp folder relative to the joomla folder I am
> > guessing at least the component is trying to take care of the relative
> > paths by itself.
>
> > But I did try putting joomla in different locations. Here are a few
> > examples I tried:
> > 1. >htdoc
> >        >cakephp
> >           >app
> >               >webroot
> >           >cake
> >        >joomla
> >           >components
> >               >jake
>
> > 2. >htdoc
> >        >cakephp
> >           >app
> >               >webroot
> >                   >index.php (of joomla)
> >                   >components (of joomla)
> >                       >jake
> >                   >administrator (of joomla)
> >                   >other joomla folders and files
> >           >cake
>
> > Neither of them worked for me. Same error and same symptoms (like the
> > missing "\cake" in the URL, etc)
> > Any clue? Thanks again!
>
> > Robin
> > On Mar 12, 6:08 pm, Brendon Kozlowski  wrote:
>
> > > Robin, I won't be able to respond again (most likely) until Monday at
> > > the earliest, but maybe someone else can help you if you provide some
> > > more information.  It looks like your installation paths may be a
> > > problem.  Can I ask what documentation you were following to get this
> > > setup (source)?  Also, please give a textual example of your directory
> > > structure, if possible.  CakePHP typically expects to be *below* the
> > > web root, which is why you may be having issues if both Joomla and
> > > CakePHP are at the same level (I haven't used Jake, but I'd think that
> > > Joomla should be inside Cake's webroot folder?).
>
> > > On Mar 12, 2:35 pm, Robin  wrote:
>
> > > > Hi everyone:
>
> > > >      I am pretty new to cakephp. I am trying to use the Jake component
> > > > to integrate it into cms. I am having some problems and just wondering
> > > > if you guys can help.
>
> > > >      My cakephp is version 1.2.0.5427alpha and joomla 1.5.9. Due to
> > > > limited php knowledge, I am trying to avoid upgrading cake. Since I am
> > > > using xampp on my own computer right now, so mod_rewrite is on. But I
> > > > always get problem like the following when I connect from jake (with
> > > > the url ofhttp://localhost/joomla/index.php?option=com_jake), while
> > > > direct connect to cake (http://localhost/cake) is completely fine.
> > > > Here is the error message I got when connecting with jake:
> > > > --
> > > > Missing controller
> > > > You are seeing this error because controller Controller could not be
> > > > found.
> > > > Notice: If you want to customize this error message, create app\views/
> > > > errors/missing_controller.ctp
> > > > Fatal: Create the class below in file: app\controllers\controller.php
> > > >  > > > class Controller extends AppController {
> > > >    var $name = '';}
>
> > > > ?>
> > > > ---­­­-
> > > >      I found something weird as well and think it might mean
> > > > something:
> > > >      I have a static page in my cakphp application: \cake\app\views
> > > > \pages\about_us.ctp. When I connect directly to cake install route, I
> > > > can see those pages perfectly fine with an url in address bar 
> > > > ashttp://localhost/cake/pages/about_us. However, when redirected from
> > > > jake, the url becomehttp://localhost/pages/about_us(meantimethe
> > > > error above appears) and clicking on it gives me 500 error.
> > > >       So my impression is that it's a rewrite problem. I must messed
> > > > up with some configurations. But I am terribly new on this and could
> > > > not figure it out. I played around with .htaccess, etc, but no avail.
> > > > Maybe you can take a quick look and give me a solution. Really
> > > > appreciate it! Thanks a lot!
>
> > > > Robi

Re: Jake question: rewrite problem?

2009-03-13 Thread Robin

Anybody can help please? Thanks so much!

Robin

On Mar 13, 1:08 am, Robin  wrote:
> Hi Brendon, Thanks for the response. I am following the documentation
> on Jake's 
> website:http://dev.sypad.com/projects/jake/documentation/configuration/.
> It didn't specify whether joomla has to be installed under app\webroot
> or not. Since it does have a jake.ini configuration file, which allows
> me to put in the cakephp folder relative to the joomla folder I am
> guessing at least the component is trying to take care of the relative
> paths by itself.
>
> But I did try putting joomla in different locations. Here are a few
> examples I tried:
> 1. >htdoc
>        >cakephp
>           >app
>               >webroot
>           >cake
>        >joomla
>           >components
>               >jake
>
> 2. >htdoc
>        >cakephp
>           >app
>               >webroot
>                   >index.php (of joomla)
>                   >components (of joomla)
>                       >jake
>                   >administrator (of joomla)
>                   >other joomla folders and files
>           >cake
>
> Neither of them worked for me. Same error and same symptoms (like the
> missing "\cake" in the URL, etc)
> Any clue? Thanks again!
>
> Robin
> On Mar 12, 6:08 pm, Brendon Kozlowski  wrote:
>
>
>
> > Robin, I won't be able to respond again (most likely) until Monday at
> > the earliest, but maybe someone else can help you if you provide some
> > more information.  It looks like your installation paths may be a
> > problem.  Can I ask what documentation you were following to get this
> > setup (source)?  Also, please give a textual example of your directory
> > structure, if possible.  CakePHP typically expects to be *below* the
> > web root, which is why you may be having issues if both Joomla and
> > CakePHP are at the same level (I haven't used Jake, but I'd think that
> > Joomla should be inside Cake's webroot folder?).
>
> > On Mar 12, 2:35 pm, Robin  wrote:
>
> > > Hi everyone:
>
> > >      I am pretty new to cakephp. I am trying to use the Jake component
> > > to integrate it into cms. I am having some problems and just wondering
> > > if you guys can help.
>
> > >      My cakephp is version 1.2.0.5427alpha and joomla 1.5.9. Due to
> > > limited php knowledge, I am trying to avoid upgrading cake. Since I am
> > > using xampp on my own computer right now, so mod_rewrite is on. But I
> > > always get problem like the following when I connect from jake (with
> > > the url ofhttp://localhost/joomla/index.php?option=com_jake), while
> > > direct connect to cake (http://localhost/cake) is completely fine.
> > > Here is the error message I got when connecting with jake:
> > > --
> > > Missing controller
> > > You are seeing this error because controller Controller could not be
> > > found.
> > > Notice: If you want to customize this error message, create app\views/
> > > errors/missing_controller.ctp
> > > Fatal: Create the class below in file: app\controllers\controller.php
> > >  > > class Controller extends AppController {
> > >    var $name = '';}
>
> > > ?>
> > > ---­­­-
> > >      I found something weird as well and think it might mean
> > > something:
> > >      I have a static page in my cakphp application: \cake\app\views
> > > \pages\about_us.ctp. When I connect directly to cake install route, I
> > > can see those pages perfectly fine with an url in address bar 
> > > ashttp://localhost/cake/pages/about_us. However, when redirected from
> > > jake, the url becomehttp://localhost/pages/about_us(meantimethe
> > > error above appears) and clicking on it gives me 500 error.
> > >       So my impression is that it's a rewrite problem. I must messed
> > > up with some configurations. But I am terribly new on this and could
> > > not figure it out. I played around with .htaccess, etc, but no avail.
> > > Maybe you can take a quick look and give me a solution. Really
> > > appreciate it! Thanks a lot!
>
> > > Robin- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Jake question: rewrite problem?

2009-03-12 Thread Robin

Hi Brendon, Thanks for the response. I am following the documentation
on Jake's website: 
http://dev.sypad.com/projects/jake/documentation/configuration/.
It didn't specify whether joomla has to be installed under app\webroot
or not. Since it does have a jake.ini configuration file, which allows
me to put in the cakephp folder relative to the joomla folder I am
guessing at least the component is trying to take care of the relative
paths by itself.

But I did try putting joomla in different locations. Here are a few
examples I tried:
1. >htdoc
   >cakephp
  >app
  >webroot
  >cake
   >joomla
  >components
  >jake

2. >htdoc
   >cakephp
  >app
  >webroot
  >index.php (of joomla)
  >components (of joomla)
  >jake
  >administrator (of joomla)
  >other joomla folders and files
  >cake

Neither of them worked for me. Same error and same symptoms (like the
missing "\cake" in the URL, etc)
Any clue? Thanks again!

Robin
On Mar 12, 6:08 pm, Brendon Kozlowski  wrote:
> Robin, I won't be able to respond again (most likely) until Monday at
> the earliest, but maybe someone else can help you if you provide some
> more information.  It looks like your installation paths may be a
> problem.  Can I ask what documentation you were following to get this
> setup (source)?  Also, please give a textual example of your directory
> structure, if possible.  CakePHP typically expects to be *below* the
> web root, which is why you may be having issues if both Joomla and
> CakePHP are at the same level (I haven't used Jake, but I'd think that
> Joomla should be inside Cake's webroot folder?).
>
> On Mar 12, 2:35 pm, Robin  wrote:
>
>
>
> > Hi everyone:
>
> >      I am pretty new to cakephp. I am trying to use the Jake component
> > to integrate it into cms. I am having some problems and just wondering
> > if you guys can help.
>
> >      My cakephp is version 1.2.0.5427alpha and joomla 1.5.9. Due to
> > limited php knowledge, I am trying to avoid upgrading cake. Since I am
> > using xampp on my own computer right now, so mod_rewrite is on. But I
> > always get problem like the following when I connect from jake (with
> > the url ofhttp://localhost/joomla/index.php?option=com_jake), while
> > direct connect to cake (http://localhost/cake) is completely fine.
> > Here is the error message I got when connecting with jake:
> > --
> > Missing controller
> > You are seeing this error because controller Controller could not be
> > found.
> > Notice: If you want to customize this error message, create app\views/
> > errors/missing_controller.ctp
> > Fatal: Create the class below in file: app\controllers\controller.php
> >  > class Controller extends AppController {
> >    var $name = '';}
>
> > ?>
> > ---­­-
> >      I found something weird as well and think it might mean
> > something:
> >      I have a static page in my cakphp application: \cake\app\views
> > \pages\about_us.ctp. When I connect directly to cake install route, I
> > can see those pages perfectly fine with an url in address bar 
> > ashttp://localhost/cake/pages/about_us. However, when redirected from
> > jake, the url becomehttp://localhost/pages/about_us(meantimethe
> > error above appears) and clicking on it gives me 500 error.
> >       So my impression is that it's a rewrite problem. I must messed
> > up with some configurations. But I am terribly new on this and could
> > not figure it out. I played around with .htaccess, etc, but no avail.
> > Maybe you can take a quick look and give me a solution. Really
> > appreciate it! Thanks a lot!
>
> > Robin- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Jake question: rewrite problem?

2009-03-12 Thread Brendon Kozlowski

Robin, I won't be able to respond again (most likely) until Monday at
the earliest, but maybe someone else can help you if you provide some
more information.  It looks like your installation paths may be a
problem.  Can I ask what documentation you were following to get this
setup (source)?  Also, please give a textual example of your directory
structure, if possible.  CakePHP typically expects to be *below* the
web root, which is why you may be having issues if both Joomla and
CakePHP are at the same level (I haven't used Jake, but I'd think that
Joomla should be inside Cake's webroot folder?).

On Mar 12, 2:35 pm, Robin  wrote:
> Hi everyone:
>
>      I am pretty new to cakephp. I am trying to use the Jake component
> to integrate it into cms. I am having some problems and just wondering
> if you guys can help.
>
>      My cakephp is version 1.2.0.5427alpha and joomla 1.5.9. Due to
> limited php knowledge, I am trying to avoid upgrading cake. Since I am
> using xampp on my own computer right now, so mod_rewrite is on. But I
> always get problem like the following when I connect from jake (with
> the url ofhttp://localhost/joomla/index.php?option=com_jake), while
> direct connect to cake (http://localhost/cake) is completely fine.
> Here is the error message I got when connecting with jake:
> --
> Missing controller
> You are seeing this error because controller Controller could not be
> found.
> Notice: If you want to customize this error message, create app\views/
> errors/missing_controller.ctp
> Fatal: Create the class below in file: app\controllers\controller.php
>  class Controller extends AppController {
>    var $name = '';}
>
> ?>
> ---­-
>      I found something weird as well and think it might mean
> something:
>      I have a static page in my cakphp application: \cake\app\views
> \pages\about_us.ctp. When I connect directly to cake install route, I
> can see those pages perfectly fine with an url in address bar 
> ashttp://localhost/cake/pages/about_us. However, when redirected from
> jake, the url becomehttp://localhost/pages/about_us(meantime the
> error above appears) and clicking on it gives me 500 error.
>       So my impression is that it's a rewrite problem. I must messed
> up with some configurations. But I am terribly new on this and could
> not figure it out. I played around with .htaccess, etc, but no avail.
> Maybe you can take a quick look and give me a solution. Really
> appreciate it! Thanks a lot!
>
> Robin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---