Re: Change all delete() of scaffolding

2006-06-21 Thread DJ Spark

 easyphp is a 'real' one.
 quite simple, easily configurable.. it's just a standard
PHP/APACHE/MySQL box, with some shortcuts ... and a VERY simple
install :)
 btw, most hosts are still using apache1.3 , much more stable and less
resource intensive... so..

 spark

On 6/21/06, Pascal PORTIER <[EMAIL PROTECTED]> wrote:
> Thank you for you notice.
> I am thinking of using a real web server to create my apps.
> I would like to use Apache2, PHP5, MySQL 4 or 5...
>
> 2006/6/21, DJ Spark < [EMAIL PROTECTED]>:
> >
>
>  just a tip, atkati: easyphp uses PHP 4.3.1
>  CakePHP minimum is 4.3.2 , I suggest you upgrade that. I ran in a few
> troubles until realized that :)
>
>  spark
>
> On 6/21/06, Atkati <[EMAIL PROTECTED]> wrote:
> >
> > WONDERFUL !
> >
> > 1TeraThanx x 1000 !
> >
> > Yabadabadouu !
> >
> >
> > >
> >
>
>
> --
> [web] http://synapsisdi.com.br
> [livesets] http://djspark.com.br
>
>
>
>
>
>
>  >
>


-- 
[web] http://synapsisdi.com.br
[livesets] http://djspark.com.br

--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Change all delete() of scaffolding

2006-06-21 Thread Pascal PORTIER
Thank you for you notice.I am thinking of using a real web server to create my apps.I would like to use Apache2, PHP5, MySQL 4 or 5...2006/6/21, DJ Spark <
[EMAIL PROTECTED]>: just a tip, atkati: easyphp uses PHP 4.3.1 CakePHP minimum is 
4.3.2 , I suggest you upgrade that. I ran in a fewtroubles until realized that :) sparkOn 6/21/06, Atkati <[EMAIL PROTECTED]> wrote:>> WONDERFUL !
>> 1TeraThanx x 1000 !>> Yabadabadouu !>>> >>--[web] http://synapsisdi.com.br[livesets] 
http://djspark.com.br

--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: Change all delete() of scaffolding

2006-06-21 Thread DJ Spark

 just a tip, atkati: easyphp uses PHP 4.3.1
 CakePHP minimum is 4.3.2 , I suggest you upgrade that. I ran in a few
troubles until realized that :)

 spark

On 6/21/06, Atkati <[EMAIL PROTECTED]> wrote:
>
> WONDERFUL !
>
> 1TeraThanx x 1000 !
>
> Yabadabadouu !
>
>
> >
>


-- 
[web] http://synapsisdi.com.br
[livesets] http://djspark.com.br

--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Change all delete() of scaffolding

2006-06-21 Thread Atkati

WONDERFUL !

1TeraThanx x 1000 !

Yabadabadouu !


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Change all delete() of scaffolding

2006-06-21 Thread gwoo

Try this.

> class AppController extends Controller {
>
>   function delete($id){
>   $this->{$this->modelClass}->del($id);
>   $this->redirect ($this->viewPath.'/',204);
>   }
>   
> }
>

--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Change all delete() of scaffolding

2006-06-21 Thread Atkati

Still having error

Fatal error: Call to a member function on a non-object in
d:\easyphp1-7\www\desvoys\admin\app\app_controller.php on line 6

with :

class AppController extends Controller {

function delete($id){
$this->modelClass->del($id);
$this->redirect (strtolower($this->modelClass).'/',204);
}

}


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Change all delete() of scaffolding

2006-06-21 Thread gwoo

in AppController you want $this->modelClass

--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Change all delete() of scaffolding

2006-06-21 Thread Atkati

Sorry, i was talking about my app_controller.php, of course !


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Change all delete() of scaffolding

2006-06-21 Thread Atkati

Thanx for you answer... Very useful.

I have tried this in my own app_model.php for testing :


class AppController extends Controller {

function delete($id){
$this->modelKey->del($id);
$this->redirect (strtolower($this->name).'/',204);
}

}


But i get an error with the line "$this->modelKey->del($id);" and i
think the next line won't work.
How to get the model name to use it in my global controller ?
I don't know how to get the value here...


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Change all delete() of scaffolding

2006-06-20 Thread gwoo

the delete method of scaffold calls Model::del()
So, you should be able to create you own AppModel in /app/app_model.php
and put the del() method in there.


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Change all delete() of scaffolding

2006-06-20 Thread Atkati

Hi,

I would like to change the delete() action of the scaffold with my own
action.

I have a problem with running cake for my app, so when it uses the
delete() action from the scaffold, it doesn't make what i want him to.

So, the fastest answer for me is to change the delete() action in all
my controllers.

Where do i have to put my new delete() ?
What code do i have to write to make it work everywhere ?

Sorry for my bad english... :P


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---