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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> wrote: > > > > > > > Anybody can help please? Thanks so much! > > > > > > > Robin > > > > > > > On Mar 13, 1:08 am, Robin <[email protected]> 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 <[email protected]> > > > > > > > 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 <[email protected]> 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 > > > > > > > > > using xampp on my own computer right now, so mod_rewrite is > > > > > > > > > on. But I > > > > > > > > > always get problem like the following when I connect > > > > > > > > > fromjake(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 withjake: > > > > > > > > > -------------------------------------------------------------------------- > > > > > > > > > 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 > > > > > > > > > <?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 -- Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
