Re: Using Cake models from non-cake project

2009-08-31 Thread tbirand
Hello Martin, Thank you for the answer, indeed that approach worked brilliantly. $app = new App(); On Aug 31, 10:04 am, Martin Westin wrote: > It really is as simple as Felix writes. It is just that his post is > from 2006 and a few details have changed. > > I just tried this on 1.2 stable and

Re: Using Cake models from non-cake project

2009-08-31 Thread Martin Westin
It really is as simple as Felix writes. It is just that his post is from 2006 and a few details have changed. I just tried this on 1.2 stable and it does work: $_GET['url'] = 'favicon.ico'; require_once('path_to_app_dir'.DS.'webroot'.DS.'index.php'); // and then for example: $PostModel =& Class

Re: Using Cake models from non-cake project

2009-08-30 Thread tbirand
Hi Thiago, thanks for the answer. Unfortunately I don't think that works either, as the shells aren't really external scripts and I don't see a way of including them in order to make use of the models. Any other suggestions? On Aug 29, 9:06 pm, Thiago Nuic Vidigal wrote: > I dont know if it will

Re: Using Cake models from non-cake project

2009-08-29 Thread Thiago Nuic Vidigal
I dont know if it will do what you want, but you can create your own cake shell as described i the book... On Sat, Aug 29, 2009 at 1:25 PM, tbirand wrote: > > Hello all, > > I've just started working with CakePHP a few days ago, and I really > like it. I develop Ruby on Rails apps as well, but

Using Cake models from non-cake project

2009-08-29 Thread tbirand
Hello all, I've just started working with CakePHP a few days ago, and I really like it. I develop Ruby on Rails apps as well, but having a similar approach under PHP is most welcome since most of my clients have PHP enabled hosts and I'm a bit more familiar with the language. That being said, I'