Re: [CakePHP : The Rapid Development Framework for PHP] #3877: @ should not be used to suppress notices
#3877: @ should not be used to suppress notices +--- Reporter: mensler | Owner: Type: Optimization |Status: new Priority: Low | Milestone: 1.2.x.x Component: General | Version: RC1 Severity: Minor|Resolution: Keywords: | Php_version: PHP 5 Cake_version: 1.2.0.6311 beta | +--- Comment (by mensler): Replying to [comment:6 nate]: Not smart. An extra stat call is slower than error suppression. I've tested this. {{{file_exists($file) unlink($file);}}} is 6 times faster than [EMAIL PROTECTED]($file);}}}. So I still would recommend to change this in CakeSession::destroy() and CakeSession::!__regenerateId() or at least check if Session.save is not 'database'. -- Ticket URL: https://trac.cakephp.org/ticket/3877#comment:11 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #5660: Set display_errors=0 and error_log instead of using error_reporting(0)
#5660: Set display_errors=0 and error_log instead of using error_reporting(0) ---+ Reporter: mensler | Type: Optimization Status: new | Priority: Low Milestone: 1.2.x.x | Component: Config Version: RC3 | Severity: Trivial Keywords: | Php_version: PHP 5 Cake_version: 1.2.0.7692 RC3 | ---+ In Configure::write() error reporting is turned of, if debug is set to 0. I think it would be better to use {{{ if (function_exists('ini_set')) { ini_set('display_errors', 0); ini_set('log_errors', 1); ini_set('error_log', LOGS.'php_errors.log'); } else { error_reporting(0); } }}} This way errors get logged in production environments and the log file can be observed by log2mail for example. -- Ticket URL: https://trac.cakephp.org/ticket/5660 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5661: Controller: redirect() files using custom components
#5661: Controller: redirect() files using custom components ---+ Reporter: danfreak| Owner: Type: Bug |Status: new Priority: Medium | Milestone: 1.2.x.x Component: Controller | Version: RC3 Severity: Normal |Resolution: Keywords: | Php_version: PHP 5 Cake_version: | ---+ Comment (by danfreak): I suggest to change [https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/controller/controller.php#L494 line#494] to {{{ } elseif (!empty($resp) $resp !== null) { }}} -- Ticket URL: https://trac.cakephp.org/ticket/5661#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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5661: Controller: redirect() files using custom components
#5661: Controller: redirect() files using custom components ---+ Reporter: danfreak| Owner: Type: Bug |Status: closed Priority: Medium | Milestone: 1.2.x.x Component: Controller | Version: RC3 Severity: Normal |Resolution: needmoreinfo Keywords: | Php_version: PHP 5 Cake_version: | ---+ Comment (by AD7six): minor correction, you can return an array format url. -- Ticket URL: https://trac.cakephp.org/ticket/5661#comment:3 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5661: Controller: redirect() files using custom components
#5661: Controller: redirect() files using custom components ---+ Reporter: danfreak| Owner: Type: Bug |Status: closed Priority: Medium | Milestone: 1.2.x.x Component: Controller | Version: RC3 Severity: Normal |Resolution: needmoreinfo Keywords: | Php_version: PHP 5 Cake_version: | ---+ Changes (by AD7six): * status: new = closed * resolution: = needmoreinfo Comment: Please attach a test case or at the very least describe a reproducible problem and not what you think needs changing. If a specific component is loaded and does not have a beforeRedirect method, it won't have a corresponding entry in the $response array. Your component should be returning null, an array of params (must include 'url' = ) or a string url to override. -- Ticket URL: https://trac.cakephp.org/ticket/5661#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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5650: Helper callbacks should be inside the rendering buffers
#5650: Helper callbacks should be inside the rendering buffers +--- Reporter: dho | Owner: nate Type: Enhancement |Status: new Priority: Medium | Milestone: 1.2.x.x Component: Helpers | Version: RC3 Severity: Normal |Resolution: Keywords: | Php_version: n/a Cake_version: 1.2.0.7774 | +--- Changes (by nate): * owner: = nate * status: reopened = new * version: = RC3 * milestone: = 1.2.x.x Comment: @rafaelbandeira3: Yes, I agree with your take on it. -- Ticket URL: https://trac.cakephp.org/ticket/5650#comment:8 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #5662: Html helper / css function refers to wrong directory
#5662: Html helper / css function refers to wrong directory -+-- Reporter: dom | Type: Bug Status: new | Priority: Medium Milestone: 1.2.x.x | Component: Helpers Version: RC3 | Severity: Trivial Keywords: helper small bug | Php_version: PHP 5 Cake_version: 1.2.0.7692 RC3| -+-- The css function from the HTML helper creates a link to the wrong folder. I thing the error is in the html.php on line 354 $path = str_replace(CSS_URL, 'ccss/', $path); i thing to remove one c from the 'ccss/' will fix it ;-) -- Ticket URL: https://trac.cakephp.org/ticket/5662 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5662: Html helper / css function refers to wrong directory
#5662: Html helper / css function refers to wrong directory -+-- Reporter: dom | Owner: Type: Bug |Status: closed Priority: Medium| Milestone: 1.2.x.x Component: Helpers | Version: RC3 Severity: Trivial |Resolution: invalid Keywords: helper small bug | Php_version: PHP 5 Cake_version: 1.2.0.7692 RC3| -+-- Changes (by gwoo): * status: new = closed * resolution: = invalid Comment: ccss is used for the compress css via the css.php, notice the filter setting. -- Ticket URL: https://trac.cakephp.org/ticket/5662#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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #5664: PHP Warning when cache file is expired or does not exist
#5664: PHP Warning when cache file is expired or does not exist ---+ Reporter: dgrekov | Type: Bug Status: new | Priority: Medium Milestone: 1.2.x.x | Component: Cache Version: RC3 | Severity: Normal Keywords: | Php_version: PHP 5 Cake_version: 1.2.0.7692 RC3 | ---+ Get error: Unexpected PHP error [Illegal offset type in isset or empty] severity [E_WARNING] in [C:\xampp\htdocs\Projects\SiteSearch\cake\libs\cache.php line 245] When I call Cache:read() from model and there is no cache file or the cache file is expired. This warning does not show up when the cache files are current. -- Ticket URL: https://trac.cakephp.org/ticket/5664 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5650: Helper callbacks should be inside the rendering buffers
#5650: Helper callbacks should be inside the rendering buffers +--- Reporter: dho | Owner: nate Type: Enhancement |Status: new Priority: Medium | Milestone: 1.2.x.x Component: Helpers | Version: RC3 Severity: Normal |Resolution: Keywords: | Php_version: n/a Cake_version: 1.2.0.7774 | +--- Comment (by mark_story): rafaelbandeira3: You are indeed correct about beforeRender and afterRender, I guess thats what happens when you only scan the function quickly ;). As for your proposed changes, I think they are a good enhancement, but I agree with nate. Changing it now could break BC with userland helpers so this should wait till the next version. -- Ticket URL: https://trac.cakephp.org/ticket/5650#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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #5665: [PATCH] Replace array_combine usage with array_diff in BehaviorCollection::enable/detach
#5665: [PATCH] Replace array_combine usage with array_diff in BehaviorCollection::enable/detach ---+ Reporter: davidpersson| Type: Optimization Status: new | Priority: Medium Milestone: 1.2.x.x | Component: Model Version: RC3 | Severity: Minor Keywords: | Php_version: PHP 5 Cake_version: 1.2.0.7692 RC3 | ---+ The usage of array_combine (and a foreach loop) can be avoided by using array_diff. array_diff is faster and more clean. I've run the behavior test case before and after applying the attached patch. In both cases all tests passed. -- Ticket URL: https://trac.cakephp.org/ticket/5665 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5628: requestAction does not receive $this-data anymore
#5628: requestAction does not receive $this-data anymore +--- Reporter: braulio | Owner: mark_story Type: Bug |Status: closed Priority: Medium | Milestone: 1.2.x.x Component: Controller | Version: RC3 Severity: Normal |Resolution: fixed Keywords: requestAction| Php_version: PHP 5 Cake_version: 11.2.0.7692 RC3 | +--- Comment (by braulio): Replying to [comment:11 nate]: Let's be clear: no one asked you to track down the bug.[[BR]] [[BR]] Well, again thanks for appreciating my help.[[BR]] [[BR]] Replying to [comment:11 nate]: I've said it before and I'll say it again: as framework developers, we are orders of magnitude more qualified to identify the true source of bugs. The only real way to waste the least amount of everyones' time is writing effective test cases to demonstrate what you think the bugs are.[[BR]] [[BR]] Orders of magnitude? I don't think you have the right to be condescent with me or anyone else! You don't know me and you don't know my skills. Be careful. In fact, your framework is not that hard to debug (and to mind-map) with adequate tools, as this bug report can show. I did not spent more than 20 minutes understanding your code and finding a solution after Mark closed the bug... -- Ticket URL: https://trac.cakephp.org/ticket/5628#comment:13 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #5666: Pagination - unable to sort by custom aliased fields
#5666: Pagination - unable to sort by custom aliased fields ---+ Reporter: morris082 | Type: Enhancement Status: new | Priority: Medium Milestone: 1.2.x.x | Component: Helpers Version: RC3 | Severity: Normal Keywords: pagination | Php_version: PHP 5 Cake_version: | ---+ When using pagination I can't sort by custom aliased fields from my query. [[BR]][[BR]] For example if I include an extra field, such as COUNT(some_other_field) AS numStuff I cannot sort by 'numStuff'. [[BR]][[BR]] I poked around the options but found nothing. I tried to extend/customize the pagination query for my model, but the 'order' field was not being passed in. [[BR]][[BR]] There is a simple solution here, though it does open up possiblity of non- existent field sorting, but I don't think that is a big risk. [[BR]][[BR]] In controller.php, line 948, in function paginate, add one more else statement so it becomes: {{{ if (isset($object-{$alias}) $object-{$alias}-hasField($field)) { $options['order'][$alias . '.' . $field] = $value; } elseif ($object-hasField($field)) { $options['order'][$alias . '.' . $field] = $value; }else{ $options['order'][$field] = $value; } }}} This way if I attempt to sort by 'numStuff', and it doesn't exist as a field of the model, it will still be used in query for the order. -- Ticket URL: https://trac.cakephp.org/ticket/5666 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5667: Ignore non-PHP blocks of model, view, controller and helper files
#5667: Ignore non-PHP blocks of model, view, controller and helper files +--- Reporter: ilozka | Owner: Type: Bug |Status: closed Priority: Medium | Milestone: 1.2.x.x Component: General | Version: RC2 Severity: Normal |Resolution: invalid Keywords: | Php_version: PHP 5 Cake_version: | +--- Changes (by mark_story): * status: new = closed * resolution: = invalid Comment: So how should this be implemented at a code level? This seems more like a PHP issue in general. BOM headers can be solved by using a more aware tool. As for whitespaces, that rests entirely no your shoulders to handle however the closing ? are not required on all code files. But this is not an issue with Cake. -- Ticket URL: https://trac.cakephp.org/ticket/5667#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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #2064: Ajax autoComplete with option
#2064: Ajax autoComplete with option -+-- Reporter: c3k | Owner: Any Developer Type: Bug |Status: reopened Priority: Medium| Milestone: 1.2.x.x Component: Helpers | Version: RC3 Severity: Normal|Resolution: Keywords: autoComplete with option | Php_version: PHP 4 = 4.3.0 Cake_version:| -+-- Comment (by fernyb): I don't think autocompleter has a with option? As reading the documentation for it it doesn't support it. I think it was mistaken with the parameters option? I've attached a diff. -- Ticket URL: https://trac.cakephp.org/ticket/2064#comment:8 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---