Re: How to upgrade TLS version in cakePHP

2016-03-14 Thread Борислав Събев Borislav Sabev
This has nothing to do with CakePHP - it is a pure-PHP issue. Maybe the versions of PHP you use in the CLI (terminal) abd web are different? Check which is which and if different see how to configure the web-based one. It really depends on what OS you are running this. Any web application

Re: Cake 2.5.1 Extremely Slow With MSSQL?

2014-08-15 Thread Борислав Събев Borislav Sabev
I've been following this theme for quite some time now and I need to ask: Why would anyone want to use MSSQL with PHP? And before anyone starts getting evangelist on me: Yes, MSSQL could be considered an advantage over MySQL and it is. Sure! But IT IS NOT THE ONLY OPTION and it is very,very

Re: cross tables in cake 1.3

2014-07-01 Thread Борислав Събев Borislav Sabev
I. There should not be a case where you have to load so many models in a single controller. As all objects in OOP, it is good that controllers be delegated *only one specific task*, not 2, not 3 and not 25... Are you sure that there is no way that you can extract so functionality and move it

Re: Need help to integrate smary 3.0 with cake PHP 2.0

2014-06-04 Thread Борислав Събев Borislav Sabev
I know this is somewhat of a troll answer, but: This should be possible with some tweaks to core variables, but why in the world would you want to do that? If your answer is that you know Smarty and not CakeViews I'd suggest you take 4 hours of reading and you will be pretty comfortable with

Re: Integrating Jasper Reports into Cakephp

2014-05-02 Thread Борислав Събев Borislav Sabev
I haven't used Jasper exactly, but you can pretty easily use the PHPJavaBridge http://php-java-bridge.sourceforge.net/ to integrate and call it's methods. Here are some examples I found: https://github.com/tsuyu/jasper-report-php-integration

Re: Recommendation Algorithm in cakePHP

2014-04-16 Thread Борислав Събев Borislav Sabev
Business-related DATA-connected logic is best residing in the Model, yes but there are still other considerations. What if your logic was somehow VIew-related? For example you had to show some complex three-like structure and you wanted to pre-process it on the server? A model would do of

Re: Using ODBC Data Source in Cake 2.4

2014-04-05 Thread Борислав Събев Borislav Sabev
Well I don't think there is any support out of the box but I may be very wrong. Can someone who knows the core super well answer? Otherwise you can extend the DboSource and connect throgh a PDO just like in this example: https://gist.github.com/ceeram/3062745 - check the function connect()

Re: Using ODBC Data Source in Cake 2.4

2014-04-05 Thread Борислав Събев Borislav Sabev
Now that i searched a bit more I saw that There is a Datasources plugin for CakePHP 2.0 https://github.com/cakephp/datasources/tree/2.0 but the `Database/Odbc` data source is still incompatible with CakePhp 2.x. *So you should definitely start there!* I also answered your StackOverflow

Re: iOS app development

2014-04-05 Thread Борислав Събев Borislav Sabev
You're talking about json responces so I suppose as an overall service pattern you are using REST? 1. For the redirects Well in that case, REST dictates that you need to use HTTP's facilities. I am saying this especially for the redirects. You don't need to send redirects as information in JSON

Re: is this a threadsafe code?

2014-03-20 Thread Борислав Събев Borislav Sabev
Well in a sense it is thread safe since the executed php code will NOT actually thread itself. @Gary Kremmer seems to be confusing terms. Gary, there is no problem here since each and every user will get his own execution scope and instance of the code. The fact that nginx forks itself for

Re: Is Cake Dead Or Just Catching Up?

2014-03-12 Thread Борислав Събев Borislav Sabev
Here's an interesting thing: I am not actively developing in Cake for a year now, however I do continue to keep up with changes, have some little projects here and there and most importantly to try to help. However I cannot not agree with Jeremy Burns' comments on the types of questions being

Re: CakePHP 3.0 error

2014-03-12 Thread Борислав Събев Borislav Sabev
I can bet some money that this could be somehow related to: https://groups.google.com/forum/#!topic/cake-php/hhnJEXDSGzU Good to know you've solved your issue btw. On Tuesday, 11 March 2014 19:19:01 UTC+2, André Luis wrote: Hi people, I am trying to follow the Blog tutorial from cakephp 3.0

Re: Can't we use more than 1 paginator per page?

2014-03-11 Thread Борислав Събев Borislav Sabev
It is possible of course but it depends on if you would like to persist the pagination - i.e. save the state via URL so that you can access the same portion of data later. In that case you will have to find a nice named-parameter way to persist the pagination data. You will have to use AJAX

Re: upload compressed image

2014-03-11 Thread Борислав Събев Borislav Sabev
:D On Monday, 10 March 2014 11:29:04 UTC+2, AD7six wrote: On Monday, 10 March 2014 10:06:45 UTC+1, raj kumar Pustela wrote: hi all.. How to implement upload compressed image/video in cakephp 2.3.0.if any one know pls help me. It's exactly the same process as to upload an

Re: Router redirect pass all parameters to another domian

2014-01-22 Thread Борислав Събев Borislav Sabev
As Reuben said - you will be far better off with a Web Server based redirect. This way your application will not get called at all. On Monday, 20 January 2014 23:49:09 UTC+2, gonzela2006 wrote: Hello, I want to use *Router::redirect* to redirect to another domain and pass all parameters