how could I join into IRC?

2008-03-24 Thread cc96ai
I download mIRC, how could I join into cakephp IRC ? irc://irc.freenode.net/cakephp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To u

Magento cart

2008-02-09 Thread cc96ai
I try on magento, which is pretty good, I wonder does cake have similar completed cart ? coz, i perfer cake rather than zf framework. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

hasMany multi-row save problem

2007-04-26 Thread cc96ai
I create the following structure of the data, I am able to save Order Table, however I m still unable to save Orderdetail --- Array ( [Order] => Array ( [customer_id] => 1 [user_id] => 11 ) [Orderdetail] => Array (

Re: Shared ~ log4php component.

2007-03-30 Thread cc96ai
Yep, I try to register to bakery but never got any activiation email :( so no way to login into bakery --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@

Shared ~ log4php component.

2007-03-29 Thread cc96ai
5 steps to make it works :) 1. Download log4php http://www.vxr.it/log4php/download.html 2. Extract and copy log4php directory into app/vendors 3. create a log4php config file (I put it under app/vendors/log4php/ config/MyLogger.xml ) -File Start [MyLogger.xml ] ht

How can I use component in beforeFilter?

2007-03-29 Thread cc96ai
I create a LOG components, it works fine (i believe) only it won't work in beforeFilter (so-far). I found some post, it mentions, thats no component load up in beforeFilter , then what should I do now? --~--~-~--~~~---~--~~ You received this message because you a

anyway to stop LOG_DEBUG ?

2007-03-28 Thread cc96ai
if i use LOG_DEBUG , can I stop it once in production machine ? or I HAVE to remove all the $this->log(xx, LOG_DEBUG) ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send e

Reusable component in View

2007-03-28 Thread cc96ai
I want to create a reusable component in the View . e.g. Menu Bar, login box, should it be the 'Component' or Helper ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send e

Re: How to get the SET variable in Helper page?

2007-03-28 Thread cc96ai
$this->view->viewVars['test'] it works now :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send em

Re: How to get the SET variable in Helper page?

2007-03-28 Thread cc96ai
Thx for reply. I tried, but its NOT working :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send em

How to get the SET variable in Helper page?

2007-03-28 Thread cc96ai
I set a variable in controller page $this->set('test', 'test'); In View , i can get the variable but in custom helper page I try to get to do print $test. which is not working any idea how can i get it ? or I MUST pass it through parameter ? in View $myHelper->link($test, ); Helper func

Re: Group , Permission to edit table

2007-03-27 Thread cc96ai
i still can't find the way to get the ACO corresponding ARO any help ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: how to do Multi-Row Edit ?

2007-03-26 Thread cc96ai
in your provided code, we might to update helper.php var $tags = array('link' => '%s', 'mailto' => 'mailto:%s"; %s>%s', 'form' => '',

Re: how to do Multi-Row Edit ?

2007-03-26 Thread cc96ai
I cant generate this kind of format ['model'][0]['Name'], ['model'][1] ['Name] but I m trying to put the id into tag name $html->input("product/qty".$product['Product']['id']); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

how to do Multi-Row Edit ?

2007-03-25 Thread cc96ai
I know how to do in PHP, but I have no idea how to work it on cakePHP e.g. I have a table of products, and I will list all the products in one form , one page, -Name, Desc, Qty, Price, Total -Name, Desc, Qty, Price, Total -Name, Desc, Qty, Price, Total -Name, Desc, Qty, Price, Total user will i

Re: Group , Permission to edit table

2007-03-24 Thread cc96ai
$tmp = $this->Acl->getAco('users.7'); users.7 is Aro ID I try to use getAco, but it didnt get what I want any idea how to getAco object ? aco Object ( [useDbConfig] => default [cacheQueries] => [_log] => [useTable] => [displayField] => id [id] => [data] => Array

Re: adressing css-files (for yui) outside the css folder

2007-03-23 Thread cc96ai
it seems the helper is outdated, YUI came with new version, I cant make it works I m still trying, anyone implemented already ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this grou

Re: Group , Permission to edit table

2007-03-23 Thread cc96ai
Finally, i go through all the basic ACL setup, I try to use your provided code. it seems , i have to pass $actionAcoList from my controller $actionAcoList is array of the Aco list, does Aco provide that method ? (I can't find it) or I have to open db table and loop all result into array ? 2nd m

Re: ACL problem, need help!

2007-03-21 Thread cc96ai
$this->Session->read('User') is the object of the User , should I only pass user->id into it ? 2nd, i forgot which version I downloaded , how could I check it ? Thanks Calvin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

ACL problem, need help!

2007-03-21 Thread cc96ai
I just did a simple test on ACL , but i m not sure which part that I did wrong, it always points to "access denied" for me once, (i m testing on single action, instead of do beforeFilter() ) ARO tree group.all |-group.0 |-user.root I login as root user Acl->allow('group.all', '/users'); //Mak

acl command line , how to work on setParent ()

2007-03-21 Thread cc96ai
I used command line to create a group in aro php acl.php create aro 0 0 user.all php acl.php create aro 0 0 user.general php acl.php create aro 0 0 user.sales I would like the tree like user.all |- user.general |- user.sales I try to use setParent(), which is not working >>php acl.php setPare

Re: Group , Permission to edit table

2007-03-20 Thread cc96ai
Thanks pointing me to the direction, I read ACL , and I understand that ACL can control the action, but how about group can edit certain fields e.g. product table. id, Name, QTY, SalePrice -Admin Can edit all the fields above -Saleman, only can edit on "SalePrice" field ONLY it means, admin hav

Group , Permission to edit table

2007-03-19 Thread cc96ai
we have 3 different groups - User - Salesman - Admin In product table, - User can view the product info - Salesman can update/edit some (not all) fields - Admin can add/delete/edit in this scenario, should I create "action" for all of them in product controller, - user_view - salesman_view - sa

Re: newbie question, populate drop down box from other parent table

2007-03-18 Thread cc96ai
yes , i set it up already, in controller i added this variable $this->set('groupArray', $this->User->Group->generateList()); and the view selectTag( 'User/group_id', $groupArray, null, array(), array(), true ); ?> now works fine. one other qu

newbie question, populate drop down box from other parent table

2007-03-18 Thread cc96ai
I have 2 simple tables Groups [id, name] Users [id, name, group_id] when admin create a new user , he has to fill in the group I try to use selectTag() to build the Group drop down in User page, but I have no idea how could cake do that for me ? any snipper code / direction will help Thanks