cakephp hacked
hi, my website was developed in cakephp, recently it was hacked, and it keeps giving the below error message, anyone knows how i can fix it, thanks Missing Controller Error: 406.shtmlController could not be found. Error: Create the class 406.shtmlController below in file: app/ controllers/406.shtml_controller.php -- 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 others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
xml not parse correctly
i am using the below codes, took from the bakery, straight App::import('Xml'); // your XML file's location $file = "my_xml_file.xml"; // now parse it $parsed_xml =& new XML($file); $parsed_xml = Set::reverse($parsed_xml); // this is what i call magic // see the returned array var_dump($parsed_xml); it shows array(1) { ["Order"]=> array(1) { ["id"]=> string(7) "3525314" } } the my_xml_file.xml have the data below it has two order data, the my_xml_file.xml was generated from the database using $xml->serialize($data); but whenever the code above is executed I only get Array ( [Order] => Array ( [id] => 3525314 ) ) that is it is only reads the first order and never the second order, how can i make it to read the whole xml data into an array, thank you http://www.generics.ws --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
xml parsing problem
i am using the below codes, took from the bakery, straight App::import('Xml'); // your XML file's location $file = "my_xml_file.xml"; // now parse it $parsed_xml =& new XML($file); $parsed_xml = Set::reverse($parsed_xml); // this is what i call magic // see the returned array var_dump($parsed_xml); it shows array(1) { ["Order"]=> array(1) { ["id"]=> string(7) "3525314" } } the my_xml_file.xml have the data below it has two order data, the my_xml_file.xml was generated from the database using $xml->serialize($data); but whenever the code above is executed I only get Array ( [Order] => Array ( [id] => 3525314 ) ) that is it is only reads the first order and never the second order, how can i make it to read the whole xml data into an array, thank you http://www.generics.ws --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: xml parsing problem
when i did var_dump($parsed_xml); it shows array(1) { ["Order"]=> array(1) { ["id"]=> string(7) "3525314" } } hence when the xml was parsed to array only one record is stored into the array, my question is anyone knows how to get the 2 records into an array? Thank you On Jun 11, 4:48 pm, paulos nikolo wrote: > Try use the var_dump() or debug().I had the same problem and i am using the > debug().To be more specific here is some code which might help you: > > $results = > $parsed_xml =& new XML($results); > $parsed_xml = Set::reverse($parsed_xml); > debug($results); (or var_dump($results)) > > 2009/6/11 robert123 > > > > > i am using the below codes, took from the bakery, straight > > > App::import('Xml'); > > > // your XML file's location > > $file = "my_xml_file.xml"; > > > // now parse it > > $parsed_xml =& new XML($file); > > $parsed_xml = Set::reverse($parsed_xml); // this is what i call > > magic > > > // see the returned array > > print_r($parsed_xml); > > > the my_xml_file.xml have the data below > > > > > > it has two order data, the my_xml_file.xml was generated from the > > database using $xml->serialize($data); > > > but whenever the code above is executed I only get > > Array ( [Order] => Array ( [id] => 3525314 ) ) > > > that is it is only reads the first order and never the second order, > > how can i make it to read the whole xml data into an array, thank you > > >http://www.generics.ws --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
xml parsing problem
i am using the below codes, took from the bakery, straight App::import('Xml'); // your XML file's location $file = "my_xml_file.xml"; // now parse it $parsed_xml =& new XML($file); $parsed_xml = Set::reverse($parsed_xml); // this is what i call magic // see the returned array print_r($parsed_xml); the my_xml_file.xml have the data below it has two order data, the my_xml_file.xml was generated from the database using $xml->serialize($data); but whenever the code above is executed I only get Array ( [Order] => Array ( [id] => 3525314 ) ) that is it is only reads the first order and never the second order, how can i make it to read the whole xml data into an array, thank you http://www.generics.ws --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: is this possible
there is no error and session component is added On Dec 23, 1:56 am, "Nicolás Andrade" wrote: > Have you included the Session component? > > Do you have any error message? > > On Mon, Dec 22, 2008 at 1:37 PM, robert123 wrote: > > > I am not sure why this happens > > > i have a TransactionsController > > > for its action, i found that i cannot store anything in the session or > > redirect to another action > > > but for other controller, i can do those thing, i am not sure why this > > happen, will appreciate if anyone can let me know, thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
is this possible
I am not sure why this happens i have a TransactionsController for its action, i found that i cannot store anything in the session or redirect to another action but for other controller, i can do those thing, i am not sure why this happen, will appreciate if anyone can let me know, thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
session lost when switching from http to https, vice versa, in cakephp rc3
hi, I am using cakephp rc3 I will lose my cakephp session whenever i swtich http to https: or https to http anyone knows how to solve this problem, reason being, the user was adding to the shopping cart, but when the protocol changes from http to https for checkout:, the shopping cart session is empty the same thing happens, when the use switch from https to http in the checkout to shopping cart, the shopping cart session will be missing --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 check the path of your cache view in the source code?
yes, it was included, as mentioned it was working in testing server, but not in production environment with the same code, i suspect somehow the path to write the cache file to tmp/cache/views was not set correctly, but i dont know where to find it in the cakephp source code On Nov 25, 5:54 pm, Kyo <[EMAIL PROTECTED]> wrote: > Did you include the CacheHelper in your $helpers array? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 check the path of your cache view in the source code?
yes, it was set correctly, in the cache folder, files generate for model and persistent folders but cache views are not generate for the view folders On Nov 25, 5:09 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote: > Have you set the correct permission levels on the tmp directories (web > server needs write access)? > > On 25 Nov 2008, at 17:53, robert123 wrote: > > > > > hi > > > I have enabled caching, in my testing environment, the cache is > > working well, and generate the views at tmp/cache/views > > > so i deploy the code in the production server, using the same code, > > but this time no views are generated at tmp/cache/views > > > I am not sure the reason, anyone can tell me the reason, or anyone can > > tell me where to find the code, where i can check the path of the > > generated view files, so that i can debug it, thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 check the path of your cache view in the source code?
hi I have enabled caching, in my testing environment, the cache is working well, and generate the views at tmp/cache/views so i deploy the code in the production server, using the same code, but this time no views are generated at tmp/cache/views I am not sure the reason, anyone can tell me the reason, or anyone can tell me where to find the code, where i can check the path of the generated view files, so that i can debug it, thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: session lost, after upgrade from cakephp1.2 beta to cakephp1.2 rc3
i found the problem, it seems that once i redirect to ssl and then back to non-ssl, the session is lost On Nov 24, 10:25 pm, robert123 <[EMAIL PROTECTED]> wrote: > i discover, the session is lost once i did a redirect to ssl, but i do > not know the reason why > > On Nov 24, 10:11 pm, robert123 <[EMAIL PROTECTED]> wrote: > > > hi, > > > I am not sure where is the bug, or the code that is the problem, so it > > is quite general > > > anyone knows why is that i keep losing the session, after I upgrade > > from cakephp1.2 beta to cakephp1.2 rc3 > > > thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: session lost, after upgrade from cakephp1.2 beta to cakephp1.2 rc3
i discover, the session is lost once i did a redirect to ssl, but i do not know the reason why On Nov 24, 10:11 pm, robert123 <[EMAIL PROTECTED]> wrote: > hi, > > I am not sure where is the bug, or the code that is the problem, so it > is quite general > > anyone knows why is that i keep losing the session, after I upgrade > from cakephp1.2 beta to cakephp1.2 rc3 > > thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~--~~~~--~~--~--~---
session lost, after upgrade from cakephp1.2 beta to cakephp1.2 rc3
hi, I am not sure where is the bug, or the code that is the problem, so it is quite general anyone knows why is that i keep losing the session, after I upgrade from cakephp1.2 beta to cakephp1.2 rc3 thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 display a different field name from the database in the model
hi, Thank you, I have a cakephp application, the product model has the 'name' field, and all the codes, that is the controller, view, call that field as 'name'. but right now the product table in the database which has the field 'name' has been changed to 'name_en_gb', I am wondering, is there any small change in the model I can do such that it will read the 'name_en_gb' field in the product table in the database, but at the code level, the view, controller, etc can access it using the 'name' field. Thank you On Oct 5, 2:21 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote: > If you mean "display to the user" I don't see where the problem is. > If you're talking about scaffolding, just make a proper view. > If you mean "change internally" it's more hassle than it's worth IMHO. > > Can you clarify a bit what you want to do and where you're stuck? > > On 5 Oct 2008, at 10:32, robert123 wrote: > > > > > hi > > > in my database there is a field > > > which is name_en_gb > > > in my model > > > i wanted it to read the field, but display it as the field > > > name > > > can anyone let me know how to do it, thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 display a different field name from the database in the model
hi in my database there is a field which is name_en_gb in my model i wanted it to read the field, but display it as the field name can anyone let me know how to do it, thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 multiple hasmany
i have parent model, it has two hasmany child model, in the model class, I tried to model this relation by writing two time in the parent model class var $hasMany = array('Childclass1' => array('className' => 'Childclass1'); var $hasMany = array('Childclass2' => array('className' => 'Childclass2'); but it giving me the below error Cannot redeclare Childclass2::$hasMany anyone can let me know, how to solve this, thank you http://www.generics.ws/jpn/レビトラ(塩酸バルデナフィルHCL_)に20_MGについて-p-115.html http://www.generics.ws/jpn/プロペシア(フィナステライド)-p-4.html http://www.generics.ws/jpn/バイアグラ(クエン酸シルデナフィル)-p-2.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 come session is gone when it is redirect to https
hi, any suggestion on how to solve this problem. because whenever I redirect to a https connection for payment like from http://www.domain.com/checkout to https://www.domain.com/checkout the session is lost. Thank you On May 31, 5:38 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On Sat, May 31, 2008 at 3:06 PM, robert123 <[EMAIL PROTECTED]> wrote: > > > anyone knows why cakephp session is gone when it is redirect from http > > to https: > > This is not CakePHP specific - http <> https - will happen with anything PHP > > Tarique > > -- > = > Cheesecake-Photoblog:http://cheesecake-photoblog.org > PHP for E-Biz:http://sanisoft.com > = --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 come session is gone when it is redirect to https
anyone knows why cakephp session is gone when it is redirect from http to https: Thank you www.generics.ws www.genericsmed.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: Email Attachments Don't Work (1.2)
I have the same problem and I did not manage to find many answer to this question., it took me a while to solve the problem, to clarify, I got it working by $this->Email->filePaths = array('/home/username/'); $this->Email->attachments =array('article_button.png'); $this->Email->to = '[EMAIL PROTECTED]'; $this->Email->subject = 'Something'; $this->Email->replyTo = $client['Client']['email']; $this->Email->from= $client['Client']['email']; $this->Email->sendAs = 'html'; if($this->Emailer->send('Testing', null, null)){ die('Email Sent!'); }else{ die('Failed to send email'); } www.genericsmed.com www.generics.ws On Apr 21, 9:47 pm, Doug <[EMAIL PROTECTED]> wrote: > I've done a scount round the group for info on this but not found any > help. One person wasn't answered - I hope that won't be the case this > time round. > > Basically I'm attempting to send anemailwithattachment. Using this > code: > //@todo Send from clientemailaddress > $this->Email->to = '[EMAIL PROTECTED]'; > $this->Email->subject = 'Something'; > $this->Email->replyTo = $client['Client']['email']; > $this->Email->from= $client['Client']['email']; > $this->Email->sendAs = 'html'; > $this->Email->attachments = array('/home/username/ > article_button.png'); > if($this->Emailer->send('Testing', null, null)){ > die('EmailSent!'); > }else{ > die('Failed to sendemail'); > } > > It dies with "EmailSent" and I do get theemailin my inbox. However > there's noattachment. Anyone got any ideas? I've checked > permissions on the file and chmodded them to 777. No luck there. > > Hoipe you can help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 make this statement $session->write('Config.language', $locale); work in view ?
hi, Your solution is the very workable, and I have implemented it successfully, unfortunately due to certain requirement it cannot be redirect. so my only solution, I went to the cake lib folder found the session helper class, and reimplemented the write method, I know this is bad, but really have to made the write functions for the session helper work in the view. Thank you www.generics.ws www.genericsmed.com On May 25, 9:20 pm, "Jonathan Snook" <[EMAIL PROTECTED]> wrote: > On Sun, May 25, 2008 at 1:38 AM, robert123 <[EMAIL PROTECTED]> wrote: > > Can anyone highlight how to make $session->write('Config.language', > > $locale); works? > > In thinking through your problem, I think the better solution is to > have users redirected through an uncached page that sets the language > and then redirects the user back to this page. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 make this statement $session->write('Config.language', $locale); work in view ?
I have a multi language website with caching At the view there is some no cache tag to record which locale the user is currently in and it has to be stored in the session. So I need to store data into session at the view page, Strangely this statement works $session->read('Config.language'); but the below statement will not work in the nocache tag in the cached view $session->write('Config.language', $locale); $locale is just string variable to represent the user locale Can anyone highlight how to make $session->write('Config.language', $locale); works? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 include use session component in the view, when the view is cache
hi, I need to use the session component in the view, but the view is cached, hence it will not go to the controller, in the view there is nocache tag, in between the nocache tag, there is some code where I need to store some data into the session, but I am not sure how to call the session component there, anyone can help? Thanks www.generics.ws www.genericsmed.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 write data into session in the view
Thank you for the reply, I dont have much choice regarding this, I know it is a bad place to write session data in the view But because the this is a multilanguage website with caching, hence it will not goes to the controller, but at the view there is some no cache tag to record which locale the user is currently in and it has to be stored in the session. So I need to store data into session at the view page, thank you On May 25, 11:05 am, "b logica" <[EMAIL PROTECTED]> wrote: > I doubt that the view is the best place for this. Do you have a > compelling reason? Maybe there's a way to do what you want in the > controller. > > Also, are you sure you want 'Config.language'? Unless you're setting > the locale, you really should choose a different name, unless you're > not using Cake's localisation classes. > > On Sat, May 24, 2008 at 8:29 PM, robert123 <[EMAIL PROTECTED]> wrote: > > > I am trying to write some data into the session object at the view, > > below is the statement, but it will not write into it session, anyone > > can > > help? Thanks > > > On May 25, 8:28 am, robert123 <[EMAIL PROTECTED]> wrote: > >> Hi, > > >> I am trying to write some data into the session object at the view, > >> below is the statement, but it will write into it session, anyone can > >> help? Thanks > > >> $session->write('Config.language', 'data'); > > >>www.generics.ws > >www.genericsmed.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 write data into session in the view
I am trying to write some data into the session object at the view, below is the statement, but it will not write into it session, anyone can help? Thanks On May 25, 8:28 am, robert123 <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to write some data into the session object at the view, > below is the statement, but it will write into it session, anyone can > help? Thanks > > $session->write('Config.language', 'data'); > > www.generics.ws www.genericsmed.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 write data into session in the view
Hi, I am trying to write some data into the session object at the view, below is the statement, but it will write into it session, anyone can help? Thanks $session->write('Config.language', 'data'); www.generics.ws www.genericsmed.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 not to clear cache?
Right now I have a shopping_cart_product model. it belows to product model , below is the model code I caching all product view page, but everytime someone add an product, the ShoppingCartProduct, gets update and all my cached product view is deleted, is there anyway I can stop the clearing of cache view when this ShoppingCartProduct is changed. Thank you www.generics.ws www.genericsmed.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: Caching System with Language in the file name
hello, I am not sure does this help, but I am able to get caching to work in cakephp1.2 beta for my multilanguage site, at the products_controller, there is a show action I put something like this var $cacheAction = array('en_gb/products/show/' => '72 hour', 'zh_tw/products/show/' => '72 hour') in the products_controller file and the file generated in \tmp\cache\views folder is in the format _en_gb_products_show_170.php hence it will get the correct cache file www.generics.ws www.genericsmed.com On May 17, 6:31 pm, francky06l <[EMAIL PROTECTED]> wrote: > It seems yes, post a ticket on trac (unless it's already reported).. > > On May 17, 11:08 am, foxmask <[EMAIL PROTECTED]> wrote: > > > i've done some tests and a simple one is in core.php : > > >Cache::config('default', array('engine' => 'File', > > 'path'=> > > realpath(dirname(__FILE__) .DS.'..'.DS.'tmp'.DS.'cache'.DS.'fr'.DS) > > )); > > > and when i look into my /home/foxmask/www/tmp/cache/fr/ directory (in > > views/persistent/models) everything is still empty. > > > here it's clearly a bug... > > > On 17 mai, 01:06, francky06l <[EMAIL PROTECTED]> wrote: > > > > I guess Config::language is available in beforeFiler, but not before. > > > I never tried to override theCache::config('default"...) in > > > beforeFilter, but I do not see any reason this would not work.. > > > However, I am not sure if in case of a cached view, > > > app_controller:beforeFilter is even reached... > > > > On May 17, 12:45 am, foxmask <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > > i would like to avoid to change something inside cakephp . > > > > > i tried in the core.php file : > > > >Cache::config('default', array('engine' => 'File','path'=> > > > > dirname(__FILE__) > > > > .DS.'..'.DS.'tmp'.DS.'cache'.Configure::read('Config.language'))); > > > > > but unfortunatly, Config.language is not set yet at this moment. > > > > > in app_controller.php in beforeRender Config.language is available > > > > but i dont know if it's the right place to modify the > > > >Cache::config('default'.) > > > > > So, I really dont understand how a so simple thing cant work > > > > > Anyone get an idea ? > > > > > On 16 mai, 09:42, Filip Camerman <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > I've had the exact same problem: thecacheprefix that you can specify > > > > > in the core config is not used for cached views - which is a major bug > > > > > imo. I solved it by hacking the core in the places where it reads/ > > > > > writes cached views, since I absolutely needed this functionality. > > > > > I've described how to do it in the second message of this > > > > > thread:http://groups.google.com/group/cake-php/browse_thread/thread/62b4d61b... > > > > > > hth --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: cc validation
hi, In the validation.php file in the libs folder, the validation rule is $cards = array('all' => array('amex' => '/^3[4|7]\\d{13}$/', 'bankcard' => '/^56(10\\d\\d|022[1-5])\\d{10}$/', 'diners' => '/^(?:3(0[0-5]|[68]\\d)\\d{11})|(?:5[1-5]\ \d{14})$/', 'disc' => '/^(?:6011|650\\d)\\d{12}$/', 'electron' => '/^(?:417500|4917\\d{2}|4913\\d{2})\\d{10}$/', 'enroute' => '/^2(?:014|149)\\d{11}$/', 'jcb' => '/^(3\\d{4}|2100|1800)\\d{11}$/', 'maestro' => '/^(?:5020|6\\d{3})\\d{12}$/', 'mc' => '/^5[1-5]\\d{14}$/', 'solo' => '/^(6334[5-9][0-9]|6767[0-9]{2})\\d{10}(\ \d{2,3})?$/', 'switch' => '/^(?:49(03(0[2-9]|3[5-9])|11(0[1-2]|7[4-9]| 8[1-2])|36[0-9]{2})\\d{10}(\\d{2,3})?)|(?:564182\\d{10}(\\d{2,3})?)| (6(3(33[0-4][0-9])|759[0-9]{2})\\d{10}(\\d{2,3})?)$/', 'visa' => '/^4\\d{12}(\\d{3})?$/', 'voyager' => '/^8699[0-9]{11}$/'), 'fast' => '/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}| 6011[0-9]{12}|3(?:0[0-5]|[68][0-9])[0-9]{11}|3[47][0-9]{13})$/'); It is using regular expression to check for the format of the different cards, you can use amex to check for amex card www.generics.ws www.genericsmed.com On May 13, 2:25 am, SiVA_ <[EMAIL PROTECTED]> wrote: > I'm trying to use the ccvalidationrule but I'm having troubles. Here > is the snippet of the $validate array in my model: > > var $validate = array( > > 'cc_number' => array( > 'rule' => array('cc', array('visa', 'disc', 'mc', 'jcb'), > false, null), > 'message' => 'Thecreditcardnumber you supplied was > invalid.' > ), > ); > > American Express is 15 digits, and so is jbc and diners. As there is > no amex option, I'm using jcb instead. When I put in 15 digits > thevalidationfails. I also tried "diners" instead of "jbc" but that > didn't work either. > > I tried just setting it to "all" too but that didn't work. > > Any suggestions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 disable validation before saving model
This seem like a very basic question, but I did not manage to find the answer to this questions, Anyone knows how to disable validation before saving it to the model. I only manage to find notes on how to disable individual rules, but not on the whole validation. Thanks www.generics.ws www.genericsmed.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: session will drop off for no apparent reason
Thank you, I think it is correct, I did not have any dropped session the whole day. :> www.generics.ws www.genericsmed.com On May 9, 12:50 pm, Adam Royle <[EMAIL PROTECTED]> wrote: > Try setting your Security.level to medium. "High" regenerates the > session id on each request, therefore it is possible when making lots > of simultaneous requests (eg ajax) that the session id changes without > updating the browser before the next request. > > I've also found when using flash to request info from cake, it will > destroy the session because Flash sends a different userAgent on > certain browser - set Session.checkAgent = false to prevent this from > screwing with your app. > > Cheers, > Adam > > On May 9, 11:50 am, robert123 <[EMAIL PROTECTED]> wrote: > > > hi, > > > I am using Cake build (1.2.0.6311 beta), it does not occur very > > frequently, but my session will just drop off with no apparent reason. > > Sometime the session will last for a few hours, but sometime it only > > last for a few minutes, > > I am sorry the problem is so general, because I am not sure where to > > look for the problem also in the codes. Actually have been looking at > > it on and off at this problem for the past week, but still not sure. > > > Below are some configure values in my core.php > > > Configure::write('Session.save', 'php'); > > Configure::write('Session.cookie', 'CAKEPHP'); > > Configure::write('Session.timeout', '1000'); > > Configure::write('Session.start', true); > > Configure::write('Session.checkAgent', true); > > Configure::write('Security.level', 'high'); > > > I appreciate if anyone will suggest some possible reason, so maybe I > > can know where to look for the problem, thank you. Thank you > > >www.generics.wswww.genericsmed.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~--~~~~--~~--~--~---
session will drop off for no apparent reason
hi, I am using Cake build (1.2.0.6311 beta), it does not occur very frequently, but my session will just drop off with no apparent reason. Sometime the session will last for a few hours, but sometime it only last for a few minutes, I am sorry the problem is so general, because I am not sure where to look for the problem also in the codes. Actually have been looking at it on and off at this problem for the past week, but still not sure. Below are some configure values in my core.php Configure::write('Session.save', 'php'); Configure::write('Session.cookie', 'CAKEPHP'); Configure::write('Session.timeout', '1000'); Configure::write('Session.start', true); Configure::write('Session.checkAgent', true); Configure::write('Security.level', 'high'); I appreciate if anyone will suggest some possible reason, so maybe I can know where to look for the problem, thank you. Thank you www.generics.ws www.genericsmed.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: error message appear on the top of html
Thank you, I found the error, because I keep using __() function at the $this->Session->setFlash($message, ''); that is $this->Session->setFlash(__(some error message), ''); hence it always appear as the first message on the html. www.generics.ws www.genericsmed.com On May 6, 2:34 am, Sliv <[EMAIL PROTECTED]> wrote: > Are you sure you're talking about flash messages, or php/cake error > messages (debug output)? > > I would recommend putting $session->flash in your LAYOUT file (views/ > layouts/default.ctp or other), where you want flash messages to > appear. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: why does cache view keep on regenerating
hi, I think I found the problem, it seem that var $cacheAction = array('testmenu'=>'60'); is not working when use the below format everyworks, thank you everyone for the help var $cacheAction = "+1 hour"; www.generics.ws www.genericsmed.com On May 2, 10:12 pm, robert123 <[EMAIL PROTECTED]> wrote: > Thanks for replying, but I comment the > > $this->cacheAction = true; in the testmenu method, the view stop > generating in the cache folder. Any Idea why is it so, thanks > > www.generics.ws > > On May 2, 9:23 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > > > On Fri, May 2, 2008 at 9:18 AM, robert123 <[EMAIL PROTECTED]> wrote: > > > > hi, thanks this is the code > > > > > > > class CategoriesController extends AppController > > > { > > > > var $name = 'Categories'; > > > var $uses = array('Category','Image'); > > > > var $components = array('Files'); > > > > var $helpers = array('Tree','Form','Cache'); > > > > var $cacheAction = array('testmenu'=>'60'); > > > > function testmenu() > > > { > > > $this->cacheAction = true; > > > $this->layout='blank'; > > > $this->Category->recursive = 0; > > > $this->set('data', $this->Category- > > > >findAll("Category.parent_id = '0' and Category.active = '1'", > > > array('name'), 'Category.sort')); > > > $this->render(); > > > > } > > > You set $this->cacheAction to be an array...then set it to true in > > testmenu(). > > > I'm guessing this isn't what you intended. > > > -- > > Chris Hartjes > > Internet Loudmouth > > Motto for 2008: "Moving from herding elephants to handling snakes..." > > @TheKeyBoard:http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: why does cache view keep on regenerating
Thanks for replying, but I comment the $this->cacheAction = true; in the testmenu method, the view stop generating in the cache folder. Any Idea why is it so, thanks www.generics.ws On May 2, 9:23 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Fri, May 2, 2008 at 9:18 AM, robert123 <[EMAIL PROTECTED]> wrote: > > > hi, thanks this is the code > > > > > class CategoriesController extends AppController > > { > > > var $name = 'Categories'; > > var $uses = array('Category','Image'); > > > var $components = array('Files'); > > > var $helpers = array('Tree','Form','Cache'); > > > var $cacheAction = array('testmenu'=>'60'); > > > function testmenu() > > { > > $this->cacheAction = true; > > $this->layout='blank'; > > $this->Category->recursive = 0; > > $this->set('data', $this->Category- > > >findAll("Category.parent_id = '0' and Category.active = '1'", > > array('name'), 'Category.sort')); > > $this->render(); > > > } > > You set $this->cacheAction to be an array...then set it to true in testmenu(). > > I'm guessing this isn't what you intended. > > -- > Chris Hartjes > Internet Loudmouth > Motto for 2008: "Moving from herding elephants to handling snakes..." > @TheKeyBoard:http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: why does cache view keep on regenerating
hi, thanks this is the code '60'); function testmenu() { $this->cacheAction = true; $this->layout='blank'; $this->Category->recursive = 0; $this->set('data', $this->Category- >findAll("Category.parent_id = '0' and Category.active = '1'", array('name'), 'Category.sort')); $this->render(); } } On May 2, 8:35 pm, "Marcin Domanski" <[EMAIL PROTECTED]> wrote: > paste the controller code to the bin, you're not writing to the db ? > > > > On Fri, May 2, 2008 at 1:22 PM, robert123 <[EMAIL PROTECTED]> wrote: > > > Yes it is 0, I am not debugging > > > www.generics.ws > > > On May 2, 6:54 pm, "Marcin Domanski" <[EMAIL PROTECTED]> wrote: > > > is debug = 0 ? > > > > On Fri, May 2, 2008 at 2:17 AM, robert123 <[EMAIL PROTECTED]> wrote: > > > > > I am using the latest Cake build (1.2.0.6311 beta) > > > > > I have enable caching on my system by the two statement in the core > > > > file > > > > > Configure::write('Cache.disable', false); > > > > Configure::write('Cache.check', true); > > > > > The first time I accessed the url, a cache view is generated in app > > > > \tmp\cache\views. > > > > But subsequently everytime I access same the url again, the same view > > > > is regenerated again in the cache folder. The controller code is > > > > executed and database is hit, Thus there is no improvement in > > > > performance at all, anyone knows how to solve this issue? Thanks > > > > > www.generics.ws > > > > www.genericsmed.com > > > > -- > > > Marcin Domanskihttp://kabturek.info > > -- > Marcin Domanskihttp://kabturek.info --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: why does cache view keep on regenerating
Yes it is 0, I am not debugging www.generics.ws On May 2, 6:54 pm, "Marcin Domanski" <[EMAIL PROTECTED]> wrote: > is debug = 0 ? > > > > On Fri, May 2, 2008 at 2:17 AM, robert123 <[EMAIL PROTECTED]> wrote: > > > I am using the latest Cake build (1.2.0.6311 beta) > > > I have enable caching on my system by the two statement in the core > > file > > > Configure::write('Cache.disable', false); > > Configure::write('Cache.check', true); > > > The first time I accessed the url, a cache view is generated in app > > \tmp\cache\views. > > But subsequently everytime I access same the url again, the same view > > is regenerated again in the cache folder. The controller code is > > executed and database is hit, Thus there is no improvement in > > performance at all, anyone knows how to solve this issue? Thanks > > > www.generics.ws > > www.genericsmed.com > > -- > Marcin Domanskihttp://kabturek.info --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~--~~~~--~~--~--~---
why does cache view keep on regenerating
I am using the latest Cake build (1.2.0.6311 beta) I have enable caching on my system by the two statement in the core file Configure::write('Cache.disable', false); Configure::write('Cache.check', true); The first time I accessed the url, a cache view is generated in app \tmp\cache\views. But subsequently everytime I access same the url again, the same view is regenerated again in the cache folder. The controller code is executed and database is hit, Thus there is no improvement in performance at all, anyone knows how to solve this issue? Thanks www.generics.ws www.genericsmed.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: does Cache prefix work?
Hi, I am using recent Cake build (1.2.0.6311 beta), I am also working on a Multi-language site, same like you, I prefix the locale in front the controller, like en-gb/controller/action rus/controller/action and I enable the cache, cache view generate in app\tmp\cache\views have the file name locale_controller_action.php format, that is it will append the prefix to it, but the problem, for every access to the url, it will regenerate the cache view again, even slowing down the system more, and it still access the database also. I am not sure what went wrong, but if anyone can let me know how to create a multi language site with caching, please let me know, thank you www.generics.ws www.genericsmed.com On Apr 23, 3:27 pm, Krommenaas <[EMAIL PROTECTED]> wrote: > I'm setting it where I'm using it. Since it's based on the domain name > I can set it anywhere. I suppose if you store the user language in a > cookie you could also read it anywhere. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~--~~~~--~~--~--~---
caching will not work with i18n
am using the latest cakephp Beta: 1.2.0.6311 with i18n For every page access I add the below statement at the beforeFilter function in the app_controller to change the locale for the user Configure::write('Config.language', "en-gb"); I also enable caching, and for every url, I will prefix the locale to the url that is for en-gb locale the url have the general form en-gb/controller/action for rus locale the url have the general form rus/controller/action So that the url will be unique for every action for different locale I enable caching for the action, and I checked after access at the app \tmp\cache\views folders to check whether caching is enable, I noticed after every access, the view is cache as _locale_viewname.php, so I thought caching is working, but I noticed the second access to the same url again, the page is regenerated again at the app\tmp\cache \views folders with the same name and there is still access to the database. Hence in effect the caching is not working, anyone have any idea why is it so? Thank you www.generics.ws www.genericsmed.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~--~~~~--~~--~--~---
Is Configure::write('Config.language', "rus") writing to a static variable, and hence will not work in a concurrent system
hello, I am implementing i18n, but dont seem to get answer to the above question, so hope some one can help me I set up two languages in my app: 'en-gb' and 'rus'. In core.php I added: define('DEFAULT_LANGUAGE', 'en-gb'); Configure::write('Config.language', 'en-gb'); In my app_controller beforeFilter: Configure::write('Config.language', "rus"); //can be en-gb or rus I am using Configure::write('Config.language', "rus"); in the before filter method to set the locale for the user everytime he access the web application. My questions is whether Configure::write('Config.language', "rus"); is writing to a static variable, since from my understanding Configure::write is writing to a application wide variable. If it is a static variable, the locale setting will be corrupted once another user happen to access at the same time with another locale. Hope someone can highlight if this is the correct way, thank you www.generics.ws www.genericsmed.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~--~~~~--~~--~--~---
I18n, is this correct way? Configure::write('Config.language', "en");
In the cakephp 1.2 cookbook http://book.cakephp.org/view/161/localization-internationalizat There is a section $this->L10n = new L10n(); $this->L10n->get("en"); Configure::write('Config.language', "en"); I read that configure will change the whole application settings. Is this correct way to implement i18n, since every user have different locale, and if every user execute the statement above, than it will change the locale for other user also. I have tried $this->Session->write('Config.language','en-gb'); but the function __() just will not take any locale from there. Any help will be deeply appreciated, www.generics.ws www.genericsmed.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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: anyone knows how use i18n in cakephp 1.2 for database modelling
Just spoke to the author of the solutions, he have just uploaded the latest code, works like a charm, but a few things thoug 1. There is fixed needed in the cakephp 1.2 2. Need php 5.24 and above 3. Some settings like locale may have to change to Configure::read('Config.language') www.genericsmed.com On Apr 22, 10:16 pm, robert123 <[EMAIL PROTECTED]> wrote: > Hi, I am trying to implementi18nincakephpfordatabasemodelling > > There is a good solutions at > > http://www.palivoda.eu/2008/04/i18n-in-cakephp-12-database-content-tr... > > but I have tried to use it without any success, anyone can give an > example of how to implement it. > > Thank youwww.generics.ws --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~--~~~~--~~--~--~---
anyone knows how use i18n in cakephp 1.2 for database modelling
Hi, I am trying to implement i18n in cakephp for database modelling There is a good solutions at http://www.palivoda.eu/2008/04/i18n-in-cakephp-12-database-content-translation-part-2/ but I have tried to use it without any success, anyone can give an example of how to implement it. Thank you www.generics.ws --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~--~~~~--~~--~--~---
i18n in cakephp
Hi, I want to develop website using cakephp in Chinese and English using utf8 encoding I am trying to use cakephp 1.2 version, I have been searching around the web on the docs on i18n, but it is rather scatter, below are a few problems where I have difficulties, hopefully anyone can help me, thank you 1." .po files should be encoded using ISO-8859-1", this is a nightmare maintenance for Chinese character, reason being once it is in iso-8859-1 format, if you want to change any messages, the messages cannot be seen easily, example 我 is me in chinese, but if you store it in ISO-8859-1 encoding it is \u6211, hence it becomes very hard to hunt down the words in message file, but it will be different if it is store in UTF8 encoding, as the Chinese character can be store, edit, view naturally as it is, anyone can highlight any solution to this ? like A good editor to convert these eastern characters to the correct encoding, or making cakephp read utf8 encoding po file? 2. Another problem , take an example a product table that has id, title and description field there is a product in english and chinese, how do you with the chosen language pick up the correct product in database in that language, other than using another lookup table. 3. Lastly is the error message for validation of users inputs, I search the new Forms built in helper, doesnt seem to tell us how to show the different language depending on the user locale 4. I am thinking also does caching actually works with i18n, reason being you execute $this->L10n = new L10n(); $this->L10n->get("en"); Configure::write('Config.language', "en"); , but let say you have the webpage cache seperately english and chinese, how does it recognize which one to pickup? http://www.generics.ws";>www.generics.ws http://www.genericsmed.com";>www.genericsmed.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---