[CakePHP : The Rapid Development Framework for PHP] #6091: Session Component load bug
#6091: Session Component load bug --+- Reporter: wangbo | Type: Bug Status: new| Priority: High Milestone: 1.2.x.x| Component: Components Version: 1.2 Final | Severity: Normal Keywords: | Php_version: n/a Cake_version: | --+- in the component.php core file: {{{ if (!in_array('Session', $controller-components)) { array_unshift($controller-components, 'Session'); } }}} these code means system will load it as the first Component if user don't use Sessioncomponent. in other words, system don't load it as the first Component if user use Sessioncomponent. my app_controller.php: {{{ class AppController extends Controller { var $components = array( 'Session' ); }}} but system still auto reload SessionComponent. the bug code: {{{ if (!in_array('Session', $controller-components)) { array_unshift($controller-components, 'Session'); } }}} -- Ticket URL: https://trac.cakephp.org/ticket/6091 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #6091: Session Component load bug
#6091: Session Component load bug ---+ Reporter: wangbo | Owner: Type: Bug |Status: new Priority: High| Milestone: 1.2.x.x Component: Components | Version: 1.2 Final Severity: Normal |Resolution: Keywords: | Php_version: n/a Cake_version: | ---+ Comment (by wangbo): {{{ if (!in_array('Session', $controller-components)) { array_unshift($controller-components, 'Session'); } pr($controller-components) }}} show: {{{ Array ( [0] = Session [Session] = ) }}} -- Ticket URL: https://trac.cakephp.org/ticket/6091#comment:1 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #6092: 403 is not redirect
#6092: 403 is not redirect --+- Reporter: wangbo | Type: Bug Status: new| Priority: Medium Milestone: 1.2.x.x| Component: Auth Version: 1.2 Final | Severity: Normal Keywords: | Php_version: n/a Cake_version: | --+- line 338 in the auth.php {{{ $controller-redirect(null, 403); }}} 403 is not redirect, should be: {{{ $controller-header('HTTP/1.1 403 Forbidden'); }}} -- Ticket URL: https://trac.cakephp.org/ticket/6092 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #1765: Dispatcher, route and plugins
#1765: Dispatcher, route and plugins ---+ Reporter: naonak | Owner: mark_story Type: Bug |Status: closed Priority: Medium | Milestone: 1.2.x.x Component: Routing/Dispatcher | Version: RC1 Severity: Trivial |Resolution: worksforme Keywords: | Php_version: PHP 4 = 4.3.0 Cake_version: | ---+ Comment (by beldougie): Hi there, I concede that the tests do in fact work and once I sorted out my naming conventions in my plugin my direct connections worked too - thank you for pointing me in the right direction and apologies for wasting your time. Hopefully, the next time I have cause to post, it will be for a worthwhile reason! :D Cheers, -- Ticket URL: https://trac.cakephp.org/ticket/1765#comment:9 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #6090: url suffix by html
#6090: url suffix by html ---+ Reporter: qq71151461 | Owner: Type: Bug |Status: closed Priority: Medium | Milestone: 1.2.x.x Component: General | Version: 1.2 Final Severity: Normal |Resolution: fixed Keywords: | Php_version: n/a Cake_version: | ---+ Changes (by mark_story): * status: new = closed * resolution: = fixed Comment: This is not a support forum, please put your question on the Google group or ask someone in IRC. Google is also a good place to look http://www.google.ca/search?q=extension+based+routing+cakephpie=utf-8oe=utf-8aq=trls=org.mozilla :en-US:officialclient=firefox-a. Furthermore there are existing tests cases for using extensions in routes, you can check those as well. :) -- Ticket URL: https://trac.cakephp.org/ticket/6090#comment:1 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #6091: Session Component load bug
#6091: Session Component load bug ---+ Reporter: wangbo | Owner: mark_story Type: Bug |Status: assigned Priority: High| Milestone: 1.2.x.x Component: Components | Version: 1.2 Final Severity: Normal |Resolution: Keywords: | Php_version: n/a Cake_version: | ---+ Changes (by mark_story): * owner: = mark_story * status: new = assigned -- Ticket URL: https://trac.cakephp.org/ticket/6091#comment:2 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #6078: Can't sort by translated field when using PaginatorHelper::sort() and TranslateBehavior
#6078: Can't sort by translated field when using PaginatorHelper::sort() and TranslateBehavior +--- Reporter: sebby| Owner: Type: Enhancement |Status: new Priority: High | Milestone: 1.3.x.x Component: Controller | Version: Severity: Normal |Resolution: Keywords: | Php_version: n/a Cake_version: 1.2.1.8004 | +--- Changes (by TommyO): * version: 1.2 Final = * type: Bug = Enhancement * milestone: 1.2.x.x = 1.3.x.x Comment: This is a known limitation to the translate behavior. Plans are in the works for 1.3. Moving to enhancement. -- Ticket URL: https://trac.cakephp.org/ticket/6078#comment:1 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #6093: [TEST][PATCH] PHP Tag in static files causes issue when loaded through dispatcher
#6093: [TEST][PATCH] PHP Tag in static files causes issue when loaded through dispatcher +--- Reporter: mattcurry| Type: Bug Status: new | Priority: Medium Milestone: 1.2.x.x | Component: Core Libs Version: 1.2 Final| Severity: Normal Keywords: static dispatch include | Php_version: PHP 5 Cake_version: 8024 | +--- This is related to a bug in the api_generator([http://thechaw.com/api_generator/tickets/view/12]). If static asset file is loaded through the dispatcher, as is the case with plugins, it will error out if there is a php tag (?) in the file. Although that syntax may be perfectly valid, like in the case of a regular expression (shadow.js used in api_generator). Server settings may affect this because obviously [http://api.cakephp.org/api_generator/js/showdown.js] is working fine. Not sure why js and css files are using include, since it includes and evaluates the specified file and there shouldn't be any need to evaluate a static file. Attached patch uses readfile regardless of the type. -- Ticket URL: https://trac.cakephp.org/ticket/6093 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #6092: 403 is not redirect
#6092: 403 is not redirect ---+ Reporter: wangbo | Owner: Type: Bug |Status: closed Priority: Medium | Milestone: 1.2.x.x Component: Auth| Version: 1.2 Final Severity: Normal |Resolution: invalid Keywords: | Php_version: n/a Cake_version: | ---+ Changes (by TommyO): * status: new = closed * resolution: = invalid Comment: See the codes used by Controller::redirect(): http://api.cakephp.org/view_source/controller/#line-552 -- Ticket URL: https://trac.cakephp.org/ticket/6092#comment:1 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #6094: Translate Behavior - Find'ing multiple locales
#6094: Translate Behavior - Find'ing multiple locales --+- Reporter: zaboo | Type: Enhancement Status: new| Priority: Medium Milestone: 1.2.x.x| Component: i18n/l10n Version: 1.2 Final | Severity: Normal Keywords: | Php_version: n/a Cake_version: | --+- As you are able to have a form, and save model data in the form of: {{{ data = array( Model = array( field = array( en_us = 'US Text', en_gb = 'GB Text', en_au = 'AU Text', en_ca = 'CA Text', ) ) ) }}} It would be very nice, if there was a method to do a Model::find and select multiple locales and have it in the right format to automagically populate the form. {{{ $this-Model-locale = 'en_us'; // selects US fine $this-Model-locale = array('en_us', 'en_ca'); // selects US fine, with fallback locales }}} A boolean would be sufficient to tell cake to index all the locale information into an array, instead of just using the first locale found. I ended up just doing a custom behavior (extends TranslateBehavior) to handle my desired functionality. {{{ /** * afterFind Callback * * @param array $results * @param boolean $primary * @return array Modified results * @access public */ function afterFind($model, $results, $primary) { $this-runtime[$model-alias]['fields'] = array(); $locale = $this-_getLocale($model); if (empty($locale) || empty($results) || empty($this-runtime[$model-alias]['beforeFind'])) { return $results; } $beforeFind = $this-runtime[$model-alias]['beforeFind']; foreach ($results as $key = $row) { $results[$key][$model-alias]['locale'] = (is_array($locale)) ? @$locale[0] : $locale; foreach ($beforeFind as $field) { if (is_array($locale)) { foreach ($locale as $_locale) { // // Additional check here; To see if all locale information should be indexed into an array // if(isset($model-getAllLocales) $model-getAllLocales == true) { $results[$key][$model-alias][$field][$_locale] = $results[$key]['I18n__'.$field.'__'.$_locale]['content']; } else { if (!isset($results[$key][$model-alias][$field]) !empty($results[$key]['I18n__'.$field.'__'.$_locale]['content'])) { $results[$key][$model-alias][$field] = $results[$key]['I18n__'.$field.'__'.$_locale]['content']; } unset($results[$key]['I18n__'.$field.'__'.$_locale]); } } if (!isset($results[$key][$model-alias][$field])) { $results[$key][$model-alias][$field] = ''; } } else { $value = ''; if (!empty($results[$key]['I18n__'.$field]['content'])) { $value = $results[$key]['I18n__'.$field]['content']; } $results[$key][$model-alias][$field] = $value; unset($results[$key]['I18n__'.$field]); } } } return $results; } }}} -- Ticket URL: https://trac.cakephp.org/ticket/6094 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #6095: Cake Book Search functionality
#6095: Cake Book Search functionality --+- Reporter: ebadedude | Type: Bug Status: new| Priority: Medium Milestone: 1.2.x.x| Component: Cookbook:book.cakephp.org Version: 1.2 Final | Severity: Normal Keywords: | Php_version: n/a Cake_version: | --+- When I am in the book http://book.cakephp.org/ and I type unbind in the search field and hit the search button, I get a blank page and the link says:[[BR]][[BR]] http://book.cakephp.org/revisions/results/lang:en/theme:default/query:unbind/collection:2 [[BR]][[BR]] I though I should get a result list or a page that says No Results. -- Ticket URL: https://trac.cakephp.org/ticket/6095 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #6095: Cake Book Search functionality
#6095: Cake Book Search functionality --+- Reporter: ebadedude | Owner: Type: Bug|Status: closed Priority: Medium | Milestone: 1.2.x.x Component: Cookbook:book.cakephp.org | Version: 1.2 Final Severity: Normal |Resolution: invalid Keywords: | Php_version: n/a Cake_version: | --+- Changes (by gwoo): * status: new = closed * resolution: = invalid Comment: http://thechaw.com/cakebook/tickets -- Ticket URL: https://trac.cakephp.org/ticket/6095#comment:1 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---