database.php permission

2013-04-13 Thread and
In database.php are stored some information about username and password.How can i protect this file?i would like that is read only for the applications. Now the permissions are: -rw-r--r-- 1 root root 3188 2013-04-10 18:36 app/config/database.php If i am not wrong the file is readeble for the

Re: Model can't find the table in the database

2012-11-23 Thread and
Ok,i tried from the beginning and i have no more that error.I don't know what happened.Thank you. Il giorno mercoledì 21 novembre 2012 17:43:43 UTC+1, and ha scritto: > > Hi all, > I have this error: > *Error: * Database table *models* for model *model* was not found. > >

Re: Model can't find the table in the database

2012-11-23 Thread and
You are right acl is envolved.I'm following a tutorial and i am making everything from the beginning.I will let you know as soon is possible. Il giorno mercoledì 21 novembre 2012 17:43:43 UTC+1, and ha scritto: > > Hi all, > I have this error: > *Error: * Database table *models*

Model can't find the table in the database

2012-11-21 Thread and
urn null; } else{ return array('model'=>'Dealer','foreignKey'=>$data['Product']['dealer_id']); } } } ?> And a db table named products.How can I fix it? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

Re: form password default value

2012-11-09 Thread and
:40:24 UTC+1, euromark ha scritto: > > and if possible use an alias for your form field "password" like "pwd" as > well as some kind of "pwd_repeat" field to confirm the password (since you > cant see it very often it is mistyped rendering the registr

form password default value

2012-11-08 Thread and
Hi all, I have a form for registration and i have some rules that the field must respect.If i insert the wrong email format,for example,the form says that it is incorrect.The thing that happen is that the password field is filled with md5 password.I have the following view: Please fill out the

how does comunicate Model View Controller

2012-07-22 Thread and
orials 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

The requested URL /users/register was not found on this server.

2012-03-19 Thread and
Hi all, I am new to cakephp i have followed a tutorial on ibm developerworks.when submit data in a form i have this error:The requested URL /users/register was not found on this server.I have installed cakephp in /var/www/cakephp and I have in the apache log file this error: [Tue Mar 20 00:04:24

Re: CakePHP 1.3.4 Stable - Weird problem with sessions! HELP!

2010-10-14 Thread and
On 12 Okt., 15:04, 浪漫様 wrote: > In a normal world, the following code would work... you receive a > variable on your function, and you save it on a session, then the next > page is able to read it ( the SET is just to display it on the > views )... however, in CakePHP 1.3.4 Stable s

Re: Plug-in Models

2010-10-10 Thread and
o be shared with the plugin. > I could move User and make MemberUser model in plugin folder but then > sharing Country model? User right now belongs to Country no big deal but > Country is used in various places over the site so can UserMember access > Country if moved? > > I hav

Re: Problem with hasOne Relation

2010-10-09 Thread and
Sometimes, if you use both 'hasOne' and 'belongsTo' it doesn't work. I experienced it very often. Try just to use one of them. And the second point is that, if you have typed it here correctly, your $belongsTo is not correct. $belongsTo = array(''); but tr

Re: MySQL user privileges for CakePHP

2010-10-07 Thread and
set to something > less than ALL, for use with CakePHP. What is the maximum set of MySQL > user privileges that CakePHP will ever need? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you

Re: Validate input select

2010-10-07 Thread and
; => 'notEmpty', >                                 'message'=>"Debe seleccionar un valor."), > > Is it possible to validate that the user has selected a value? > > I'm use cake 1.3 > > Thanks. Check out the new CakePHP Questions

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-12 Thread and
I've experienced that even a year of cakephp programming is not enough to say: I know how to work with cake. Therefor I suggest you start to write it by your own. Wordpress comes ready and you don't have to develop anything. There are even plenty of plugins. But if you want to improve y

Centralize Vendor Scripts

2010-09-10 Thread and
Hi there, I want to use some scripts that should usually be saved in the vendors folder within the application. My problem is that I have many projects which use those skripts. I don't want to copy all scripts again and again into every new application. Is there a way in CakePHP how to stor

Re: Nested Array from Model Tree Behavior

2008-04-16 Thread Light and Shadow
On Mar 18, 3:30 am, AD7six <[EMAIL PROTECTED]> wrote: > > I don't understand why after setting yourself up withtreebehavior, > and all the none recursive benefits that yields, you still want a > recursive, nested array Jumping in here, CakePHP does not return model obj

Why I recieved a request /controller/action/favicon.ico?

2007-07-13 Thread hi and hello
And the cakephp give me a url such as metioned above at a request,why? Is there something configured not right? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this g

Re: How to set the database connection's character encoding in cakephp?

2007-07-12 Thread hi and hello
I am using sqlserver. AD7six 写道: > On Jul 12, 9:05 am, hi and hello <[EMAIL PROTECTED]> wrote: > >I want to fetch data from database as UTF-8 while the data stored > > in the database as another encodig, > > Why do you want to store data in a different encoding

Re: How to set the database connection's character encoding in cakephp?

2007-07-12 Thread hi and hello
Ha, just express I have no other choice. And can I give an aragument to the cakephp to build a connection whice return the data encoded as I expect? On Jul 12, 3:48 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Jul 12, 9:43 am, hi and hello <[EMAIL PROTECTED]> wrote: > > >

Re: How to set the database connection's character encoding in cakephp?

2007-07-12 Thread hi and hello
It is beacause I have to adjust an old database whose data encoding is not utf-8... On Jul 12, 3:17 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Jul 12, 9:05 am, hi and hello <[EMAIL PROTECTED]> wrote: > > >I want to fetch data from database as UTF-8 while th

How to set the database connection's character encoding in cakephp?

2007-07-12 Thread hi and hello
I want to fetch data from database as UTF-8 while the data stored in the database as another encodig, so how to configure the cakephp for right encoding? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP

Ajax request with firefox and cakephp

2007-07-11 Thread hi and hello
In my application, I need to use ajax to GET a page generated by cakephp, but when use ajax and firefox get the same url twice, I found the 2nd sometimes need more than 10s waiting,so I debug the cakephp and locate 'CakeSession::construct()' in /cake/libs/session.php ,it called ses

Re: About cakephp's performance

2007-07-10 Thread hi and hello
I had a test about this and get a strange result. The browser I used are IE6 and Firefox2.0. At core.php the debug level is set 0. I add some code to the file "/cake/libs/controller/component.php" about the "$this->__controller->{$component} =& new $componentCn

About cakephp's performance

2007-07-10 Thread hi and hello
Every time when the user wisite a url like /controller/action/, and the cakephp will load the models and components declared in this controller, which might be improvident because not every visit need to loac the heavy models and components class. For example, the url /blog/create/ ,when GET

Does cakephp support transaction now?

2007-07-08 Thread hi and hello
In my application I sometimes have more than one database actions in an action, but when read the cakephp's docs I found little about this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

My view cache do not work?

2007-07-04 Thread hi and hello
At core.php I have: define('CACHE_CHECK', true); At the controller file I have: var $helpers = array('Html', 'Form', 'Javascript', 'Ajax', 'Cache' ); var $cacheAction = true; But when I visit the url to ca

Re: How can I get the version of cakephp used in my project?

2007-07-04 Thread hi and hello
Yes, and I found it at cake/config/config.php. On 7月4日, 下午2时31分, francky06l <[EMAIL PROTECTED]> wrote: > Configure::version() > > On Jul 4, 7:48 am, hi and hello <[EMAIL PROTECTED]> wrote: > > > > >thanks- 隐藏被引用文字 - > > - 显示引用的文字 - --~--~-

How can I get the version of cakephp used in my project?

2007-07-03 Thread hi and hello
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 op

Re: How can I get the execution time of PHP code and DB access?

2007-06-28 Thread hi and hello
Thank you, but there still exists a problem . Because I use AJAX in my website and return the data as JSON format, so I can not let cakephp append the debug infor to the response. And I want to read the the infor at a console or a log file? Can I do it? On 6月28日, 下午2时21分, Geoff Ford <[EM

How can I get the execution time of PHP code and DB access?

2007-06-27 Thread hi and hello
I am using cakephp to build a website and at last I found the performance is not very well. So I want to know if it exits a tool by which I can get the execution time of PHP code and DB access? Or how can I write the tool ? thanks very much