Multiple database connections in CakePHP 2.1 can't works

2012-02-11 Thread yodi aditya
Hello all, I've download fresh CakePHP 2.1 and try to make multiple database connections. Here are my configuration : Config/default.php : ?php class DATABASE_CONFIG { public $default = array( 'datasource' = 'Database/Mysql', 'persistent' = false,

Re: asking about Vertical database on CakePHP

2008-09-24 Thread Yodi Aditya
with horizontal :D Sorry for that. Well, after the smoke cleared, i must say: Sounds interesting :) On Sep 22, 9:42 pm, Yodi Aditya [EMAIL PROTECTED] wrote: Can you give some reason why vertical database is bad and horrible? This is one of many ebook i have read before (in attachment

Re: asking about Vertical database on CakePHP

2008-09-23 Thread Yodi Aditya
on you. You will lose many of the features that make Cake an attractive choice for development (ie. Auth component, ACL, etc.), but implementing an EAV DB design is nonetheless possible. Just don't ask me to do it. -J. On Sep 22, 3:42 pm, Yodi Aditya [EMAIL PROTECTED] wrote: Can you give

Re: Problem with reading cookie

2008-09-22 Thread Yodi Aditya
say this in the documentation. On Sep 20, 11:42 am, Yodi Aditya [EMAIL PROTECTED] wrote: Try using : function beforeFilter() { $this-Cookie-time = '5 Days'; $this-Cookie-path = '/'; } On 9/20/08, Kenchu [EMAIL PROTECTED] wrote

asking about Vertical database on CakePHP

2008-09-21 Thread Yodi Aditya
I have reading about vertical database (column-store) on google last night. it seem interesting method. Is anybody using vertical database with CakePHP? Is vertical database good for designing some application using cakePHP? if someone has vertical database using cakePHP, please let me know..

Re: Problem with reading cookie

2008-09-20 Thread Yodi Aditya
Try using : function beforeFilter() { $this-Cookie-time = '5 Days'; $this-Cookie-path = '/'; } On 9/20/08, Kenchu [EMAIL PROTECTED] wrote: I've managed to get cookies working for the session, but if I restart my browser, the cookies seem to be gone, and $cookieTime doesn't seem to do

Re: Change Auth component will solve hash without salt?

2008-09-11 Thread Yodi Aditya
', '78bc27f1b49f17f5c3392e728f789bad78dbeb77'); Okto.Silaban.Net On Wed, Sep 10, 2008 at 12:31 AM, Yodi Aditya [EMAIL PROTECTED] wrote: I have some users table with 2 value , email and password (hash with sha1). Then i using auth component to make login form. To make sure, that auth

Re: Change Auth component will solve hash without salt?

2008-09-11 Thread Yodi Aditya
On 11 Sep 2008, at 15:36, Yodi Aditya wrote: Hey, dude. Thanks, that's right sha1 is default hashing in auth component. i just convience that using correct hashing sha1 in my controller using beforeFilter(). But, I say before, security.salt needed not only for Auth but hashing

Change Auth component will solve hash without salt?

2008-09-09 Thread Yodi Aditya
I have some users table with 2 value , email and password (hash with sha1). Then i using auth component to make login form. To make sure, that auth will using sha1 when hashing password, i'm using : Security::setHash('sha1'); in beforeFilter(). Problem happen when Auth hashing password from

Re: Auth Redirect Problems

2008-09-09 Thread Yodi Aditya
Try using : $this-Auth-loginRedirect = array('controller'='users', 'action'='profile'); on beforeFilter() then function login() { $this-redirect($this-Auth-redirect()); } Yodiaditya - http://re.web.id On 9/9/08, Tony Thomas [EMAIL PROTECTED] wrote: If someone is familiar with a post to this

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

2008-09-09 Thread Yodi Aditya
I'm try using netbeans 6.5 beta before. But, know back again to eclipse. if netbeans 6.5 have good feature like eclipse, maybe i'll try again :D On 9/7/08, Okto Silaban [EMAIL PROTECTED] wrote: I've been using Netbeans PHP from the first time playing with CakePHP.. Of course i'll vote..

Re: Default Date Format

2008-09-09 Thread Yodi Aditya
use date function. in controller. for example, date('Y-m-d H:i:s') On 9/8/08, shabba [EMAIL PROTECTED] wrote: How do you set the default formatting for date. Its set to m-d-y as default, this is great, but when you need user interaction and the standard is d-m-Y. Its really not practical to

Re: Containable Behavior Retrieve Data, help anybody please

2008-08-21 Thread Yodi Aditya
('Tag.name','Vendor.name'), 'fields'=array('name'))); Yodi Aditya wrote: Hello, I have some problem with containable Behavior. I have 3 model Item, Tag and Vendor. This is the models : class Item extends AppModel { var $name = 'item'; var $belongsTo = array('Vendor

Difference cake bake controller User scaffold or without scaffold, need explanation

2008-05-22 Thread yodi aditya
I'm newbie. I'm using cake bake console . Then the problem is when using command *cake bake controller Types* then the output : ?php class TypesController extends AppController { var $name = 'Types'; var $scaffold; } ? but if using command *cake bake controller Types scaffold* then the