how could I join into IRC?
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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Magento cart
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 group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
hasMany multi-row save problem
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 ( [0] => Array ( [product_id] => 1 [qty] => 1 [price] => 1.9 ) [1] => Array ( [product_id] => 2 [qty] => 2 [price] => 1.99 ) ) ) - class Order extends AppModel { var $name = 'Order'; var $hasMany = array( 'Orderdetail' => array('className' => 'Orderdetail', 'foreignKey' => 'order_id', ), ); - controller if($this->Order->save($this->data)) { $order_id = $this->Order->getLastInsertId(); $this->Session->setFlash('The Order has been saved '.$order_id); $this->data['Orderdetail']["0"]['order_id'] = $order_id; //Test $this->data['Orderdetail']["1"]['order_id'] = $order_id; //Test $this->Order->Orderdetail->save($this->data); } I read http://manual.cakephp.org/chapter/models however I still unable to save mulit-row Do I need to loop it to save it ? or I am on the wrong track --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Shared ~ log4php component.
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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Shared ~ log4php component.
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 ] http://www.vxr.it/log4php/"; threshold="all" debug="false"> -File End 4. create a components - controllers/components/log.php -File Start [log.php.xml ] controller = &$controller; $this->init(); } /* * Init Log component */ function init(){ if ($this->logger == null){ $prefix = '('. $_SERVER['QUERY_STRING'] .')'; $this->logger =& LoggerManager::getLogger( $prefix ); } } /* * Debug * @param String text */ function debug($text){ $this->init(); $this->logger->debug($text); } /* * info * @param String text* */ function info($text){ $this->init(); $this->logger->info($text); } /* * warn * @param String text */ function warn($text){ $this->init(); $this->logger->warn($text); } /* * error * @param String text */ function error($text){ $this->init(); $this->logger->error($text); } /* * fatal * @param String text */ function fatal($text){ $this->init(); $this->logger->fatal($text); } /* * Shutdown */ function shutdown(){ LoggerManager::shutdown(); } } ?> -File End 5. How-to use ? in controller , add var $components = array('Log'); function xxx (){ $this->Log->debug('DEBUG'); $this->Log->info('INFO'); $this->Log->warn('WARN'); $this->Log->error('ERROR'); $this->Log->fatal('FATAL'); } ~END~ Hope this can 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 from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
How can I use component in beforeFilter?
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 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
anyway to stop LOG_DEBUG ?
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 email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Reusable component in View
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 email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: How to get the SET variable in Helper page?
$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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: How to get the SET variable in Helper page?
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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
How to get the SET variable in Helper page?
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 function link ( $test, ){ } --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Group , Permission to edit table
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 from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: how to do Multi-Row Edit ?
in your provided code, we might to update helper.php var $tags = array('link' => '%s', 'mailto' => 'mailto:%s"; %s>%s', 'form' => '', 'input' => '', 'hidden' => '', I m not sure thats good idea or not --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: how to do Multi-Row Edit ?
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 Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
how to do Multi-Row Edit ?
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 input the Qty in the form, and once he submitted into server it will save into invoice database BUt how can cake handle the name in Multi-Row and direction will help . Thanks --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Group , Permission to edit table
$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 ( ) [table] => acos [primaryKey] => id [_tableInfo] => neatarray Object ( [value] => Array ( [0] => Array ( [name] => id [type] => integer [null] => ) .. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: adressing css-files (for yui) outside the css folder
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 group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Group , Permission to edit table
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 mirror question, your use DS which is DIRECTORY_SEPARATOR I print DIRECTORY_SEPARATOR out , it is \ but once the code explode URL , does it supposes / ? Thanks again --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: ACL problem, need help!
$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 Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
ACL problem, need help!
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'); //Make sure they have permission $this->Acl->allow('group.0', '/users'); $this->Acl->allow('user.root', '/users'); $access = $this->Acl->check($this->Session->read('User'), '/ users'); if ($access === false) { echo "access denied"; } else { echo "access allowed"; } ... } --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
acl command line , how to work on setParent ()
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 setParent aro 2 1 >>Error in setting new parent. Please make sure the parent node exists, and is >>not a descendant of the node specified. base on the help file setParent aro|aco , should be the database id, right ? OR How can I do the relationshop when I create the group ? php acl.php create aro 0 xx user.all Thanks --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Group , Permission to edit table
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 have FULL edit right but salesman only has partial edit right should I set this rule in the VIEW , or i can do it controller or ACL ? --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Group , Permission to edit table
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 - salesman_edit - admin_view - admin_edit - admin_delete - admin_add and also create 7 View page (thml) ? OR there has better solution to do this ? Thanks --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: newbie question, populate drop down box from other parent table
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 question is $this->set('groupArray', $this->User->Group->generateList()); I try to put parameter into generateList() , which is not working any idea ? --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
newbie question, populate drop down box from other parent table
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 Calvin --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---