Can you take a peek at the query that is getting run? That should give clues about how to solve this.
Here's a link that might help you get to last query: http://stackoverflow.com/questions/2521225/cakephp-get-last-query-run Regards, Don On May 17, 7:27 am, tm <[email protected]> wrote: > Hi, > > I run cakephp on a linux server with freeTds. > i connect to a mssql-server. The connection is ok. > > I created a model "Project": > class Project extends AppModel { > var $name = 'Project'; > var $useTable='Table_Projekte'; > var $primaryKey = 'ProjektID'; > > } > > Then I created a Controller: > class ProjectsController extends AppController { > var $name="Projects"; > > public function index() { > $projects = $this->Project->find('all'); > $this->set('projects', $projects); > } > > } > > The Problem is, that in the view the projects-array is empty. When I > define a custom > query in the controller with query("Select column1, column2 from > TableName") i get the data, > but on the other side i will loose the cool cakephp > characteristics ... > > I also created a Person Model and Controller in the same way with no > problems ... > > Thank you for help! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
