Re: CakePHP Database Tables exposed!

2014-05-16 Thread José Lorenzo
In all seriousness, You jsut need to modify the generated templates from cake bake so that only the tables you want to be exposed are shown. On Thursday, May 15, 2014 4:58:49 PM UTC+2, Mohammad Noman wrote: > > All our database tables are exposed, this is quite bad as we have turned > off debug

Re: CakePHP Database Tables exposed!

2014-05-16 Thread José Lorenzo
I would recommend dropping all the tables you don't need and running `cake bake` again. On Thursday, May 15, 2014 4:58:49 PM UTC+2, Mohammad Noman wrote: > > All our database tables are exposed, this is quite bad as we have turned > off debug mode, what is the way or option to turn these kind of

Re: Too many count statements

2014-05-16 Thread José Lorenzo
For a few sad reasons, cakephp needs to do that. You can change this behavior by overriding AppModel::exists() and caching the result from the parten for the same provided id. That is my recommended solution. On Friday, May 16, 2014 11:06:57 AM UTC+2, heohni wrote: > > Hi, > > I am just reading

Multiple HABTM to the same Model

2014-05-16 Thread nook
Hi folks, im goggling for this a few days but can't find a clear solution for my problem. So what i am trying to do is quit simple. I created a *Container* model and this $actsAs tree. Container Database: id, containertype_id, name, parent_id, lft, rght Now i want to create a Contact. A Contact

CakePHP Database Tables exposed!

2014-05-16 Thread Mohammad Noman
All our database tables are exposed, this is quite bad as we have turned off debug mode, what is the way or option to turn these kind of pages OFF? See attached screenshot. Let me know, Thanks.

cakephp v 1.3.14

2014-05-16 Thread k2014
dear, i need to know the vulnerabilities and security problems of the v 1.3.14 and if you can recommend me a better version in which these problems are fixed -- View this message in context: http://cakephp.1045679.n5.nabble.com/cakephp-v-1-3-14-tp5718212.html Sent from the CakePHP mailing list

MP3 Upload Project : CakePHP

2014-05-16 Thread Sibusiso Ndlovu
Hi All, I new to CakePHP, read lot of it and im working on MP3 upload and download project and using cake. Looking for help in building the project, I have started bui

postLink blackholed after upgrade

2014-05-16 Thread Lorenzo Milesi
Hi. I've this link in a view: $this->Form->postlink(__('I want to fund'), array('controller' => 'mycontroller', 'action' => 'funds',$id)); It has been working great with CakePHP 2.0.6. Now I upgraded my lib/ file to CakePHP 2.5 and the same request gets blackholed: The request has been black

Re: Upgrading from cakePHP version 1.3 to 2.5

2014-05-16 Thread Reuben Helms
I'd branch, at the very least. On Friday, May 16, 2014, HK wrote: > I was wondering what to do with my mercurial in such case of a large > upgrade process, especially with composer, where directory structures > changes a lot . > Do you start a new project or make the changes (no matter how big)

Re: Deleting an associated HABTM record

2014-05-16 Thread WhyNotSmile
Thanks, Reuben. I changed the $uses variable to 'FlagsInvoice' and it seems fine now! Didn't really want to explicitly define the FlagInvoice Model, as I really only need it in this one line of code. Thanks for your help. On Friday, 16 May 2014 06:05:25 UTC+1, Reuben wrote: > > Since the conv

Re: Upgrading from cakePHP version 1.3 to 2.5

2014-05-16 Thread Earth Technology
Thanks you for your responses. Do you know when stable version of 3.x will be available. On Fri, May 16, 2014 at 2:51 PM, Thomas von Hassel wrote: > If you can wait that long, maybe wait for 3.x to become stable and upgrade > to that instead. > > /thomas > > On 16 May 2014, at 06:21, earth wro

Re: Upgrading from cakePHP version 1.3 to 2.5

2014-05-16 Thread HK
I was wondering what to do with my mercurial in such case of a large upgrade process, especially with composer, where directory structures changes a lot . Do you start a new project or make the changes (no matter how big) to your current project on a separate branch? Thanks On Friday, May 16,

Re: Too many count statements

2014-05-16 Thread euromark
You should probably also post all your CakePHP code around the queries you run We are not mind readers after all Am Freitag, 16. Mai 2014 11:06:57 UTC+2 schrieb heohni: > > Hi, > > I am just reading in a json string, use json_decode() to get an array and > then I walk through this array and do

Re: Upgrading from cakePHP version 1.3 to 2.5

2014-05-16 Thread Thomas von Hassel
If you can wait that long, maybe wait for 3.x to become stable and upgrade to that instead. /thomas On 16 May 2014, at 06:21, earth wrote: > I have a project in cakePHP version 1.3 and i want it to upgrade it to > cakePHP version 2.5 > Please let me know the best way to do this upgrade. > >

Too many count statements

2014-05-16 Thread heohni
Hi, I am just reading in a json string, use json_decode() to get an array and then I walk through this array and do an update statement. Really simple stuff, but in debug mode I can see for each array element the following statements: 1SELECT COUNT(*) AS `count` FROM `tablex`.`data` AS `fieldy`