Re: 404 requests filling view cache

2015-10-27 Thread OJ Tibi - @ojtibi
How does your cache configuration look like? On Wednesday, October 28, 2015 at 8:34:43 AM UTC+8, cricket wrote: > > Cake 2.2.4 (Yeah, i know -- need to upgrade this site!) > > I just noticed that the view cache dir has a bunch of files along the > lines of: > > > s_2fabc_2fabc_2fabc_2f_24_7b_40pr

Re: CakePHP 3.x - Schema, Mysql and LONGTEXT

2015-10-26 Thread OJ Tibi - @ojtibi
Re-opening thread. Migration plugins for both versions 2 and 3 should support MEDIUMTEXT and LONGTEXT. The fact is, the developer should be the one responsible in determining if their data is compatible with their desired database engine, which means it shouldn't be a problem that these fields

Making AssetCompress Work With Friendsofcake/App-Template

2015-07-10 Thread OJ Tibi - @ojtibi
Hello, folks. Back story: I came across Mark's AssetCompress plugin through the FriendsOfCake website, and I've been using it with my 2.x projects, before I started using the app-template, and it works nicely. Fast-forward: I have a new project that uses friendsofcake/app-template for 2.5, and

Re: HttpClient SSL error

2015-03-22 Thread OJ Tibi - @ojtibi
Server probably disabled SSLv3. You could try to explicitly connect using TLS if that's the case. There's an article that describes how it's done (see link below), but it needs some work. Basically, you need to specify the ciphers you need to use, and pass those as options to CakePHP3's Http/Cl

Re: datetime and timezone best practice?

2015-03-22 Thread OJ Tibi - @ojtibi
Hello, I would do something like this. 1. Make sure a timezone string is saved with the user's profile. Once user logs in, the timezone string can now be retrieved using the Auth component ($this->Auth->user('timezone')). 2. Let the user enter the date you need, hopefully in a usable format. 3.

Plugin Development Workflow

2015-03-18 Thread OJ Tibi - @ojtibi
Hello, folks. I was wondering, what's your plugin development workflow? What I know is that before you want to start developing a plugin, you must at least have a surrogate app to write and test it with. From there, you'll want to push it somewhere (probably with a Composer manifest) where ano

Simultaneous Basic and Form Authentication

2015-01-29 Thread OJ Tibi - @ojtibi
Hi, folks. I was wondering if I could use Basic and Form Authentication simultaneously in the same app, since the app has an admin section, and will be used as an API at the same time. I read in the Book that one can use multiple authentication providers at the same time, but does that actually

Re: cakedc/migrations Plugin: Index Operations

2014-10-16 Thread OJ Tibi - @ojtibi
h to > a fork until changes are being merged: > https://getcomposer.org/doc/05-repositories.md#vcs > > Having said that, your urgency has been noted so we will try to look into > this issue sooner. > > Thanks for reaching out. > > On Wednesday, 15 October 2014 22:36:17 UT

cakedc/migrations Plugin: Index Operations

2014-10-15 Thread OJ Tibi - @ojtibi
Hi folks, I came across a speed bump with cakedc/migrations regarding creating/removing indexes on existing table columns. You can take a look at an issue I opened here: https://github.com/CakeDC/migrations/issues/189 Essentially, I just reopened issue #170 regarding how indexes are operated

What better way to create a helper that generates tabs and multi sub​​-tabs level?

2014-10-15 Thread OJ Tibi - @ojtibi
Try to create a view template that implements the tabbing functionality that you described. From that point, you may begin to notice the patterns in the markup that you may want to convert into a helper. Most of the time, the logic is limited to front-end code only, so I don't feel that a helper

CakePHP and Database Cursors

2014-10-08 Thread OJ Tibi - @ojtibi
Hi again, Assuming that in the near future, a developer might need to operate on a huge dataset and a batch update is out of the question, since the conditions of the operation is dependent on values that each record might have (e.g., transcribing record details into a new table for normalizati

Docker and CakePHP?

2014-09-24 Thread OJ Tibi - @ojtibi
Howdy, folks. I was wondering if any of you have experience deploying CakePHP in Docker containers? Also, have you tried running CakePHP shells inside a Docker container and/or set up a shell as a cron job inside the container? TIA, OJ -- Like Us on FaceBook https://www.facebook.com/CakePHP F

Handling Date Year Parts With Text/Number Form Fields?

2014-09-03 Thread OJ Tibi - @ojtibi
Hi Folks, I'm using text/number fields to let users input year values that aren't restricted by options, and I was just wondering, what's the best way to handle year parts of a date type using text/number input fields? For example, using `$this->Form->number('my_date.year')` in my add/insert v

Vote for CakePHP on DevDocs!

2014-07-23 Thread OJ Tibi - @ojtibi
Hi folks! I've recently stumbled upon an all-in-one documentation web app named DevDocs. I suggest you look around, play with it and search through documentation you might use everyday (vanilla PHP, Angular, vanilla JavaScript, other preprocessors, etc.) If you like DevDocs and love CakePHP, p

Re: Using multiple databases with defaultConnectionName

2014-07-06 Thread OJ Tibi - @ojtibi
Hi, Joe. First, make sure your other database's connection settings are saved in database.php Then, in your Captcha model, set the public attribute $useDbConfig to the name of the settings in database.php. HTH. On Monday, July 7, 2014 1:18:19 AM UTC+8, Joe Theuerkauf wrote: > > Maybe i'm get

Re: RESTful (Form) Validation?

2014-03-12 Thread OJ Tibi - @ojtibi
me someday when I start on a new project. For now, I'll just be taking bits and pieces from that idea since I'm already in the middle of prototyping. Cheers, OJ On Wednesday, March 12, 2014 12:06:00 PM UTC+8, OJ Tibi - @ojtibi wrote: > > Hi folks, > > I was wondering if t

Re: RESTful (Form) Validation?

2014-03-12 Thread OJ Tibi - @ojtibi
Thanks, AD. I'll be reading the example today. Cheers, OJ On Wednesday, March 12, 2014 12:06:00 PM UTC+8, OJ Tibi - @ojtibi wrote: > > Hi folks, > > I was wondering if there was a way to let the client app know which fields > it submitted have validation errors. (As you can

RESTful (Form) Validation?

2014-03-11 Thread OJ Tibi - @ojtibi
Hi folks, I was wondering if there was a way to let the client app know which fields it submitted have validation errors. (As you can see, I placed "Form" between parentheses because there isn't really an HTML form in a REST API request.) While the Cookbook recommends to use the built-in Except

Re: Cakephp Radio Buttons from Database Entries

2013-12-26 Thread OJ Tibi - @ojtibi
In your Complaint model, set 'description' as your displayField. In your Controller, you will need to do a $this->Complaint->find('list') and pass the result $complaints into the view. In your View, you will need to echo a $this->Form->input('complaint_id', array('type' => 'radio')) On Thursda

Re: Quick way to wrap input[type=radio] in label tags?

2013-06-18 Thread OJ Tibi - @ojtibi
e to the core as possible. > > Cheers! > > Frank > > Am Dienstag, 18. Juni 2013 06:25:33 UTC+2 schrieb OJ Tibi - @ojtibi: >> >> Good day, folks! >> >> I was wondering if there was any quick option of making label tags wrap >> the inputs they&#

Re: I want to create database using CakePHP there by inserting data to it.

2013-06-17 Thread OJ Tibi - @ojtibi
http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html On Monday, June 17, 2013 1:26:13 PM UTC+8, Varma wrote: > > Hi, > > > I'm brand new towards PHP and CakePHP (frame work) Please let me know how > to do it. Thankyou. > -- Like Us on FaceBook https://www.facebook.com/CakePHP Fi

Quick way to wrap input[type=radio] in label tags?

2013-06-17 Thread OJ Tibi - @ojtibi
Good day, folks! I was wondering if there was any quick option of making label tags wrap the inputs they're associated with, instead of sitting beside the input itself (e.g., labels for radio buttons generated by FormHelper->input() or FormHelper->radio() don't actually wrap the radio buttons t

Recommended way to present optional/nullable date/datetime form fields?

2013-06-13 Thread OJ Tibi - @ojtibi
Hi folks, I was thinking, for example, a user is given an optional date/datetime field for a record. In the page containing the form to edit the record, a corresponding date/datetime input is presented. What would be the best way to give the user the option not to enter a date in that field? C

Re: Broken Sessions When Using Firebug in CakePHP 2.3

2013-05-23 Thread OJ Tibi - @ojtibi
It's worth noting that the FirePHP add-on on Firefox was modifying my user-agent string. To turn it off, click on the FirePHP icon on your Firebug panel -> Options -> Modify User-Agent String. On Thursday, May 23, 2013 5:23:09 PM UTC+8, OJ Tibi - @ojtibi wrote: > > Works for m

Re: Broken Sessions When Using Firebug in CakePHP 2.3

2013-05-23 Thread OJ Tibi - @ojtibi
Works for me, thanks! On Thursday, May 23, 2013 9:23:27 AM UTC+8, SpazzyV wrote: > > You may want to set checkAgent = false, as Firefox will present as one > User Agent but then FireBug could show up as a different User Agent. The > default is true, and if the user agent changes with the same se

Re: Broken Sessions When Using Firebug in CakePHP 2.3

2013-05-20 Thread OJ Tibi - @ojtibi
s.html > > I imagine it could be ""ession.autoRegenerate" > > > Am Montag, 20. Mai 2013 04:54:47 UTC+2 schrieb OJ Tibi - @ojtibi: >> >> Hi all, this is a fairly straightforward question. >> >> In previous versions, the behavior where CakePHP g

Broken Sessions When Using Firebug in CakePHP 2.3

2013-05-19 Thread OJ Tibi - @ojtibi
Hi all, this is a fairly straightforward question. In previous versions, the behavior where CakePHP generates a new session when folks like us inspect the page using Firebug can be mitigated by setting the 'Security.level' to 'medium' via the core config. How can we stop CakePHP 2.3 from regene

Re: created and modified fields with microsoft sql server

2013-01-08 Thread OJ Tibi - @ojtibi
Can you kindly paste your CakePHP code that does the insert? :) On Tuesday, January 8, 2013 11:51:15 PM UTC+8, carlos@gmail.com wrote: > > Hi, > > i'm new at cakephp, and i've a problem with MSSQL and created/modified > fields > > I did the blog example in mysql without problems. Now, i try t

Re: CodeIgniter taking a jab at CakePHP?

2012-12-03 Thread OJ Tibi - @ojtibi
ttp://philsturgeon.co.uk/blog/2012/09/moving-on > > his other stuff is worth a read too - if you don't mind some salty > language now and then. > > > On Saturday, December 1, 2012 3:26:27 AM UTC-5, OJ Tibi - @ojtibi wrote: >> >> Pardon me, but since I have a CodeIgn

Re: CodeIgniter taking a jab at CakePHP?

2012-12-02 Thread OJ Tibi - @ojtibi
Fully Baked PHP Framework" > > I can't comment on the latest release, but when I was looking at it, way > back when, it was distinctly stale. > > On Saturday, 1 December 2012 18:26:27 UTC+10, OJ Tibi - @ojtibi wrote: >> >> Pardon me, but since I have a CodeIgniter

Re: CodeIgniter taking a jab at CakePHP?

2012-12-02 Thread OJ Tibi - @ojtibi
; > > Bake away! > > > > Dave > > > > > > > > *From:* cake...@googlegroups.com [mailto: > cake...@googlegroups.com ] *On Behalf Of *Ryan Escarez > *Sent:* Saturday, December 01, 2012 5:11 AM > *To:* cake...@googlegroups.com >

CodeIgniter taking a jab at CakePHP?

2012-12-01 Thread OJ Tibi - @ojtibi
Pardon me, but since I have a CodeIgniter project on-hand right now, I look at the CI docs from time to time. And today I noticed that they changed their tag line in the hero image area of their home page. If you care to look, here it is: http://ellislab.com/codeigniter Also notice that codeig

Re: Can CakePHP code be obfuscated for protection?

2012-08-05 Thread OJ Tibi - @ojtibi
Well said, Jeremy. I'm putting your message in my "freelancing tips" notebook. On Monday, August 6, 2012 11:30:37 AM UTC+8, Jeremy Burns wrote: > > That's hard with PHP. Instead, why not host it somewhere else? Get your > own domain name and cheap hosting package and put on a subdomain - > chea