Re: Can you convert html code to cakephp code

2013-06-10 Thread jeet bajaj
Check this. with little bit of updates it will work for you. Form->create('Model', array('method'=>'get', 'class'=>'cmxform', 'id'=>'commentForm')); echo ''; $rows = array(); $rows[] = array( $this->form->label('Email:'), $this->f

Re: Can somebody link an example of using Amazon S3?

2013-06-10 Thread Gaurav Matta
Follow and comment if you like http://itfeast.blogspot.in/2013/05/upload-files-to-amazon-s3simple-storage.html?m=1 Hell there! I'm new to Cake, and I'm working on a download site. I have it in my mind to use Amazon S3. Can any of you link me to fairly clear examples of implementing this? I'm sure

Missing View

2013-06-10 Thread Safa Ksouri
salut, je suis débutante en cakephp , en suivant le tuto de blog je me bloque au niveau de création de view ; *Error: * The view for *PostsController::**index()* was not found. *Error: * Confirm you have created the file: /home/safa/workspace/cakephp/app/View/Posts/index.ctp *malgré que c'est c

Re: removing in Form->end closing, in cakephp 1.3

2013-06-10 Thread glennq
i found by this way, $this->Form->end(array('label' => 'Send', 'div' => FALSE)); On Friday, May 10, 2013 12:39:13 PM UTC+8, Chris wrote: > > hi guys,... how can I removing in Form->end closing, in cakephp 1.3 > ? > it works with 'div' => false on input and select fields but not on > Form->end

missing not-null column in SQL

2013-06-10 Thread Ming Zhu
I have been working on ASP.NET for a long time. I am new to PHP, CakePHP and MySQL. I just started to work on a CakePHP project using CakePHP 1.3.7. ASP.NET also has MVC, so this concept is not completely new to me. The problem I met is in a table that there is a NOT NULL column. But the UI

Cannot access empty property in View.php on line 854

2013-06-10 Thread alfredo davila
I can´t stop dealing with this problem in my cakephp :S I think it´s problem of the Model or the View. Can anyone help me? :S -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Go

bootstrap calendar javascript alert in cakephp

2013-06-10 Thread Lau Yi Chen
well, i am try to use this calendar in cakephp and it works. https://github.com/ahmontero/bootstrap-calendar I am a very new and never learn jquery before. ok now i wish to did some modification on this calendar source. As u see inside the demo.html got that js code. .on('onEvent', function(e

Can somebody link an example of using Amazon S3?

2013-06-10 Thread Baordog
Hell there! I'm new to Cake, and I'm working on a download site. I have it in my mind to use Amazon S3. Can any of you link me to fairly clear examples of implementing this? I'm sure there's a great explanation of how this is done, but a few examples or a step by step explanation would clear u

bootstrap calendar javascript alert in cakephp

2013-06-10 Thread Lau Yi Chen
well, i am try to use this calendar in cakephp and it works. https://github.com/ahmontero/bootstrap-calendar I am a very new and never learnt jquery before. ok now i wish to did some modification on this calendar source. As u see inside the demo.html got that js code. .on('onEvent', function(even

Can you convert html code to cakephp code

2013-06-10 Thread mao aronraingsey
Name:

How to call a postgresql stored procedure with cakephp

2013-06-10 Thread victor carcamo
Hi, i'm suing cakePhp i need to call l a postgresql stored procedure with cakephp, somebody ? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To

New field not being read

2013-06-10 Thread Reuben
Hi I've put a new field on a table, and it's not being read as a part of a read(null, $id) operation. I have made sure I have delete the cache, and I can definitely see that the new field is there. Additionally, if I do a read(array('id', 'notify_email'), $id), the new field (which is notify_

Writing data and previous reads

2013-06-10 Thread Reuben
Hi I'm having trouble with reading some data, and I think I sort why a particular operation is happening at a technical level, but I'm left wondering if it's the right behaviour. Here's what I'm doing. In one operation, I'm doing a read of a model for all fields $this->Model->read(null,

Re: Doubt regarding routing.

2013-06-10 Thread Gaurav Matta
Can you provide a sample of urls which are not converting... i did that already it seems to work too but only at some places...i want photo/:action to be blocked completely On Mon, Jun 10, 2013 at 7:13 PM, Gaurav Matta wrote: > In routes.php > > On 10-Jun-2013 6:17 PM, "Nikunj Amipara" wrote: >

Re: Doubt regarding routing.

2013-06-10 Thread Nikunj Amipara
i did that already it seems to work too but only at some places...i want photo/:action to be blocked completely On Mon, Jun 10, 2013 at 7:13 PM, Gaurav Matta wrote: > In routes.php > > On 10-Jun-2013 6:17 PM, "Nikunj Amipara" wrote: > > > > hi all, > > > > i have doubt regarding routing... > >

Re: Models indirect association, how to retrieve data?

2013-06-10 Thread lowpass
In your model (or AppModel to make it global): public $actsAs = array( 'Containable' ); public function getClass($id) { return $this->find( 'first', array( 'conditions' => array( $this->alias.'.'.$this->primaryKey => $id ), 'contain' => array( 'University' => array( // must have direct associat

Re: Cakephp 1.3 Edit Action Not Populating Fields

2013-06-10 Thread lowpass
Your form is submitting to the add action. On Fri, Jun 7, 2013 at 12:45 PM, Karl Smith wrote: > I'm having a problem with my edit action and Im not sure what my problem > is but my fields are not populating. In my model I have a function that > retrieves 3 records based on an id, and I call tha

Is data sanitization required in setting $this->Model->id = $id?

2013-06-10 Thread John
Say I get the $id from a url, /controller/action/id and want to use it to do a $this->Model->id = $id. Is it safe to pass it as it's coming in or do I need to call Sanitize::cleanfirst? The book mentions that if you use cake's ORM you're safe, but I couldn't follow the code enough to find out

Re: Doubt regarding routing.

2013-06-10 Thread Gaurav Matta
In routes.php On 10-Jun-2013 6:17 PM, "Nikunj Amipara" wrote: > > hi all, > > i have doubt regarding routing... > i want to replace > > url : /photo/* with /image/* everywhere basically i want name of controller to be replaced.. in addition /photo url should no longer work. or it should

Re: Doubt regarding routing.

2013-06-10 Thread Gaurav Matta
Try Router::connect('/image/:action',array('controller'=>'photo')) On 10-Jun-2013 6:17 PM, "Nikunj Amipara" wrote: > > hi all, > > i have doubt regarding routing... > i want to replace > > url : /photo/* with /image/* everywhere basically i want name of controller to be replaced.. in ad

Doubt regarding routing.

2013-06-10 Thread Nikunj Amipara
hi all, i have doubt regarding routing... i want to replace url : /photo/* with /image/* everywhere basically i want name of controller to be replaced.. in addition /photo url should no longer work. or it should be renamed and redirected to /image/* is it possible... if yes pl