URL problem

2011-08-15 Thread leafchild
I have 2 subdomain for my sites: -mysite.mydomain.com <- cakePHP -myforum.mydomain.com <- open source forum I want to make it forum URL like this: mysite.mydomain.com/forum so basically my cliant want to llok like form is under mysite. I tried to use .htaccess to make URL look like "mysi

Re: multi-language site

2011-07-28 Thread leafchild book
i take a look come to http://www.stinto.net/jk9hn > its a private chat. Then i help you there :) > > On 28 Jul., 02:32, leafchild book wrote: > > "Configure::write('Config.language', 'ja');" is NOT working. > > > > Yes I have "default.po&

Re: cakephp 1.3 loading page is slow

2011-07-28 Thread leafchild book
ith the html cache plugin; > http://bakery.cakephp.org/articles/mattc/2009/03/20/html-cache-helper > > > > > > It will really speed it up, just be careful and remember to clean > cache > > > > after updates. > > > > > >

cakephp 1.3 loading page is slow

2011-07-27 Thread leafchild
I notice loading page is extremely slow. Those pages are not connected to DB. Just simple static page. How can I make it faster to load these pages? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.o

Re: multi-language site

2011-07-27 Thread leafchild book
;ja'); > > You can take a look on cake/libs/l10n.php > > Did you create app/local/jpn/LC_MESSAGES/default.po ? > > On 28 Jul., 02:14, leafchild book wrote: > > . > > > > I set .po file for "en" and "jpn" > > > > I

Re: multi-language site

2011-07-27 Thread leafchild book
On Wed, Jul 27, 2011 at 5:14 PM, leafchild book wrote: > . > > I set .po file for "en" and "jpn" > > I set default language to Japanese: > app/config/core.php: > Configure::write('Config.language', 'jpn'); > > but when

Re: multi-language site

2011-07-27 Thread leafchild book
gloop wrote: > When you have diffrent count pages you must set diffrent routes (for > en / jp). > > And set diffrent views for these pages. > > On 27 Jul., 23:27, leafchild book wrote: > > Also I wander,,, how other people doing for this kind of site,,, > > > > #1) &g

Re: multi-language site

2011-07-27 Thread leafchild book
) submit button On Wed, Jul 27, 2011 at 2:23 PM, gloop wrote: > I use .po files > > kind regards > > On 27 Jul., 23:10, leafchild wrote: > > Thanks gloop for the response. > > > > Did you use .pot file or DB?? > > > >

Re: multi-language site

2011-07-27 Thread leafchild book
) submit button On Wed, Jul 27, 2011 at 2:10 PM, leafchild wrote: > Thanks gloop for the response. > > Did you use .pot file or DB?? > > lc > > On Jul 27, 1:32 pm, gloop wrote: > > Hello leafchild, > > > > same problem for 1 day :-D > &g

Re: multi-language site

2011-07-27 Thread leafchild
Thanks gloop for the response. Did you use .pot file or DB?? lc On Jul 27, 1:32 pm, gloop wrote: > Hello leafchild, > > same problem for 1 day :-D > > routes.php > >     Router::connect( >         '/:lang/:controller/:action/*', >         array(

multi-language site

2011-07-27 Thread leafchild
I want to have 2 languages site (en/jp) and JP is default language. I look at multi-language pages but still confusing,,, ex) http://book.cakephp.org/view/1228/Internationalization-Localization http://book.cakephp.org/view/1328/Translate and url will be: JP : mydomain.com/whatever EN: mydomain.

Re: validation is not working properly and generating "Notice (8): Undefined property" error

2011-07-20 Thread leafchild
nually load it: > $this->Contact = ClassRegistry::init('Contact') > > but I would suggest you try to find the source for this problem. > maybe the file name of your model is incorrect? or the location > somewhere cake can

validation is not working properly and generating "Notice (8): Undefined property" error

2011-07-19 Thread leafchild
Getting these error and I can not find a away to fix: -- -- Notice (8): Undefined property: ContactsController::$Contact [APP/ controllers/contacts_controller.php,

Strange behavior own comparing validat...@model

2010-10-06 Thread leafchild
I have Auth system, and In my user model, I have a validation soemething like this: == var $validate = array( ... 'password' => array( 'sameCheck' => array( 'rule' => array('sameCheck',

common value name for all pages

2010-09-28 Thread leafchild
I have to use a value $myvalue for 90% of pages at my site. 50% pages has same value (10% of page actually I don't need this value but since this value is set to layout I have to do something to avoid showing error ) so I want to set $this->set('myvalue', default) as default value but I don't want

Re: htaccess and domain

2010-09-28 Thread leafchild book
en delete the other 2 .htaccess > > > On 28 Sep., 03:55, leafchild wrote: > > I set webroot to app/webroot > > Also I edited .htaccess file to redirect user to domain without www > > url, if a user access the site withwww.mydomain, user is redirected > > to > >

htaccess and domain

2010-09-27 Thread leafchild
I set webroot to app/webroot Also I edited .htaccess file to redirect user to domain without www url, if a user access the site with www.mydomain, user is redirected to mydomain.com. Not sure which .htaccess file I edited but before I set webroot to app/ webroot, redirecting www.mydomain to mydom

Re: checkbox copy field

2010-09-10 Thread leafchild book
thanks! used jquery and working fine! On Fri, Sep 10, 2010 at 12:27 PM, cricket wrote: > On Fri, Sep 10, 2010 at 3:04 PM, leafchild > wrote: > > Trying to set up JavaScript for copying shipping information to > > billing address but it's not

checkbox copy field

2010-09-10 Thread leafchild
Trying to set up JavaScript for copying shipping information to billing address but it's not going well with CakePHP ==