cakephp hacked

2011-05-31 Thread robert123
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.sh

xml not parse correctly

2009-06-12 Thread 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 returne

xml parsing problem

2009-06-12 Thread 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 returne

Re: xml parsing problem

2009-06-11 Thread robert123
  $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

xml parsing problem

2009-06-10 Thread 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 returne

Re: is this possible

2008-12-22 Thread robert123
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 su

is this possible

2008-12-22 Thread robert123
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 --~--

session lost when switching from http to https, vice versa, in cakephp rc3

2008-12-03 Thread robert123
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

Re: how to check the path of your cache view in the source code?

2008-11-25 Thread robert123
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, K

Re: how to check the path of your cache view in the source code?

2008-11-25 Thread robert123
mp 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 dep

how to check the path of your cache view in the source code?

2008-11-25 Thread robert123
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

Re: session lost, after upgrade from cakephp1.2 beta to cakephp1.2 rc3

2008-11-24 Thread robert123
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, 1

Re: session lost, after upgrade from cakephp1.2 beta to cakephp1.2 rc3

2008-11-24 Thread robert123
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 w

session lost, after upgrade from cakephp1.2 beta to cakephp1.2 rc3

2008-11-24 Thread robert123
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

Re: how to display a different field name from the database in the model

2008-10-04 Thread robert123
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 &g

how to display a different field name from the database in the model

2008-10-04 Thread robert123
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

how to do multiple hasmany

2008-08-21 Thread robert123
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('Childclas

Re: how come session is gone when it is redirect to https

2008-05-31 Thread robert123
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 <&g

how come session is gone when it is redirect to https

2008-05-31 Thread robert123
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,

Re: Email Attachments Don't Work (1.2)

2008-05-28 Thread robert123
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

Re: how to make this statement $session->write('Config.language', $locale); work in view ?

2008-05-28 Thread robert123
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: > > C

how to make this statement $session->write('Config.language', $locale); work in view ?

2008-05-24 Thread robert123
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');

how to include use session component in the view, when the view is cache

2008-05-24 Thread robert123
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 compon

Re: how to write data into session in the view

2008-05-24 Thread robert123
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. >

Re: how to write data into session in the view

2008-05-24 Thread robert123
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 obj

how to write data into session in the view

2008-05-24 Thread robert123
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

how not to clear cache?

2008-05-22 Thread robert123
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 ca

Re: Caching System with Language in the file name

2008-05-19 Thread robert123
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

Re: cc validation

2008-05-18 Thread robert123
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}$/',

how to disable validation before saving model

2008-05-18 Thread robert123
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.gene

Re: session will drop off for no apparent reason

2008-05-09 Thread robert123
lash 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

session will drop off for no apparent reason

2008-05-08 Thread robert123
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 wher

Re: error message appear on the top of html

2008-05-05 Thread robert123
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, Sli

Re: why does cache view keep on regenerating

2008-05-02 Thread robert123
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 M

Re: why does cache view keep on regenerating

2008-05-02 Thread robert123
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

Re: why does cache view keep on regenerating

2008-05-02 Thread robert123
gt; 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, &quo

Re: why does cache view keep on regenerating

2008-05-02 Thread robert123
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

why does cache view keep on regenerating

2008-05-01 Thread robert123
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. Bu

Re: does Cache prefix work?

2008-04-30 Thread robert123
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 l

caching will not work with i18n

2008-04-28 Thread robert123
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

Is Configure::write('Config.language', "rus") writing to a static variable, and hence will not work in a concurrent system

2008-04-28 Thread robert123
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 befor

I18n, is this correct way? Configure::write('Config.language', "en");

2008-04-22 Thread robert123
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

Re: anyone knows how use i18n in cakephp 1.2 for database modelling

2008-04-22 Thread robert123
guage') 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

anyone knows how use i18n in cakephp 1.2 for database modelling

2008-04-22 Thread robert123
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

i18n in cakephp

2008-04-18 Thread robert123
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, than