Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-13 Thread Okto Silaban
gt; > > } > > > > public function delete($id = null, $cascade = true) { > > > > $this->useDbConfig = "master"; > > > > $status = parent::delete($id,$cascade); > > > > $this->

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-10 Thread Okto Silaban
return $status; > >} > >public function delete($id = null, $cascade = true) { > >$this->useDbConfig = "master"; > >$status = parent::delete($id,$cascade); > > $this->useDbConfig = &

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-10 Thread Okto Silaban
That's what I'm trying to do. I've setup 1 master and 2 slaves. But CakePHP doesn't support read & write query separation. So, do you have any information how can I split the read & write query? *other than rewrite all my models thanks. On Wed, Feb 9, 2011 at 10:03 AM, Dr. Tarique Sani wrote: >

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-08 Thread Okto Silaban
I don't have 100k users for now. But I have about 4mio pageviews/month. The site is still running, but getting slower. The hardest part is when I trying to make a : master - slave - slave database. Still can't find a convenient way to do this. Last that I did is using master-master DB (since you do

Re: Useing different database for the different actions

2010-10-28 Thread Okto Silaban
http://bakery.cakephp.org/articles/view/load-balancing-and-mysql-master-and-slaves-2<-- since this link isn't working for Cake > 1.2.x, besides it didn't work for related model neither (from the comment on that article : "If this model is associated with other models using belongsTo, hasMany etc.,

Re: Online Documentation

2010-08-25 Thread Okto Silaban
You can get it here : http://www.doocu.com/pdf/view/17590 It's not perfect, but at least you get the offline version.. *Doocu.com is build with CakePHP too.. :P On Wed, Aug 25, 2010 at 8:12 AM, Michael Gaiser wrote: > Hey guys, I know that Cake has a great online set of documentation, but the

Doing CakePHP 1.2.x in PHP 5 way

2010-02-03 Thread Okto Silaban
Can I refere to a complete documentation how can I work with strict PHP5 on CakePHP? For example : Can I remove beforeFilter() and use __construct() instead ? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this messa

Re: cake book offline pdf version!!

2010-01-06 Thread Okto Silaban
On Tue, Dec 22, 2009 at 4:05 PM, AD7six wrote: > But that's the licency reasoning. The whole problem with these > standalone versions is that the book is a living document. It changes > almost every day - why put users in a position of having outdated docs > "Are you reading the book?" "sure" "o

Re: cake book offline pdf version!!

2009-12-21 Thread Okto Silaban
You can also find it at : http://www.doocu.com/pdf/view/11718 regards, okto.silaban.net On Mon, Dec 21, 2009 at 4:10 PM, cherif_Gsoul wrote: > hi, i am happy to announce the pdf version of the official cake book > created by felix leong you can fin it in > http://felixleong.com/2009/08/cakephp-1

Re: addons.mozilla.org soon will leave CakePHP..

2009-11-17 Thread Okto Silaban
> everyone else is leaving? I've invested a lot of learning time > adopting CakePHP for a pretty big project. It's not been easy and the > project is too pregnant to change now. I hoped this would be a growing > and dynamic development area, but right now I am not so sure. >

addons.mozilla.org soon will leave CakePHP..

2009-11-17 Thread Okto Silaban
Maybe some of you haven't heard about this.. Just FYI, AMO (addons.mozilla.org) now still using cakephp 1.1. But they've planned to migrate to Django. Link : http://micropipes.com/blog/2009/11/17/amo-development-changes-in-2010/ labanux, http://okto.silaban.net -- You received this message bec

Re: Multiple databases with different column

2009-06-10 Thread Okto Silaban
Why don't you use MySQL Replication? On Tue, Jun 9, 2009 at 4:26 AM, Henrik Gemal wrote: > > I'm accessing databases stored on difference computers. Everything > works just fine now since all the databases have the same columns on > the different computers. So no problem now. > > But we need to u

Re: Poll: what do you hate about CakePHP?

2009-05-07 Thread Okto Silaban
PHP 4 support+++ No built in Uploader component++ On Fri, May 8, 2009 at 5:49 AM, Miles J wrote: > > - PHP 4 support also > - No namespaces > - No built in Uploader component --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: Change array index using Set::combine()

2008-11-12 Thread Okto Silaban
Thanx a lot.. It worlks perfectly. On Thu, Nov 13, 2008 at 3:47 AM, validkeys <[EMAIL PROTECTED]>wrote: > > Sorry, > > $newData['Tag'] = Set::Extract($data,'Tag.{n}.name'); > > On Nov 12, 1:03 pm, "Okto Silaban" <[EMAIL PROTECT

Change array index using Set::combine()

2008-11-12 Thread Okto Silaban
I have this data : [Tag] => Array ( [0] => Array ( [name] => Programming ) [1] => Array ( [name] => Ajax Programming ) ) How can I change it to this

Re: Editing HABTM using Text input not Select input

2008-11-11 Thread Okto Silaban
, will check for existing tags. Any new values you'll > have to parse from a comma-separated string into an array and save. > I don't know of any out-of-the box solutions specifically for cake, > but there are some jQuery plug-ins, that help accomplish something > like

Re: Editing HABTM using Text input not Select input

2008-11-10 Thread Okto Silaban
n tag(s). Okto.Silaban.Net On Tue, Nov 11, 2008 at 3:54 AM, teknoid <[EMAIL PROTECTED]> wrote: > > Look into some sort of auto-complete solution. > jQuery has a few nice ones. > > You'll need to parse and properly format the data for saving yourself. > > On No

Re: Editing HABTM using Text input not Select input

2008-11-10 Thread Okto Silaban
ourself. > > On Nov 10, 3:31 pm, "Okto Silaban" <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have this table relation : > > > > Post HABTM Tag > > Tag HABTM Post > > > > Since maybe I'll have more than 400 tags, SELECT TAG for t

Editing HABTM using Text input not Select input

2008-11-10 Thread Okto Silaban
Hi, I have this table relation : Post HABTM Tag Tag HABTM Post Since maybe I'll have more than 400 tags, SELECT TAG for tags is not a good choice for me. All I want to do is as simple as save and edit post. But I want to display tag input as text input (not as select input). Tags input will be

How to debug with ZendDebugger / XDebug using Eclipse PDT / Netbeans?

2008-11-09 Thread Okto Silaban
Hi, I've just read some tutorial about debugging CakePHP apps using ZendDebugger or XDebug with Eclipse (PDT) or Netbeans. But all this tutorial told me to deactivate the "pretty url". Meanwhile, some times I need the "pretty url" during the development process.. Anyone know best practice to debu

Re: In controller using too many models hit the performance?

2008-10-12 Thread Okto Silaban
Isn't it better to user ClassRegistry::init('ModelName') ? ex : $this->ModelName = ClassRegistry::init('ModelName'); And you can put this line on each method require ModelName. Okto.Silaban.Net On Sun, Oct 12, 2008 at 11:21 AM, David C. Zentgraf <[EMAIL PROTECTED]>wrote: > > Yes, the more mode

Re: Data Modeling Tool

2008-10-02 Thread Okto Silaban
it can supposedly > run under Wine: > http://www.webyog.com/faq/5_71_en.html > > On Oct 1, 9:40 pm, "Okto Silaban" <[EMAIL PROTECTED]> wrote: > > But none of them work smoothly on Linux.. > > > > MySQL Workbench already has it Linux version (still in al

Re: Data Modeling Tool

2008-10-01 Thread Okto Silaban
But none of them work smoothly on Linux.. MySQL Workbench already has it Linux version (still in alpha). After several minutes compiling finally it works. But the export SQL script menu was disabled.. I hope it getting better on the next release.. On Thu, Oct 2, 2008 at 7:44 AM, Predominant <[

Re: pushing my luck -- complete pm system?

2008-10-01 Thread Okto Silaban
How about the relation..? Since User has Many message (in inbox), but User also has Many message (that the user sent to other User). On Wed, Oct 1, 2008 at 2:41 AM, Markus Muschol <[EMAIL PROTECTED] > wrote: > > This should be kind of easy to write on your own > > setup a new database table: >

Re: Auth Redirect Problems

2008-10-01 Thread Okto Silaban
the logout action from a link on different > controller/action page than the user/logout page. > > And it really doesn't make much sense to have your loginRedirect > pointed to itself. > > Your example will not show the problem. And it will not autoRedirect > to a cont

Re: Auth Redirect Problems

2008-10-01 Thread Okto Silaban
x27;m using 1.2. > > This: > > $this->Auth->autoRedirect = FALSE; > > Gives me: > > "unexpected T_VARIABLE" > > I haven't had a chance to investigate. > > On Sep 30, 2:06 am, "Okto Silaban" <[EMAIL PROTECTED]> wrote: > > Ho

Re: Auth Redirect Problems

2008-09-30 Thread Okto Silaban
at 10:00 PM, Tony Thomas <[EMAIL PROTECTED]> wrote: > > This gives me an "unexpected T_VARIABLE" error on the line with $this- > >Auth->autoRedirect = FALSE; > > I think the algorithm might be right, but the syntax is wrong. > > On Sep 17, 12:20 pm, "Okto S

Re: Models Association - Paginator - Conditional View.

2008-09-23 Thread Okto Silaban
Maybe you can use this : $this->Message->User->find('all', 'conditions' => array('User.id' => $this->Auth->user('id') ) ); Assuming you're using Auth component.. Okto.Silaban.Net On Tue, Sep 23, 2008 at 9:26 PM, iGloo <[EMAIL PROTECTED]> wrote: > > Hi folks, > > I've looked around a lot but co

Re: Auth Redirect Problems

2008-09-17 Thread Okto Silaban
I'm not really sure, but I think : $this->Auth->loginRedirect doesn't tell we're we gonna go after logging in.. But, if we're acessing an area which not allowed by Auth, we will sent to that page.. (if you're not login yet..). So I set that in beforeFilter : function beforeFilter() { $this->A

Re: Pagination from Custom Model Relation Problem

2008-09-14 Thread Okto Silaban
unction. Then the paginate() function will works just fine.. Okto.Silaban.Net On Sun, Sep 14, 2008 at 1:25 PM, Okto Silaban <[EMAIL PROTECTED]> wrote: > This is the query generated by find() : > > SELECT `Post`.`title`, `Post`.`created`, `Post`.`downloaded`, > `Post`.`de

Re: An problem about "controller without a model"

2008-09-11 Thread Okto Silaban
Have you named the controller books_controller.php? Okto.Silaban.Net On Thu, Sep 11, 2008 at 9:30 PM, simonking <[EMAIL PROTECTED]> wrote: > > I'm a newbie in cakephp. > Recently, I practiced an example from the book "CakePHP Application > Development". I got a problem: > > It is an example abou

Re: problem with HABTM find

2008-09-10 Thread Okto Silaban
I have the same problem too.. Then how to use this in pagination? Okto.Silaban.Net On Tue, Sep 9, 2008 at 6:48 PM, rob30 <[EMAIL PROTECTED]> wrote: > > $this->Conference->bindModel(array( >'hasOne' => array( > 'ConferencesSphere', > 'FilterSphere' => ar

Re: Change Auth component will solve hash without salt?

2008-09-10 Thread Okto Silaban
Why do you need to set Security::setHash('sha1') in beforeFilter() function ? CakePHP use sha1 as default encryption. Meanwhile, you can use this In login form : $this->Auth->password($this->data['User']['password']) <-- automatically using sha1 with salt. But if you want CakePHP use no .salt.

Problem with updating a field

2008-09-09 Thread Okto Silaban
I've asked this question in IRC before, but still didn't get the right solution. Here is the problem : class PdfController extends AppController { function view($id) { //$this->Pdf->id = $id; //$this->Pdf->saveField('viewed', 'Pdf.viewed + 1'); $this->Pdf->updateAll(

Re: Vote for CakePHP built-in support for Netbeans 6.5!

2008-09-07 Thread Okto Silaban
I've been using Netbeans PHP from the first time playing with CakePHP.. Of course i'll vote.. Okto.Silaban.Net On Sun, Sep 7, 2008 at 1:36 AM, ĸεиلı <[EMAIL PROTECTED]> wrote: > > Netbeans 6.5 is coming soon. The main focus of version 6.5 is PHP > development. Many works has been done to support