Re: Anyone care to help with Media Temple dv?

2010-11-02 Thread td-nathan
Try the .htaccess first, next I'd look at php.ini settings like safemode or basedir restrictions depending on where you placed the cake install relative to httpdocs -Nathan On Nov 2, 7:25 pm, "Dave Maharaj" wrote: > I had my site on Media Temple gs service no problem. Now moving it to dv and > I

Re: Newbie trying to pass xml object

2010-11-02 Thread sipiatti
did you debugged $modules? the message says it is not an object so does not have methods. something wrong there... Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google G

Re: repeated URL

2010-11-02 Thread matsakaw
i have these : 1. users_controller.php class UsersController extends AppController { /* 01 http://book.cakephp.org/view/52/name The $name attribute should be set to the name of the controller. Usually this is just the plural form of the primary model the controller uses. It will be singularized,

Can i send email through mysql/cakephp when the users are offline?

2010-11-02 Thread Jerin K Alexander
My objective is to send a mail when the users are offline. It depends on a particular row or value inserted in the table. if such an option provide by cake or mysql,please help me.. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. Y

Re: repeated URL

2010-11-02 Thread matsakaw
thanks a lot cricket! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 uns

Anyone care to help with Media Temple dv?

2010-11-02 Thread Dave Maharaj
I had my site on Media Temple gs service no problem. Now moving it to dv and I got nothing. Uploaded everything but no htaccess file appears so I think that might be part of the problem. Get no error message other than 500 server error. Any ideas / help would be great as I cant seem to find any

Re: Basic issue with HABTM

2010-11-02 Thread Fernando Barrocal
Some updates on here (paste bins are used to delete my post even when I ask to mantain) /* Tables /* users people contacts -- 1<--->1 n<--->n -- id id id username user_id phone f_na

Re: Do not show flash message when a url redirects to the login page

2010-11-02 Thread Fernando Barrocal
Set your layout to recognize when on the login page and encapsulate your flash message on a if based on this condition! On Tue, Nov 2, 2010 at 08:20, alberto wrote: > Hi, > I was looking how to do not show flash message when a url redirects to > the login page > > > Thanks in advance! > > Albert

Basic issue with HABTM

2010-11-02 Thread Fernando Barrocal
Hi guys, I am having some trouble with pretty basic things but it took me precious hours today, and I decided to ask for some light ... I have this config that I am trying to make work: http://bin.cakephp.org/view/2004163346 I baked everything with cake bake and I need a way to proper save all

Re: Acl and bindNode

2010-11-02 Thread Chris.
I haven't been able to get it to work as advertised. I believe that (short of the documentation being wrong), it is a bug. Chris. On Oct 29, 5:23 am, Jeremy Burns | Class Outfit wrote: > Anybody else got any more ideas on this? Anyone using it with success? > > Jeremy Burns > Class Outfit > > j

Re: Error on test.php page, missing arguments.php on Simple Test

2010-11-02 Thread huoxito
Hey kadanis thanks for helping with those links, aprecciate it,I downloaded the 1.0.1 version and after that the arguments.php file itself and now the test.php page looks ok! next time i get a problem i'll remind going to cakephp lighthouse should be really helpful http://mark-story.com/posts/vie

Re: Value from select to controller

2010-11-02 Thread cricket
On Tue, Nov 2, 2010 at 10:23 AM, Antar wrote: > Hi > > May seem very basic but I have a login form that expects a username & > password and a location. The location is chosen from a select and I > want to write the selected location to the session data for the user. > I need in passing the chosen

Re: Standard mechanism for telling why a record hasn't been deleted?

2010-11-02 Thread cricket
On Tue, Nov 2, 2010 at 6:31 PM, alaxos wrote: > Hi, > > Personally for these kinds of errors, I prefer to rely on the errors > raised by the database. > > However, AFAIK, CakePHP does not return these errors automatically. I > found a solution, but it uses a very discussed technique: accessing > t

Re: Standard mechanism for telling why a record hasn't been deleted?

2010-11-02 Thread alaxos
Hi, Personally for these kinds of errors, I prefer to rely on the errors raised by the database. However, AFAIK, CakePHP does not return these errors automatically. I found a solution, but it uses a very discussed technique: accessing the Session in the model layer. It could also use a model vari

Re: empty respose after formular was sent

2010-11-02 Thread rethab
I sorry for my one man conversation, but I hope this is gonna be my last post and will probably help you. I noticed some similar behavior like this bug: https://trac.cakephp.org/ticket/5489 Actually, the bug described there happens when submitting a file, which I did not do. But as for the simila

Re: empty respose after formular was sent

2010-11-02 Thread rethab
Edit: When I submit the form, I get an empty page, but with status code 200. Further, I added debug messages to beforeFilter, afterFilter and beforeRender of which only the beforeFilter debbug-msg appeared in the output. Regards, rethab On Nov 2, 9:43 pm, rethab wrote: > Hello > > I have a form

empty respose after formular was sent

2010-11-02 Thread rethab
Hello I have a form for my model 'Student'. So I have this page with the url 'students/add' to add new ones. It all works unless I submit the form. I checked the params via $this->params in beforeRender and the URL seemed to be the same when I submitted the form as well as when just displaying the

Value from select to controller

2010-11-02 Thread Antar
Hi May seem very basic but I have a login form that expects a username & password and a location. The location is chosen from a select and I want to write the selected location to the session data for the user. I need in passing the chosen location id from the form to the controller. Thanks Anta

Re: Standard mechanism for telling why a record hasn't been deleted?

2010-11-02 Thread cricket
On Tue, Nov 2, 2010 at 10:09 AM, psybear83 wrote: > Hi all > > Is there a standard mechanism for telling why a record hasn't been > deleted? > > When a record isn't deleted, it just tells "Xxx was not deleted", but > without any reason. So for example, when I'm creating a > beforeDelete(..) hook t

Re: not following naming conventions

2010-11-02 Thread cricket
On Tue, Nov 2, 2010 at 5:34 AM, grandioso wrote: > It still doesn't show me the error message I set up in the model :( > > I only get the fail message I specified in the controller. > And in addition, it doesn't show the already-posted data, just the > clear form which suck really hard. My guess

Re: Newbie trying to pass xml object

2010-11-02 Thread cricket
On Tue, Nov 2, 2010 at 12:20 AM, mochaman wrote: > Let me start by saying that I am very new to php and cakephp.  I went > through the blog tutorial (:-)) and now am facing a problem which I > believe is something simple, but can't seem to get it to work.  I have > an xml file which I am reading i

Re: repeated URL

2010-11-02 Thread cricket
On Tue, Nov 2, 2010 at 9:46 AM, matsakaw wrote: > >> What does your Auth config look like? > What do you mean? What info on Auth config should i post? You need to configure Auth in AppController::beforeFilter() http://book.cakephp.org/view/1250/Authentication >> What does your login have in it?

RE: Control user ownership and restrict content access?

2010-11-02 Thread Dave Maharaj
$record = $this->Model->find('first', array('conditions' => array('Record.user_id' => $this->Auth->User('id'), 'Record.id' => 5))); So your getting a specific record based on the Auth user and the requested record If(!$record) { //sorry not yours } If($record) { //there you go as requested }

Control user ownership and restrict content access?

2010-11-02 Thread mpeshev
I've been using Auth and ACL in their pure form (and obAuth as well) but I'm interested if there is some flexibility in content access. If we don't do any specific manipulation, edit/delete methods have no restrictions user wise. If we do have some tables f.e. orders, accounts, tickets etc that bel

Re: Error on test.php page, missing arguments.php on Simple Test

2010-11-02 Thread Mike Karthauser
On Tue, November 2, 2010 1:41 pm, kadanis wrote: > A bit of further research and I've found a post on the CakePHP bug > reports regarding this. The CakePHP dev team know about the issue, > it's to do with a change in SimpleTest from using $this->ClassName() > to $this->__construct(), among other

Standard mechanism for telling why a record hasn't been deleted?

2010-11-02 Thread psybear83
Hi all Is there a standard mechanism for telling why a record hasn't been deleted? When a record isn't deleted, it just tells "Xxx was not deleted", but without any reason. So for example, when I'm creating a beforeDelete(..) hook that prevents the record from deletion, how should I let the user

Re: Select Box Values

2010-11-02 Thread Briko03
That workedTHANKS! On Nov 2, 9:33 am, euromark wrote: > try array('location', 'location') then :) > > On 2 Nov., 14:04, Briko03 wrote: > > > Just to clarify, > > I want location displayed and location submitted. Should I still do > > two columns? > > > On Nov 2, 8:59 am, Jeremy Burns | Class

Re: repeated URL

2010-11-02 Thread matsakaw
> What does your Auth config look like? What do you mean? What info on Auth config should i post? > What does your login have in it? users_controller.php has this function. nothing more than what the default cakePHP login has. asks for username and password. function login() { // http:

Re: Error on test.php page, missing arguments.php on Simple Test

2010-11-02 Thread kadanis
A bit of further research and I've found a post on the CakePHP bug reports regarding this. The CakePHP dev team know about the issue, it's to do with a change in SimpleTest from using $this->ClassName() to $this->__construct(), among other things. As the 1.1alpha version of SimpleTest is still no

Re: Select Box Values

2010-11-02 Thread euromark
try array('location', 'location') then :) On 2 Nov., 14:04, Briko03 wrote: > Just to clarify, > I want location displayed and location submitted. Should I still do > two columns? > > On Nov 2, 8:59 am, Jeremy Burns | Class Outfit > > > > > > > > wrote: > > In your find('list') function you have

Re: Select Box Values

2010-11-02 Thread Briko03
Just to clarify, I want location displayed and location submitted. Should I still do two columns? On Nov 2, 8:59 am, Jeremy Burns | Class Outfit wrote: > In your find('list') function you have specified the fields to use, and you > have only given one field; 'location'. Try changing that to: > a

Re: Select Box Values

2010-11-02 Thread Jeremy Burns | Class Outfit
In your find('list') function you have specified the fields to use, and you have only given one field; 'location'. Try changing that to: array('id', 'location') so that you have two columns; id & location. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 2 No

Select Box Values

2010-11-02 Thread Briko03
I have a form that has a select box: echo $form->input('location',array('type'=>'select','options'=> $locations)); The form action populates the select box with locations: $this->set('locations',$this->Result->find('list',array('fields' => array('location'),'group'=>array('location'; However

Re: Error on test.php page, missing arguments.php on Simple Test

2010-11-02 Thread Mike Karthauser
hi kadanis On Tue, November 2, 2010 12:15 pm, kadanis wrote: > I had this problem too. A little searching and reading up on the > SimpleTest bug tracker and I found out the following. > > This isn't a Cake issue, its a SimpleTest one. arguments.php is a > file called internally in the SimpleTest

Re: Error on test.php page, missing arguments.php on Simple Test

2010-11-02 Thread kadanis
I had this problem too. A little searching and reading up on the SimpleTest bug tracker and I found out the following. This isn't a Cake issue, its a SimpleTest one. arguments.php is a file called internally in the SimpleTest code and it isn't in the download for 1.1 alpha or 1.0.1. There is an

Newbie trying to pass xml object

2010-11-02 Thread mochaman
Let me start by saying that I am very new to php and cakephp. I went through the blog tutorial (:-)) and now am facing a problem which I believe is something simple, but can't seem to get it to work. I have an xml file which I am reading into my view then upon selection of one of the nodes, call

How can let Cakephp don't clear view cache when related models changed?

2010-11-02 Thread Joseph
How can let Cakephp don't clear view cache when related models changed? For example, I have a Food model and the follow views those use the Food model: /foods/index.ctp /foods/list.ctp /foods/view.ctp I turn on view cache setting for all the three actions. When someone request the url /foods/in

Do not show flash message when a url redirects to the login page

2010-11-02 Thread alberto
Hi, I was looking how to do not show flash message when a url redirects to the login page Thanks in advance! Alberto Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Goo

Re: not following naming conventions

2010-11-02 Thread euromark
how do you set the error message? you need to show us your controller code for this action otherwise we cannot help you On 2 Nov., 10:34, grandioso wrote: > It still doesn't show me the error message I set up in the model :( > > I only get the fail message I specified in the controller. > And in

Subclassing TestSuite: put a class "BetterTestSuite" between MyGroupTest and TestSuite does not work?

2010-11-02 Thread psybear83
Hi everybody I'm having the following test group: class MyGroupTest extends TestSuite { function __construct() { TestManager::addTestFile($this, APP_TEST_CASES.DS.'views'.DS.'applications'.DS.'bla1.test.php'); TestManager::addTestFile($this, APP_TEST_CASES.DS.'views'.DS.'applications'.D

Re: not following naming conventions

2010-11-02 Thread grandioso
It still doesn't show me the error message I set up in the model :( I only get the fail message I specified in the controller. And in addition, it doesn't show the already-posted data, just the clear form which suck really hard. Check out the new CakePHP Questions site http://cakeqs.org and help

Re: find all with at least one associated model

2010-11-02 Thread ohcibi
The easiest way would be to Use countercache and then just add post_count > 0 to conditions... if you cant zdf countercache for some reason you could also inner join the posts Table, which would leave all blogs that have no assocciated post... On 1 Nov., 18:29, Max D wrote: > Hi, > > i use cake 1

Re: Find most uses categories with a count?

2010-11-02 Thread Zaky Katalan-Ezra
If items is not unique you need to add 'group by' clause to the query. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this grou