Re: Any idea how to put one cakephp project in the directory structure of another cakephp project?
Hi Adam, Thanks for the idea, I've never messed with the .htaccess files before. I tried to put the change in the main directory of julabay and now I get: Fatal error: Class 'Dispatcher' not found in /home2/pageking/public_html/julabay/portfolio/photocardqueen/app/webroot/index.php on line 89 Did I do this in the wrong directory? There are a few .htaccess files sitting around, and until now I've been able to just leave them be. I guess it is time to start learning about them :) What directory do you think I would need to add this change to? Also, should I put my portfolio directory under the app directory vs right from the main julabay directory, or does this not matter as long as I have the .htacess set up properly? Thanks in advance. Adam Royle wrote: > > > You will need to exclude the portfolio directory from being sent to your > default cake installation. Something like this might work... > > >RewriteEngine on >RewriteRule^$ app/webroot/[L] >RewriteCond %{REQUEST_URI} !^/portfolio(/|$) >RewriteRule(.*) app/webroot/$1 [L] > > > - Original Message - > From: "tarapage" > To: > Sent: Monday, June 15, 2009 1:09 PM > Subject: Any idea how to put one cakephp project in the directory > structure > of another cakephp project? > > >> >> >> Hi >> >> I want to host multiple cakephp projects on one domain. I want to be >> able >> to have the following: >> >> www.julabay.com is our main website, it is a cakephp website. >> I want to be able to add the following: >> >> /portfolio/project1 >> /portfolio/project2 >> >> etc, and be able to access them by: >> >> www.julabay.com/portfolio/project1 >> >> I want project 1 to then load up the cakephp application that is under >> project1. I hope that this makes sense. When I put a subdir in the main >> cakephp layout, of course it says: >> >> >> Not Found >> >> Error: The requested address '/portfolio/project1 was not found on this >> server. >> >> >> The reason that I want to do this is that I don't want to keep all of the >> websites that I have created, some of the domains will expire and I do >> not >> need to keep them live. However, I want to keep them onfile for >> portfolio >> reasons, and want a fully functioning cakephp site living within another. >> >> Is this possible? >> >> Thanks >> >> >> -- >> View this message in context: >> http://www.nabble.com/Any-idea-how-to-put-one-cakephp-project-in-the-directory-structure-of-another-cakephp-project--tp24028258p24028258.html >> Sent from the CakePHP mailing list archive at Nabble.com. >> >> >> > >> >> > > > > > > -- View this message in context: http://www.nabble.com/Any-idea-how-to-put-one-cakephp-project-in-the-directory-structure-of-another-cakephp-project--tp24028258p24033669.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Any idea how to put one cakephp project in the directory structure of another cakephp project?
Hi I want to host multiple cakephp projects on one domain. I want to be able to have the following: www.julabay.com is our main website, it is a cakephp website. I want to be able to add the following: /portfolio/project1 /portfolio/project2 etc, and be able to access them by: www.julabay.com/portfolio/project1 I want project 1 to then load up the cakephp application that is under project1. I hope that this makes sense. When I put a subdir in the main cakephp layout, of course it says: Not Found Error: The requested address '/portfolio/project1 was not found on this server. The reason that I want to do this is that I don't want to keep all of the websites that I have created, some of the domains will expire and I do not need to keep them live. However, I want to keep them onfile for portfolio reasons, and want a fully functioning cakephp site living within another. Is this possible? Thanks -- View this message in context: http://www.nabble.com/Any-idea-how-to-put-one-cakephp-project-in-the-directory-structure-of-another-cakephp-project--tp24028258p24028258.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Problem with CakePHP 1.2 AJAX and IE - chained selects work in FF not in IE
Hi Everyone, My husband & I have been trying to determine this problem for a long time now, hoping someone can shed some insight. We have chained selects on one form, you choose data from the first select box, and with an observeField we are watching with AJAX and then triggering a change to the contents of the second select box. This works great in FF, but in IE it does not refresh the screen. We have verified that the function is triggered, and the appropriate data is being generated, IE 7 is just sitting there without refreshing anything Here is the Controller code: function system_select($trading_account_id = null) { if (isset($this->data['TradingAccount'])) { $this->log('system_select with TA data', LOG_DEBUG); $this->log('acct_id = '. $this->data['TradingAccount']['trading_accounts'], LOG_DEBUG); $data = $this->data['TradingAccount']; $redirect = "trading_accounts/system_select/".$this->data['TradingAccount']['trading_accounts']; } elseif (isset($this->data['Trade'])) { // could get called from Trade controller $data = $this->data['Trade']; } if(isset($trading_account_id)) { $data['trading_accounts'] = $trading_account_id; } // Determine systems for each account $temp_acct_id = $data['trading_accounts']; list($systems, $trading_systems) = $this->TradingAccount->getTradingSystems($temp_acct_id); $this->set(compact('trading_systems')); $this->log($trading_systems, LOG_DEBUG); $trading_account_id = $data['trading_accounts']; $this->set('trading_account_id', $trading_account_id); $this->render('system_select', 'ajax'); } Here is the VIEW code: echo $form->input('trading_accounts', array( 'label' => 'Use Trading Account:')); echo $ajax->observeField( $formName.'TradingAccounts', array( 'url' => array( 'controller' => $controller, 'action' => $action ), 'update' => 'systems', 'frequency' => 0.1, 'indicator' => 'Updating' ) ); // default_systems variable must be set as indicated above echo $this->element('system_chooser', array('trading_systems'=>'trading_systems', 'trading_account_id'=>$trading_account_id //selected account id )); The element code is: echo div id="systems" // This IS correctly formatted, however it isn't showing up right in this nabble viewer... echo $form->input('tradingSystems', array('label' => 'Add Trading System:')); echo $form->hidden('trading_account_id', array( 'value' => $trading_account_id )); echo /div; // This is a closing div, it is NOT showing up right in this viewer This works in FF, but does nothing in IE We are thinking a cache issue? We've tried the cake:nocache tags, didn't work. We are clearing cache in the controller, didn't work. Any ideas? This is driving us crazy :) We have logged the data, and when you select something in IE, it goes to the controller, gets the information and has the appropriate data. It just doesn't display it in the browser... Please help if you can, we appreciate it! -- View this message in context: http://www.nabble.com/Problem-with-CakePHP-1.2-AJAX-and-IE---chained-selects-work-in-FF-not-in-IE-tp22911972p22911972.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Can I update 2 different DOM IDS with the click on one ajax link?
Hi, I'm new to cakephp and ajax. I want to update two separate DOM ids when a user clicks on a link, is this possible? There is only one location for one DOM in the 'update' column but I need 2 separate areas to update when a user clicks on one link... Hope this makes sense. Right now my code is: $add_link = $myajax->link( "[Add]", "/test/menu/menu_add_item/ {$l_param}", array( 'update'=> "dst_content", 'before' => "new Effect.Appear('dst_updating', {duration: 0})", 'complete' => "new Element.setOpacity('dst_updating', 0 )" ) ); This updates my list dst_content which I want it to do, but I also want to trigger another DOM to update by running another URL and updating another DOM field with the results. Is this possible, and what am I missing? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Updating a list with AJAX - picking from one list box and updating another
Hi, I'm new to AJAX and to cake PHP, but am an experienced software developer. I'm having trouble doing something that seems very simple. I have two list boxes, both generated from a database. I want to pick items from one list box and have them add to the other list box. This is simple enough, I'm doing it with an link and using ajax to update the destination list once it is added to the database. I also need to remove that item from the source list when the person hits add. I look at the documentation and it says that the update uses one DOM id to update, and I need to update 2 DOM ids off of this one action. Here is an example. Source List Destination List [ADD] Entry 1 [ADD] Entry 2 [ADD] Entry 3 When I click ADD On an entry, I want it to move to the destination list and be removed from the source listing. So let's choose Entry 1. Source ListDestination List [Add] Entry 2 [Delete] Entry 1 [Add] Entry 3 I need this to happen with AJAX. I can get the Add to work to go to the destination but I cannot do the Source change as well. Any ideas? Do I have to add another ajax call besides the ajax->link? Also, when I delete from Destination List I need it to go back to Source list. So If I hit Delete on Entry 1 I need it to look like the original listing above... Source List Destination List [ADD] Entry 1 [ADD] Entry 2 [ADD] Entry 3 All my entries in the source list are being read from the database tables (and I wouldn't want to actually delete them from the tables when the person adds them to the Destination List. All of my Destination List items are stored in a table and can be physically deleted when I hit Delete button. Any ideas would be appreciated. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---