Re: Controller without association with a model

2006-07-10 Thread eDevil

Thanks for the help guys. Both of them work.

var $uses = array();  works too, btw.


--~--~-~--~~~---~--~~
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: Controller without association with a model

2006-07-10 Thread Ryan Petrain
I believe that you define a variable $uses in the controller and set it equal to nothing:var $uses = "";I am not sure but I think that I read that in another post.
On 7/10/06, eDevil <[EMAIL PROTECTED]> wrote:
I want to create an Installer for the application I built.The first page collects information (user and database), when the formis submitted an SQL is dumped into the server and the second page willconfirm the installation (or show an error).
The problem is that the setup application (setup_controller.php) doesntneed to have any models assciated with it (or does it?) and I cantfigure out how to do this.Can anyone help? Thanks in advance.

--~--~-~--~~~---~--~~
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: Controller without association with a model

2006-07-10 Thread John Zimmerman [gmail]
Define a class variable called uses at the top of your setup controller class called 'uses' and set it to 'null'i.e.class SetupController extends AppController{    var $name = 'Setup';    var $uses = null;
    //actions below here}After that it will not look for a model.On 7/10/06, eDevil <[EMAIL PROTECTED]
> wrote:I want to create an Installer for the application I built.
The first page collects information (user and database), when the formis submitted an SQL is dumped into the server and the second page willconfirm the installation (or show an error).The problem is that the setup application (setup_controller.php) doesnt
need to have any models assciated with it (or does it?) and I cantfigure out how to do this.Can anyone help? Thanks in advance.

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Controller without association with a model

2006-07-10 Thread eDevil

I want to create an Installer for the application I built.

The first page collects information (user and database), when the form
is submitted an SQL is dumped into the server and the second page will
confirm the installation (or show an error).

The problem is that the setup application (setup_controller.php) doesnt
need to have any models assciated with it (or does it?) and I cant
figure out how to do this.

Can anyone help? Thanks in advance.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---