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_40print_28md5_28base64_decode_28mzywd2vic2nhbg_29_29_29_7d_2f.php
>
> Looks like the work of script kiddies. However, I'm also seeing things 
> like this:
>
> articles_deep_denial_or_disinformation.php
> articles_dee.php
>
> The first is the correct name/path and the second one is incomplete. There 
> are several examples of this. I dunno if it's a Cake issue or not but the 
> latter really shouldn't be cached as it's a 404.
>
> Is there some way to tell Cake *not* to cache these?
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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 are MySQL/MariaDB specific.

For example, if the developer chooses to move their database to MSSQL or 
PostgreSQL, they are still responsible to do sanity checks on the actual 
data stored on the new engines, and update their Migration schemas 
accordingly.

On Sunday, April 27, 2014 at 4:06:08 PM UTC+8, Thomas von Hassel wrote:
>
> I take it there is still no good way to express LONGTEXT type via the 
> schema system ? 
>
> /thomas 
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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 I tried to install AssetCompress using Composer. The 
`AssetCompress build_ini` shell command works OK (which would be used to 
generate static assets for production), but `AssetCompress clear` gives the 
following error:

Error: 
DirectoryIterator::__construct(/private/var/www/myproject/vendor/cakephp/cakephp/lib/Cake/Console/Templates/skel/tmp/cache/asset_compress/):
 
failed to open dir: No such file or directory
#0 
/private/var/www/myproject/Plugin/AssetCompress/Console/Command/AssetCompressShell.php(135):
 
DirectoryIterator->__construct('/private/var/ww...')
#1 
/private/var/www/myproject/Plugin/AssetCompress/Console/Command/AssetCompressShell.php(116):
 
AssetCompressShell->_clearPath('/private/var/ww...', Array, Array)
#2 
/private/var/www/myproject/Plugin/AssetCompress/Console/Command/AssetCompressShell.php(74):
 
AssetCompressShell->_clearBuilds('css')
#3 
/private/var/www/myproject/vendor/cakephp/cakephp/lib/Cake/Console/Shell.php(437):
 
AssetCompressShell->clear()
#4 
/private/var/www/myproject/vendor/cakephp/cakephp/lib/Cake/Console/ShellDispatcher.php(209):
 
Shell->runCommand('clear', Array)
#5 
/private/var/www/myproject/vendor/cakephp/cakephp/lib/Cake/Console/ShellDispatcher.php(66):
 
ShellDispatcher->dispatch()
#6 /private/var/www/myproject/app/Console/cake.php(37): 
ShellDispatcher::run(Array)
#7 {main}

I'm using version 0.19 for AssetCompress.

My questions would be:

* Do I need to fix this? If yes, how?
* If I don't need to fix this, how does it affect the asset build process 
when I call build_ini without clearing the asset cache output directories? 
Does it have unwanted side effects, especially if the timestamp option 
would be turned on?

TIA,
OJ

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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/Client class constructor. 
These options will then be used by stream_context_create() when you make 
the actual call.

http://stackoverflow.com/a/23130512

On Sunday, March 22, 2015 at 8:40:19 PM UTC+8, Sven Mäurer wrote:
>
> I have my Http Client configured in a way that I would say it doesn't care 
> about ssl certificates but still get the following error.
>
> $this->http = new Client([
> 'host' => $this->base_url . 'api',
> 'scheme' => 'https',
> 'type' => 'json',
> 'timeout' => 5,
> 'ssl_verify_peer' => FALSE,
> 'ssl_verify_host ' => FALSE
> ]);
>
> fopen(): SSL operation failed with code 1. OpenSSL Error messages: 
> error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify 
> failed fopen(): Failed to enable crypto fopen(
> https://104.167.116.87/api-token-auth/): failed to open stream: operation 
> failed
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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. Use CakeTime::toServer($dateString, $timezone) to convert the user's 
input back to UTC (which you already set your server's time to). 
$dateString should be your user's input (strtotime parseable), and 
$timezone should be the timezone string saved with your user's profile (see 
#1).
4. ...
5. Profit.

HTH.
OJ

On Friday, March 20, 2015 at 4:29:08 PM UTC+8, Andreas Witte wrote:
>
> Hello everbody,
>
> I would kindly like to attract your attention to a question I wrote on 
> stackoverflow yesterday.
>
> http://stackoverflow.com/questions/29127162/how-to-define-timezone-in-cakephp-datetime-form-object
>  
> 
>
> Has anyone any best practice tutorial or any advice how to solve it?
>
> Thanks in advance and kind regards,
> Andreas
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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 another 
developer can pull it and start using it in their app.

What I'm thinking is, is the "surrogate app" step really necessary? I'm 
planning to build a plugin right inside the app that intends to use it, 
rather than writing the plugin in the surrogate app first. Obviously with 
this approach, I can't directly add the plugin to my consumer app's 
Composer file, simply because Composer will not let the plugin overwrite 
itself, and would be extremely funny if Composer did allow it. Any thoughts?

Cheers,
OJ

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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 work? 
I've tried implementing the example on the book, but my pages always end up 
asking BasicAuth even when there's an actual view for FormAuth already in 
place.

I also noticed one thread in this group asking a similar question, although 
his concern is to make Basic and Form authentication work simultaneously 
AND use two different User tables. In my case, I just need to use a single 
User table for logging into the web app using FormAuth, and authenticating 
API calls using BasicAuth. I'm currently using the 2.4 series for this 
particular project.

Thanks in advance. :)

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: cakedc/migrations Plugin: Index Operations

2014-10-16 Thread OJ Tibi - @ojtibi
Thanks for the reply, deizel. I'll do as you recommended.

Good luck to all the folks that will make CakeFest happen!

Best regards,
OJ

On Thursday, October 16, 2014 12:33:53 PM UTC+8, deizel wrote:
>
> Hey OJ,
>
> Things do slow down around CakeFest but we are aiming to get the plugins 
> caught up as we speak.
>
> The general answer to your question would be yes. If you can dedicate time 
> to an issue, forking and submitting a pull request is usually the fastest 
> approach.
>
> If you are using Composer to manage dependencies, you can easily switch 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 UTC-5, OJ Tibi - @ojtibi wrote:
>>
>> 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 upon by the Migrations plugin. There seems to be a bug on how the 
>> plugin handles blank field names in the generated migration file in a 
>> 'drop_field' section, where an index is specified but not the the field 
>> name. I'm assuming the generator skipped naming the field to prevent the 
>> plugin from accidentally dropping the whole column after dropping the 
>> index, but also effectively stopping the migration (schema-altering) 
>> process.
>>
>> I'm thinking, since the CakeDC team is a little busy right now (their 
>> GitHub repo hasn't been touched in months), should I just fork the plugin 
>> and do modifications in my own repo right now? I'm working on some 
>> production code and this plugin functionality is quite urgent.
>>
>> TIA.
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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 
upon by the Migrations plugin. There seems to be a bug on how the plugin 
handles blank field names in the generated migration file in a 'drop_field' 
section, where an index is specified but not the the field name. I'm 
assuming the generator skipped naming the field to prevent the plugin from 
accidentally dropping the whole column after dropping the index, but also 
effectively stopping the migration (schema-altering) process.

I'm thinking, since the CakeDC team is a little busy right now (their 
GitHub repo hasn't been touched in months), should I just fork the plugin 
and do modifications in my own repo right now? I'm working on some 
production code and this plugin functionality is quite urgent.

TIA.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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 is needed, and 
elements do the trick better. Once you've started to work on different 
front-end frameworks with your designer (or discover them yourself), you can 
further evaluate if you need helpers to do the job or not.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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 normalization 
and optimization), is there a way to access each record in a dataset using 
database cursors? Or do I have the wrong idea on how to operate on large 
datasets?

Thanks in advance.
OJ

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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 view 
works because CakePHP parses the year/month/date subkeys from 
$this->request->data properly. On the other hand, this doesn't work in my 
edit view because the text/number field doesn't split the date parts like 
Form::input() and its related methods. Should I implement a workaround by 
manually parsing the date before passing it to the input field, or is there 
an internal CakePHP helper technique that can take care of year values in 
text/number fields?

TIA,
OJ

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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, please vote on the card named CakePHP 
on the "To Do [Others]" list for its inclusion here:

https://trello.com/b/6BmTulfx/devdocs-documentation

Also, I think it would be helpful to add some comments if you want the 
authors to know which version of the docs you want to be included.

Cheers!

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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 getting in over my head, but i'm trying to learn as much as i 
> can...
>
> i'm attempting to keep a few tables in a different database. My current 
> project will use them, but i want them to be more generally available for 
> other projects down the road (things like mime-types, captcha questions, 
> etc.)... i can see a tiny bit of [documentation 
> ]
>  
> on using *defaultConnectionName* in the Table class, and i see where it's 
> used in the [ORM/TableRegistry 
> ].
>  
> So i've set up a Datasource entry in App/Config/app.php, and my Table class 
> is like so:
>
> class CaptchasTable extends Table {
> public static function defaultConnectionName() {
> return 'websites';
> }
> }
>
> When i load the page that calls this up, i get this:
> SQLSTATE[42S02]: Base table or view not found: 1146 Table 
> 'kodiak.captchas' doesn't exist
>
> i'm actually amazed i got that far, but i'm stuck since the 
> *CaptchasTable* is *supposed* to connect to the other database and 
> provide 'websites.captchas'.
>
> Thanks for any help.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: RESTful (Form) Validation?

2014-03-12 Thread OJ Tibi - @ojtibi
AD,

I would just want to say that your reply was helpful! I'm now reading the 
details of crud/Error/CrudExceptionRenderer.php  and 
crud/Error/Exception/CrudValidationException and I'll be taking cue from 
these. It also looks like the friendsofcake/crud plugin will be very useful 
to 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 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 Exception 
> classes to respond to errors in REST requests, there is no recommended way 
> to include Model::validationErrors in the response.
>
> Right now, I'm inclined to create my own subclass of HttpException, but 
> after reading the core files, it looks like I might also need to create a 
> custom ErrorHandler and ExceptionRenderer class, if I understand correctly. 
> Essentially, I just want to add a 'validation_errors' key in the 
> '_serialize' array exported by ExceptionRenderer.
>
> The question is, will I be overdoing it if I did what I outlined above, 
> *or* should I just pass a implode()'d Model::validationErrors as a $message 
> to BadRequestException/InternalErrorException? Also note that 
> Model::validationErrors is a multi-level array with named keys.
>
> Cheers,
> OJ
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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 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 Exception 
> classes to respond to errors in REST requests, there is no recommended way 
> to include Model::validationErrors in the response.
>
> Right now, I'm inclined to create my own subclass of HttpException, but 
> after reading the core files, it looks like I might also need to create a 
> custom ErrorHandler and ExceptionRenderer class, if I understand correctly. 
> Essentially, I just want to add a 'validation_errors' key in the 
> '_serialize' array exported by ExceptionRenderer.
>
> The question is, will I be overdoing it if I did what I outlined above, 
> *or* should I just pass a implode()'d Model::validationErrors as a $message 
> to BadRequestException/InternalErrorException? Also note that 
> Model::validationErrors is a multi-level array with named keys.
>
> Cheers,
> OJ
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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 Exception 
classes to respond to errors in REST requests, there is no recommended way 
to include Model::validationErrors in the response.

Right now, I'm inclined to create my own subclass of HttpException, but 
after reading the core files, it looks like I might also need to create a 
custom ErrorHandler and ExceptionRenderer class, if I understand correctly. 
Essentially, I just want to add a 'validation_errors' key in the 
'_serialize' array exported by ExceptionRenderer.

The question is, will I be overdoing it if I did what I outlined above, 
*or* should I just pass a implode()'d Model::validationErrors as a $message 
to BadRequestException/InternalErrorException? Also note that 
Model::validationErrors is a multi-level array with named keys.

Cheers,
OJ

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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 Thursday, December 26, 2013 11:08:24 AM UTC+8, John Michael Tejano wrote:
>
> I have a database table called Complaints which has the following fields 
> id and description. Is it possible that the values in the complaints table 
> be used as radio button input fields? Such as if the table contains 10 
> entries there will be 10 radio buttons.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


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

2013-06-18 Thread OJ Tibi - @ojtibi
Thanks, I probably have to subclass the FormHelper, as hiromi pointed out 
in an earlier reply, since the 's "for" attribute is kinda required, 
and the radio button IDs need to be generated in a loop.

At first I tried creating a custom configuration of $tags that the 
HtmlHelper would be using, but I quickly figured out that there was no 
+ specific configuration in the custom tag array.

On Tuesday, June 18, 2013 5:37:14 PM UTC+8, LDSign wrote:
>
> Hi
>
> Have a look at the form helper options (
> http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html).
>
> Using "format", "after","before" and "between" even complex wrapping is 
> possible. Ive used this in combination of an extended FormHelper to make 
> the markup for bootstrap (including errors, tooltips a.s.o.), but staying 
> as close 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 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 they're 
>> associated with).
>>
>> Reason I'm asking this is that certain front-end frameworks like ZURB 
>> Foundation require labels to wrap radio buttons for the Custom Form 
>> features to work.
>>
>> Cheers,
>> OJ
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




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
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




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 they're 
associated with).

Reason I'm asking this is that certain front-end frameworks like ZURB 
Foundation require labels to wrap radio buttons for the Custom Form 
features to work.

Cheers,
OJ

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




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?

Cheers,
OJ

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




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 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 session key 
>> will break the session - I believe.
>>
>> Thanks,
>> Vinnie
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




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 session key 
> will break the session - I believe.
>
> Thanks,
> Vinnie
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Broken Sessions When Using Firebug in CakePHP 2.3

2013-05-20 Thread OJ Tibi - @ojtibi
Unfortunately, it doesn't work. The CakePHP core sets 
Session.autoRegenerate as 'false' for the default functionality.


On Monday, May 20, 2013 9:59:02 PM UTC+8, euromark wrote:
>
> Isn't this covered in the docs?
> http://book.cakephp.org/2.0/en/development/sessions.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 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 regenerating the session?
>>
>> Cheers,
>> OJ
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




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 regenerating the session?

Cheers,
OJ

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




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 to do the 
> same in mssql server and it doesn't work properly.
>
> I created the table:
>
> CREATE TABLE [enqDocencia].[posts](
> [id] [int] IDENTITY(1,1) NOT NULL,
> [title] [varchar](50) NULL,
> [body] [text] NULL,
> [created] [datetime] NULL,
> [modified] [datetime] NULL,
>  CONSTRAINT [PK__posts__3213E83F1CF15040] PRIMARY KEY CLUSTERED 
> )
>
> ALTER TABLE [enqDocencia].[posts] ADD  CONSTRAINT 
> [DF__posts__created__1ED998B2]  DEFAULT (NULL) FOR [created]
> GO
>
> ALTER TABLE [enqDocencia].[posts] ADD  CONSTRAINT 
> [DF__posts__modified__1FCDBCEB]  DEFAULT (NULL) FOR [modified]
> GO
>
> as you can see, i added created and modified fields
>
> the problem is that, when i try to add a "blog entry" in cakephp, it 
> returns me this error:
>
> *Error: * SQLSTATE[22007]: [Microsoft][SQL Server Native Client 10.0][SQL 
> Server]Conversion failed when converting date and/or time from character 
> string.
>
> *SQL Query: * INSERT INTO [posts] ([created], [modified], [title], 
> [body]) VALUES ('NULL', 'NULL', N'title_ex', N'body post text') 
>
> *Notice: * If you want to customize this error message, create 
> cakephptest\View\Errors\pdo_error.ctp
>
>
> as you can see, this SQL sentence has two errors:
>
> - first, it try tu put 'null' value at 'created' field, but it should be 
> getdate() (current timestamp)
>
> - also, it put NULL inside two character'  '  ; then for 
> mssql, is a "string", not  NULL value (it should be without ' ' )
>
>
> i'm very confused, what can I do? I'm doing something wrong?
>
>
> Thanks,
>
>
>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: CodeIgniter taking a jab at CakePHP?

2012-12-03 Thread OJ Tibi - @ojtibi
Yes, Phil Sturgeon's name seems oddly familiar, shows up every now and then 
in my searches. I agree on most of the stuff he says, specially on "don't 
use just one framework" line.

The ironic part is, I'm doing projects that call for my favorite framework. 
:)

On Monday, December 3, 2012 11:40:44 PM UTC+8, sophistry wrote:
>
> i cam from CI to CakePHP and i noticed that today too!
>
> here's a well-written piece from a core CI "reactor" dev who recently 
> abandoned the CI project in favor of a more modular PHP approach.
>
> http://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 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 codeigniter.com redirects to a directory inside 
>> ellislab.com. Now I'm thinking, are they challenging us?
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: CodeIgniter taking a jab at CakePHP?

2012-12-02 Thread OJ Tibi - @ojtibi
Reuben, somehow I agree with your statement. Right now I quite tearing my 
hair out at why CI can't let query strings and segments co-exist 
peacefully. It even strips out query strings from Facebook Auth.

On Monday, December 3, 2012 7:22:48 AM UTC+8, Reuben wrote:
>
> Ha!  "A 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 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 codeigniter.com redirects to a directory inside 
>> ellislab.com. Now I'm thinking, are they challenging us?
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: CodeIgniter taking a jab at CakePHP?

2012-12-02 Thread OJ Tibi - @ojtibi
Haha, I like the way you think, Dave! And yes, I don't usually preach 
frameworks to people, but when I do, I preach CakePHP!

Rai, I still believe CakePHP is the best way to bake your app. :)

On Sunday, December 2, 2012 9:44:03 AM UTC+8, advantage+ wrote:
>
> All I can say is Cake is Cake…not a branch of an "expression" of mine we 
> sell out to people.
>
> Well you want this it'sfree MIT license but hey we have a commercial 
> product…
>
> Cake has always been on the up and up and most respect. Not an umbrella 
> ignition source to fall behind something else.
>
>  
>
> So bake all they want Cake was ahead of the game years before they were
>
>  
>
> Dosequis my friends stay thirsty!
>
>  
>
> What was it my girl told me…. Jealousy is a sign of admiration. And those 
> who can't copy!
>
>  
>
> 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 
> *Subject:* Re: CodeIgniter taking a jab at CakePHP?
>
>  
>
> Good find @OJ! Baking shitz! 
>
>  
>
> On Sat, Dec 1, 2012 at 4:26 PM, OJ Tibi - @ojtibi 
> > 
> wrote:
>
> 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 codeigniter.com redirects to a directory inside 
> ellislab.com. Now I'm thinking, are they challenging us?
>
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake...@googlegroups.com
> .
> To unsubscribe from this group, send email to 
> cake-php+u...@googlegroups.com .
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>  
>  
>
>
>
>  
>
> -- 
> Ryan Escarez 
> CEBB F1E4 1E39 EC48 F05D  6B72 9C11 DD88 5E39 E471
> $ gpg --keyserver pgp.mit.edu --recv-keys 0x5E39E471
> main(k){float i,j,r,x,y=-16;while(puts(""),y++<15)
> for(x=0;x++<84;putchar(" .:-;!/>)|&IH%*#"[k&15]))
> for(i=k=r=0;j=r*r-i*i-2+x/25,i=2*r*i+y/10,j*j+i*i<11&&k++<111;r=j);}
>
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake...@googlegroups.com
> .
> To unsubscribe from this group, send email to 
> cake-php+u...@googlegroups.com .
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>  
>  
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 codeigniter.com redirects to a directory inside 
ellislab.com. Now I'm thinking, are they challenging us?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




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 - 
> cheapclient.myhostingpackage.com - and tell him that he can test there. 
> If he likes it you'll move it to his server after testing, fixing and 
> payment. It could be the best $20 you ever spent and will save you a bunch 
> of hours trying to hide what is essentially open source code. Don't suggest 
> this to the client, just tell him that's what you are going to do. If he 
> baulks, stop working on the project immediately because your suspicions are 
> right. I put this into each and every one of my contracts up front.
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com 
>
> On 6 Aug 2012, at 03:03:38, Lightee  wrote:
>
> Dear CakePHP gurus,
>
> I have an upcoming project with a stingy customer who looks like the 
> not-willing-to-pay-up type. My cakePHP code will be deposited to his web 
> server for testing before payment. I want to obfuscate my code so that he 
> cannot steal it and then find all sorts of excuses not to pay me.
>
> May I know if there is a way to obfuscate my cakePHP code such that 
> someone who has access to the webserver and steals it will have trouble 
> reading it?
>
> Thank you.
>
> -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
>  
>  
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> at http://groups.google.com/group/cake-php
>
>
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php