Re: SQL query rather than CakePHP style query

2012-08-31 Thread Phang Mulianto
hi, the bottom line is you should not trust any parameter generated from outside your app by user. You should do input validation, which is sanitize class. so let say the $id will not contain '; delete * from user' , if your id expected is int, make sure it only contains int hope helps On

pagination not work after change to Nginx

2012-07-24 Thread Phang Mulianto
Hi all, i have an apps build using cakephp1.1 . i use the pagination component which come with 1.1 The app run using lighttpd, and its ok. now i switch to nginx , and the pagination breaks, also the sorting facilites. the error is, the link not point to my webroot adress, example:

Re: pagination not work after change to Nginx

2012-07-24 Thread Phang Mulianto
hello.. anybody can help me.. On Tue, Jul 24, 2012 at 5:13 PM, Phang Mulianto braveh...@gmail.com wrote: Hi all, i have an apps build using cakephp1.1 . i use the pagination component which come with 1.1 The app run using lighttpd, and its ok. now i switch to nginx , and the pagination

running cake with nginx

2012-05-27 Thread Phang Mulianto
Hi, i try run cake with nginx web server, follow the guide in the cake doc...cake can running and served by php-fcgi . the problem is my css / img / js / all static file not php file, cannot load. is there any configuration for access the other static file ? i already try any google result

Re: Many database requests - Cake is to slow

2012-05-08 Thread Phang Mulianto
hi, what is your speed expectation ? do you have any minimum and maximum time limit ? why not try to do the save only once...like firing all the insert in 1 shot to the db. or just create raw insert command and run the execute.. On Tue, May 8, 2012 at 12:27 AM, John Hardy

Re: Cake optimization

2012-01-02 Thread Phang Mulianto
you rite adsix. .agree . see where the problem caused and fix it..and if you already optimize everything before need the debug kit it will safe you too... for the os level well, every kernel of linux can be optimized, some came with default server usage setting, with of course different workload

Re: Cake optimization

2011-12-31 Thread Phang Mulianto
you should also consider to optimize your web server and os layer, javascript caching in your app and also the image caching in user browser...it will make a difference for the effort... what's your expect in load time results? On Dec 31, 2011 4:45 AM, Dee Johnson devario...@gmail.com wrote: Hi

Re: vtiger CRM with Cakephp

2011-10-18 Thread Phang Mulianto
what integration you expect..if code like the crm style , then hard and maybe not cakephp way. but if you add your apps url to the app, it can be just add some of your entry link to your cake app, and from the cake app, just directly play with the database of the crm. On Tue, Oct 18, 2011 at

Re: CakePHP AJAX auto-refresh div in specified time interval - is it possible?

2011-10-14 Thread Phang Mulianto
the ajax framework used by Ruby on Rails is prototype +scriptocolous, which is the same format used by the cake ajax helper.. i used it from cake 1.1. dunno if it change in current cake version..just call it and even not need to mess with the ajax howto..it just work.. On Oct 14, 2011 12:39 PM,

Re: uploading large file fails

2011-10-03 Thread Phang Mulianto
for that size better using ftp. .better way to uploading.. On Oct 1, 2011 1:14 AM, Miles J mileswjohn...@gmail.com wrote: Why are you even uploading a 58MB file? On Sep 29, 1:21 pm, aortizhi aorti...@gmail.com wrote: i already have changed to post_max_size=800M and upload_max_filesize =

Re: How to config ajax to work

2011-07-14 Thread Phang Mulianto
Cake use with ajax is simplify your code writing.. you just spit it up with $html-ajax(url, response, anything) You don't need to write the ajax command all the way...to many typing for doing ajax manually.. and if you need to learn it, just use php code alone..don't make things complicated...

Re: Private Messaging system (PMS)

2011-07-14 Thread Phang Mulianto
maybe you should try to query in google for the PMS in cake php...the result will be better :) On Thu, Jul 14, 2011 at 1:07 PM, JPM jayprakas...@gmail.com wrote: HI, Can I get any component for PMS in cakephp? Thanks Regards Jay -- Our newest site for the community: CakePHP Video

Re: Is there a time out for shells?

2011-07-14 Thread Phang Mulianto
if run a php, which is i assume,in php.ini there is default time limit to run a php script.. try check it out.. On Jul 14, 2011 6:29 PM, 24z ralf.rottm...@gmail.com wrote: I've written a shell that does db maintenance. It's supposed to run through some 5.000 records. However, I've noticed,

Re: barcode reader integration in web application

2011-07-03 Thread Phang Mulianto
agree with anthony.. usually barcode reader device works like a keyboard replacement for faster data entry,and scan standart barcode. in any application,the output will be just plaintext. in notepad, in any texteditor,text field in any apps, text fileds in web form.. the hardware manufacture makes

Re: CakePHP + Apache Load Balancer

2011-06-24 Thread Phang Mulianto
the proxy setup is something missing, not the cake. try pen load balancer, i have try it with success. On Fri, Jun 24, 2011 at 10:31 PM, John Hardy john.c.ha...@gmail.com wrote: Have you ensured that you setup your proxy to pass the HTTP_X_FORWARDED_FOR header with the clients IP address

Re: What editor?

2011-06-19 Thread Phang Mulianto
just use notepad... wtf.. On Mon, Jun 20, 2011 at 1:29 PM, CRUSH sa...@crushdev.com wrote: Komodo is the best I've used so far. -- 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

Re: How to secure database info in database.php

2011-06-13 Thread Phang Mulianto
I think if you have a running application, especially you build, you should better have a private environment, not shared environment, especially shared hosting. Except you have the shared hosting infrastructure managed by yourself, that much better. maybe some say it's costly to have a private

Re: Future of CakePHP

2011-06-07 Thread Phang Mulianto
some stay some go..it's natural in this world of opensource . . . do we move forward as the user ?? On Tue, Jun 7, 2011 at 9:24 AM, Miles J mileswjohn...@gmail.com wrote: Well put :P On Jun 6, 6:20 pm, Larry E. Masters php...@gmail.com wrote: Thats old old news, CakePHP isn't going

Re: how to send email per 5 min in cakephp 1.3

2011-06-07 Thread Phang Mulianto
you can create the sending email page, with parameter if you likke, and for the timer, scheduled with cron and call your cake file path using curl/wget, just like a web browser request. you can call it from the local machine or from other machine using curl or wget. On Tue, Jun 7, 2011 at

Re: Pagination Limits

2011-05-30 Thread Phang Mulianto
do you try use $this-Model-findAll('criteria','fields','order','yourlimit','page'); this will limit the result queried from the database. paginate only limit the view in the view layer and it depends on the total record returned by your query. hope helps rgds, Mulianto On Mon, May 30, 2011

Re: acl for dummies?

2011-05-29 Thread Phang Mulianto
why not try use phpgacl..there is plugin component for cake.. On May 29, 2011 3:21 AM, dreamingmind dreamingmin...@gmail.com wrote: Michael, Non-expert reply: After fiddling with ACL for a while I'll say, yes it can do all you want. The aco entries can represent anything you want them to,

Re: switch Mobile/default theme

2011-05-27 Thread Phang Mulianto
you can change your layout right, for themes, i assume you use css file. why not set the css file to in the script you state before... On Fri, May 27, 2011 at 2:35 PM, m16u31 leugi...@gmail.com wrote: hi, im sorry buy my english isnt good, I have a problem I created an aplication, and it has

Re: Do you think this project is possible with CakePHP?

2011-05-19 Thread Phang Mulianto
absolutely possible to do with cake. the question is not what cake can do..but what you can do with cake. :) On Wed, May 18, 2011 at 8:06 PM, Kyko kykoc...@gmail.com wrote: Hi Dorell, Of course this project is possible using CakePHP. Good luck! =) 2011/5/17 Dorell James

Re: Cake mail vs PHPMailer

2011-04-27 Thread Phang Mulianto
do you had tried swift mailer ? On Wed, Apr 27, 2011 at 1:03 PM, Jeremy Burns jeremybu...@classoutfit.comwrote: A generic question really. I've seen a few articles that recommend using PHPMailer for generating emails in preference to the Cake email component, especially for bulk emails. Is

Re: thumbnail generator

2011-04-08 Thread Phang Mulianto
Is it better generaste image on the fly or when uploading we resixze to some thumbnail size and save the image to be loaded later.. How about the performance issue if the site in full load..any experience so far? On 4/8/11, euromark dereurom...@googlemail.com wrote: actually you can use any

Re: Chat in Cakephp

2011-03-29 Thread Phang Mulianto
maybe you can use other opensource chat system, and plug it in your cake app... or you build a new one with your knowledge. i choose build it from zero myself, so i can also practice my coding experience. tq On Tue, Mar 29, 2011 at 2:12 PM, Shashank cooldude17202...@gmail.comwrote: Hi, I

Re: Lock a page that is being edited by another user

2011-03-16 Thread Phang Mulianto
i aggre with using ajax to checking the edited record. and display notification if the current data is edited by some other users. and when saved, the change is displayed both, so user can choose to use which version that the document updated.. or merge it altogether On Tue, Mar 15, 2011 at

Re: PHP framework

2011-02-08 Thread Phang Mulianto
hell yeah..go for it.. On Tue, Feb 8, 2011 at 10:37 PM, Tilen Majerle tilen.maje...@gmail.comwrote: of course u can :D -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/2/8 Ryan Schmidt google-2...@ryandesign.com On Feb 8, 2011, at 02:17, appi wrote: i want to develop large

Re: Using or not using PHP framework

2010-12-01 Thread Phang Mulianto
if you try with cake, you won't look back again cause once you got the tools in you control..you rockkk !!! anyway, if you want to switch back from cake to traditional way of doing things in php, the format is still php and your code can be used, but you need some MVC clean up if not using cake,

Re: Is there a way to speed up cake for a high traffic website ( Cake + Postgres )

2010-04-14 Thread Phang Mulianto
you can optimize your cake so it not always query to sql everytime user access the same data. you can do it with memcache, cake cache component with time caching method, so if your data is not always changing, like in 1 hour you got 1 update, you can cache it in your memcache, and in the app

Re: how to create table in database from cakephp

2008-10-10 Thread Phang Mulianto
oh .. you want to create table in your apps.. well , are you already try use $this-model-query http://komikz.blogsite.org On Fri, Oct 10, 2008 at 3:49 PM, gunung pangrango [EMAIL PROTECTED]wrote: Hello everyone?? i'm newbie in cakephp and now i'm develop web application with cakephp

Re: Site powered by CakePHP

2008-10-09 Thread Phang Mulianto
nice simple project . . . what version you are using ? - any spare time ? http://komikz.blogsite.org - On Thu, Oct 9, 2008 at 5:58 AM, Gabriel Kolbe [EMAIL PROTECTED] wrote: Looks good, how do

Re: Saving with hasMany in 1.2

2007-08-29 Thread Phang Mulianto
i think you miss something... in the model... you should add more param in the has many and belongs to so the update and delete is automaticaly done by cake.. here is my example code model : * @packagecake * @subpackagecake.app.config * @sinceCakePHP(tm) v 0.2.9