Re: IBM DB2 and CakePHP

2010-06-17 Thread Kareem Sabri
Has cake dropped native support for DB2 in version 1.3? On Jun 17, 12:38 pm, Kareem Sabri wrote: > Upon checking the dbo_db2.php doesn't exist - ie. no driver. Nor odbc. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questio

Re: IBM DB2 and CakePHP

2010-06-17 Thread Kareem Sabri
Upon checking the dbo_db2.php doesn't exist - ie. no driver. Nor odbc. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this grou

IBM DB2 and CakePHP

2010-06-17 Thread Kareem Sabri
Hello, I get the following message when attempting to connect to DB2 Your database configuration file is present. Fatal error: Call to a member function isConnected() on a non-object in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs \uigr2\cake\libs\view\pages\home.ctp on line 84

Hundreds of empty rows being created

2010-06-03 Thread Kareem Sabri
Hello, I have a very weird issue. As the subject line says, in one of my models I get empty rows being inserted into the database. I've put some logging into beforeSave() and haven't been able to get too much info. I saw records being saved with ID NULL - which I believe is how it should be when

Themes and Languages

2010-03-22 Thread Kareem Sabri
Hello, I have multiple languages on my site (right now just English and French). English is the default layouts and views. French is a theme called 'french'. Sometimes I apply other themes for clients, so I create themes and just override the views I want. The problem is, for a french language sit

Re: No SQL Dump when debug set to 2

2010-03-09 Thread Kareem Sabri
gt; On Mar 9, 7:23 pm, Graham Weldon wrote: > >> On 10/03/2010, at 11:13 AM, Kareem Sabri wrote: > > >> > Hello, > > >> > In production mode, occasionally I want to debug something in my > >> > Content Management System. > > >>

Re: No SQL Dump when debug set to 2

2010-03-09 Thread Kareem Sabri
Nope, still on 1.2 On Mar 9, 7:23 pm, Graham Weldon wrote: > On 10/03/2010, at 11:13 AM, Kareem Sabri wrote: > > > > > > > Hello, > > > In production mode, occasionally I want to debug something in my > > Content Management System. > > > So I ad

No SQL Dump when debug set to 2

2010-03-09 Thread Kareem Sabri
Hello, In production mode, occasionally I want to debug something in my Content Management System. So I add Configure::write('debug', 2); in my controller code. I get no SQL info. The table that holds it is appended to the layout, but it's empty except for 0 query took 0 ms (despite that many qu

Re: Can't configure Memcached properly

2010-02-16 Thread Kareem Sabri
(that should use file) > > I have this configuration in a prod environment (using several memcached > servers) and it works fine. > > Regards, > > Pablo Viojo > pvi...@gmail.comhttp://pviojo.net > > ¿Que necesitas?http://www.needish.com > > > > On Tue, Feb 16, 2010

Re: Can't configure Memcached properly

2010-02-16 Thread Kareem Sabri
t;  app/tmp/cache/persistent and app/tmp/cache/views exists and has read/write > privileges > > Regards > > Pablo Viojo > pvi...@gmail.comhttp://pviojo.net > > ¿Que necesitas?http://www.needish.com > > > > On Fri, Feb 12, 2010 at 3:08 PM, Kareem Sab

Re: Can't configure Memcached properly

2010-02-12 Thread Kareem Sabri
ion'=> 30, //[optional] >               'servers' => array('192.168.1.11:11211 '), >               'compress' => false, >       )); > > use your server IP > > On Feb 11, 11:43 pm, Kareem Sabri wrote: > > > > > Hello,

Can't configure Memcached properly

2010-02-11 Thread Kareem Sabri
Hello, Hopefully someone can help me out here. I have installed Memcached and all its dependencies. I have verified it is running correctly and I can connect via port 11211 (in command line, not with cake) My core.config is the default: Cache::config('default', array(

Re: how to call Model1->find("all") from Model2 Controller

2010-01-16 Thread Kareem Sabri
$this->loadModel('Project'); $this->Project->find('all'); On Jan 16, 2:13 am, codef0rmer wrote: > I want to call Project->find("all") from UserController. I tried with > $this->Product->find("all") as well as Product::find("all"). but no > luck > > Is there any other option? Check out the new Cak

Different expiry values for different sessions

2010-01-15 Thread Kareem Sabri
Hello, I'd like to have different sessions have different lifetimes. For general users I'd like the sessions to persist for days, but for Admin users I'd like the sessions to expire when the browser closes. Is this possible? Thanks in advance. Check out the new CakePHP Questions site http://cakeqs

Re: Associations to other models

2010-01-13 Thread Kareem Sabri
ion. > Enjoy, >    John > > On Jan 13, 2:35 am, Kareem Sabri wrote: > > > > > Hello, > > > I have a model called sites. A Site hasAndBelongToMany Entries. An > > Entry belongsTo one Type and one Saving. > > > So, I have an entries_sites table, and an en

Associations to other models

2010-01-12 Thread Kareem Sabri
Hello, I have a model called sites. A Site hasAndBelongToMany Entries. An Entry belongsTo one Type and one Saving. So, I have an entries_sites table, and an entry has a type_id and a saving_id I want to fetch all Entries that belong to a Site, and also get the associated Type and Saving for each

CakePHP and subdirectories

2009-12-18 Thread Kareem Sabri
Hello, I'm trying to rebuild my application using CakePHP, but I have a relatively unique issue (I think). I need to be able to create numerous subdirectories and have them all inherit the same functionality as the webroot. So, for example, I have a class Users. Then I can go to http://mydomain.