Re: CakePHP with Sqlite3: How to connect to multiple sqlite file?

2015-11-04 Thread Banny Muth
I figure out how to deal with this problem. Please visit this link to see the answer: http://stackoverflow.com/questions/33491331/cakephp-with-sqlite3-how-to-connect-to-multiple-sqlite-file/33539027#33539027 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http

CakePHP with Sqlite3: How to connect to multiple sqlite file?

2015-11-03 Thread Banny Muth
I working on a project where user register and get a free online shop using CakePHP v2.6.5. I'm using shared hosting so i can't create Mysql database for them, So I use sqlite instead. Because I need to use it with Mobile App too. In my code I dynamically create sqlite file for user after

Re: CAKE 3.0 Tutorials using SQLITE

2015-09-22 Thread José Lorenzo
, jacmgr wrote: > > I ahev successfully installed cake and Mysql and completed the tutorials > for bookmarks and blog. Now I want to use SQlite. I can successfully > connect to my sqlite database. I tried using the same Mysql statements > found on page 13 of the cookbook that

Re: CAKE 3.0 Tutorials using SQLITE

2015-09-22 Thread 'jacmgr' via CakePHP
the following SQL is part of the tutorial. If I knew SQLITE better, I would have got it converted to SQlite correctly first time! When I get to PART 3 of the tutorial, I'll play with migrations; Thankyou. On Tuesday, September 22, 2015 at 3:24:50 AM UTC-4, José Lorenzo wrote: > If you

Re: CAKE 3.0 Tutorials using SQLITE

2015-09-21 Thread 'jacmgr' via CakePHP
This seems to work for the bookmarks app in SQLITE. ( Except for a cascadeing delete). CREATE TABLE "users" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "email" text NOT NULL, "password" text NOT NULL, "created" text, "modified"

CAKE 3.0 Tutorials using SQLITE

2015-09-20 Thread 'jacmgr' via CakePHP
I ahev successfully installed cake and Mysql and completed the tutorials for bookmarks and blog. Now I want to use SQlite. I can successfully connect to my sqlite database. I tried using the same Mysql statements found on page 13 of the cookbook that were successful with Mysql; however, I

Plugin with own sqlite database

2014-08-02 Thread Prashant Shah
Hi, How can I access a separate sqlite database within a plugin. Configuration for the database in not available in the main application database.php file. I want to select it dynamically inside the controller/model of the plugin. Regards. -- Like Us on FaceBook https://www.facebook.com

Re: CakePHP and Sqlite

2011-12-19 Thread NaeiKinDus
Hi there, Sorry for the thread hijacking / bump, but a little more information on this topic could help some people. Is there anything else to do/ check to get it working ? In my case, CakePHP cannot connect to the database, even though I have the PDO installed and configured to work with SQLite

Re: CakePHP and Sqlite

2011-12-19 Thread Matteo Landi
and configured to work with SQLite ( SQLite2). Sample of my database.php config: public $default = array( 'datasource' = 'Database/Sqlite', //'database' = '/var/www/app/Config/ db_name', 'database' = 'db_name', ); I tried both

Re: CakePHP and Sqlite

2011-11-14 Thread zer0_gravity
Thanks On Nov 13, 5:10 am, Matteo Landi landima...@gmail.com wrote: On Sun, Nov 13, 2011 at 5:25 AM, zer0_gravity zr...@hotmail.com wrote: Having trouble setting up CakePHP to work with Sqlite? could you explain or point me to where I can get info in rewards to this. thanks FWIW

Re: CakePHP and Sqlite

2011-11-14 Thread zer0_gravity
thanks On Nov 14, 9:58 am, zer0_gravity zr...@hotmail.com wrote: Thanks On Nov 13, 5:10 am, Matteo Landi landima...@gmail.com wrote: On Sun, Nov 13, 2011 at 5:25 AM, zer0_gravity zr...@hotmail.com wrote: Having trouble setting up CakePHP to work with Sqlite? could you explain

Re: CakePHP and Sqlite

2011-11-13 Thread Matteo Landi
On Sun, Nov 13, 2011 at 5:25 AM, zer0_gravity zr...@hotmail.com wrote: Having trouble setting up CakePHP to work with Sqlite? could you explain or point me to where I can get info in rewards to this. thanks FWIW a couple of weeks ago I wrote a mini-tutorial about how to setup a SQLite

CakePHP and Sqlite

2011-11-12 Thread zer0_gravity
Having trouble setting up CakePHP to work with Sqlite? could you explain or point me to where I can get info in rewards to this. thanks -- 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

Re: CakePHP and Sqlite

2011-11-12 Thread Graham Weldon
You just need to setup your Config/database.php to use Sqlite: For a file based database: public $default = array( 'datasource' = 'Database/Sqlite', 'database' = '/path/to/database_file' ); Or an in-memory database: public $default = array( 'datasource

Re: SQLite and database exceptions.

2011-10-20 Thread Matteo Landi
On Tue, Oct 18, 2011 at 7:07 PM, José Lorenzo jose@gmail.com wrote: Use try-catch. Alternatively, override save() in AppModel and tor try { parent::save()} catch (Exception $e) { //do something } For some reason I have not thought about that: thank you so much! Regards, Matteo --

Re: SQLite and database exceptions.

2011-10-18 Thread José Lorenzo
Use try-catch. Alternatively, override save() in AppModel and tor try { parent::save()} catch (Exception $e) { //do something } -- 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

SQLite and database exceptions.

2011-10-16 Thread Matteo Landi
Hi everybody, I'm developing a test application on top of a SQLite database. As you probably may know, by default *integrity checks* on SQLite database are disabled, and in order to activate them you need to issue the following query once the connection with the database has been enstablished

Does CakePHP support Sqlite-3 yet?

2009-05-29 Thread Russ
Can anyone tell me if CakePHP 1.2 supports Sqlite-3? If not, is it reasonable to think that a CakePHP 1.3 will provide that support? I haven't been able to find out much information on this subject. I guess most people aren't using Sqlite. I thought it would be a great database to use when

Re: Does CakePHP support Sqlite-3 yet?

2009-05-29 Thread Marcelo Andrade
On Fri, May 29, 2009 at 1:39 PM, Russ russ.chaf...@gmail.com wrote: Can anyone tell me if CakePHP 1.2 supports Sqlite-3? If not, is it reasonable to think that a CakePHP 1.3 will provide that support? Check this ticket. The attachment driver works fine. https://trac.cakephp.org/ticket/3003

Re: SQLite

2008-02-25 Thread Thiago Paes
, Feb 24, 2008 at 9:26 PM, Yocto [EMAIL PROTECTED] wrote: Where can I find a simple demo using SQLite? Thanks. -- Thiago Paes - www.thiagopaes.com.br - Linuxer: #224062 --~--~-~--~~~---~--~~ You

SQLite

2008-02-24 Thread Yocto
Where can I find a simple demo using SQLite? Thanks. --~--~-~--~~~---~--~~ 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

Re: SQLite

2008-02-24 Thread nate
You only need to configure your config/database.php, as follows: var $default = array( 'driver' = 'sqlite', 'database' = 'path/to/sqlite/file.db' ); If the file is relative to your app path, you may need to declare the constructor in the DATABASE_CONFIG class and use the path

how could i config cakephp with sqlite support

2008-02-18 Thread shotchen
94] my database.php config like below: class DATABASE_CONFIG { var $default = array( 'driver' = 'sqlite', 'connect' ='sqlite_popen', 'persistent' = false, 'host' = 'localhost', 'port' = '', 'login

Re: how could i config cakephp with sqlite support

2008-02-18 Thread Wayne Fay
): sqlite_popen() [function.sqlite-popen]: file is encrypted or is not a database [CORE\cake\libs\model\datasources\dbo \dbo_sqlite.php, line 94] my database.php config like below: class DATABASE_CONFIG { var $default = array( 'driver' = 'sqlite', 'connect

Re: how could i config cakephp with sqlite support

2008-02-18 Thread shotchen
thanks: i change the database to sqlite 2.85. it work well. so i think the cakephp can't support sqlite3 yet. by the way , the file of test.db is in the my public web folder ( webroot). On Feb 19, 6:24 am, Wayne Fay [EMAIL PROTECTED] wrote: Not positive, but you probably need to specify

Re: Configuration and usage of CakePHP with SQLite

2008-02-08 Thread chanh.ong
You should have a full path to your sqlite file otherwise it might not work. On Feb 7, 2:18 pm, Thomas [EMAIL PROTECTED] wrote: Hi folks, currently I am getting mad trying to bring CakePHP together with SQLite. Lets tell you my settings first: On a Windows system running Lighttpd with PHP

Configuration and usage of CakePHP with SQLite

2008-02-07 Thread Thomas
Hi folks, currently I am getting mad trying to bring CakePHP together with SQLite. Lets tell you my settings first: On a Windows system running Lighttpd with PHP 5.2.5 and unpacked cake_1.1.19.6305.tar.bz2. The php sqlite extension is uncommented and running. The default start website of CakePHP

Re: Sqlite Datatype Mismatch and SQL id auto_increment

2008-01-15 Thread Franklin Clark
), project_id INTEGER NOT NULL REFERENCES Projects(id), project_position INTEGER(5), PRIMARY KEY ('id') ); On Jan 14, 2008 11:36 PM, franklin [EMAIL PROTECTED] wrote: Hey guys and gals. Just switched from 1.1.19 to 1.2.0 and I'm having a little trouble with sqlite

Sqlite Datatype Mismatch and SQL id auto_increment

2008-01-15 Thread franklin
Hey guys and gals. Just switched from 1.1.19 to 1.2.0 and I'm having a little trouble with sqlite. Using the debugging tool I notice that when I submit a new entry into my 'Tasks' table: CREATE TABLE Tasks( id INTEGER SIGNED AUTO_INCREMENT, name TEXT, notes TEXT

Re: sqlite autoincrement row versus id NOT-autoincremented

2007-10-25 Thread [EMAIL PROTECTED]
This is something so obvious.. but it isn't written anywhere for cakePHP (actually there is very few documentation about using sqlite with cake), now these notes may help somebody else.. Thank you very much all for your rapid answer !! ps. and Adwin, I may keep your easiest method for next esoteric

sqlite autoincrement row versus id NOT-autoincremented

2007-10-24 Thread [EMAIL PROTECTED]
Hello all! I'm a re-newly cake user and I'm currently trying to make my cake using a SQLite database. I'll the 15minute blog tutorial as a reference. Now, once I get the database connected correctly (verified and working with bake script), I do a simple table : CREATE TABLE posts ( id INT

Re: sqlite autoincrement row versus id NOT-autoincremented

2007-10-24 Thread Olexandr Melnyk
You can have auto-incremented columns with SQLite. Define a single integer column as primary key and that should do the job. On 10/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello all! I'm a re-newly cake user and I'm currently trying to make my cake using a SQLite database. I'll

Re: sqlite autoincrement row versus id NOT-autoincremented

2007-10-24 Thread Wayne Fay
to the INTEGER PRIMARY KEY column. All these names are aliases for one another and work equally well in any context. Wayne On 10/24/07, Olexandr Melnyk [EMAIL PROTECTED] wrote: You can have auto-incremented columns with SQLite. Define a single integer column as primary key and that should do the job

Re: sqlite autoincrement row versus id NOT-autoincremented

2007-10-24 Thread Adwin Wijaya
forget to update the tcountr after you successfully inserting (update tcountr set ctrvalue = ctrvalue + 1 ) done :) On Oct 25, 4:47 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello all! I'm a re-newly cake user and I'm currently trying to make my cake using a SQLite database. I'll

Re: sqlite autoincrement row versus id NOT-autoincremented

2007-10-24 Thread Grant Cox
That's easy? Sounds like a ridiculously over-complex idea to me... On Oct 25, 2:01 pm, Adwin Wijaya [EMAIL PROTECTED] wrote: The easiest one :) create a table called counter with 2 field (or one,. deppend on you) create table tcounter :ctrtype nameoftable :ctrvalue 0 when you want to

Re: sqlite autoincrement row versus id NOT-autoincremented

2007-10-24 Thread Thiago Paes
In my applications, that i have using sqlite 2, add this solution: app_model: function getNextId() { $_max = $this-query(SELECT (MAX(id) + 1) AS id FROM {$this-table}); $max = $_max[0][0]['id']; return ceil($max); } and, in for example, photos_controller.php

Re: SQLite 3 support

2007-09-09 Thread AD7six
On Sep 8, 12:57 pm, Pisinho [EMAIL PROTECTED] wrote: HI, I find a good Editor for develop with PHP5 and Cake. What software are you use for Syntax Highlighting, Code Hint, Code Insight, automatic Code Completion ? Thanks. S.S. I really like thread hijacking... Goncalo, don't know but

Re: SQLite 3 support

2007-09-09 Thread [EMAIL PROTECTED]
Thanks AD7six. Here's the post again: Hi bakers. I'm starting to build a small database-driven website and was planning to use SQLite for the backend. For what i can see in the code and searching through this group only SQLite 2 support is available in Cake. I've searched Trac for SQLite 3

SQLite 3 support

2007-09-08 Thread [EMAIL PROTECTED]
Hi bakers. I'm starting to build a small database-driven website and was planning to use SQLite for the backend. For what i can see in the code and searching through this group only SQLite 2 support is available in Cake. I've searched Trac for SQLite 3 support related tickets and found ticket

Re: SQLite

2007-03-08 Thread AzenAlex
sorry about the spam... i'm a little new to the groups and i though my post weren't working so i kept re-submitting... I'm running php 5.1.6 on linux so i'm guessing sqlite is already there. is there some configuration i can check to make sure it's enabled or something of that nature? On Mar 7

Re: SQLite

2007-03-08 Thread jmn2k1
on linux so i'm guessing sqlite is already there. is there some configuration i can check to make sure it's enabled or something of that nature? On Mar 7, 8:02 pm, nate [EMAIL PROTECTED] wrote: SQLitesupport is only available for PHP5, and you have to make sure PHP is installed with it. See

Re: SQLite

2007-03-08 Thread AzenAlex
the spam... i'm a little new to the groups and i though my post weren't working so i kept re-submitting... I'm running php 5.1.6 on linux so i'm guessing sqlite is already there. is there some configuration i can check to make sure it's enabled or something of that nature? On Mar 7, 8:02

Re: SQLite

2007-03-08 Thread Chris Hartjes
On 3/8/07, AzenAlex [EMAIL PROTECTED] wrote: Here's my suggestion: * Go make sure that your installed version of PHP has SQLite support * Go and make sure SQLite is actually installed If both those things are true, then come back and this problem can be escalated to the next level. Don't

Re: SQLite

2007-03-08 Thread AzenAlex
apoligies... i'm running fedora core 6 and it would seem that php5 is installed without sqlite. yes, i feel dumb... i'm now getting the error: Warning: sqlite_popen() [function:sqlite-popen]: file is encrypted or is not a database any thoughts? On Mar 8, 3:17 pm, Chris Hartjes [EMAIL

need help with SQLite

2007-03-07 Thread AzenAlex
Does cakephp support SQLite? I'm getting the impression it does however i've had no luck using it. my database.php is set up as follows: var $default = array('driver'='sqlite', 'connect'='sqlite_open', 'database'='test.db'); and i'm

SQLite

2007-03-07 Thread AzenAlex
Does cakephp support SQLite? I'm getting the impression it does however i've had no luck using it. my database.php is set up as follows: var $default = array('driver'='sqlite', 'connect'='sqlite_open', 'database'='test.db'); and i'm

RE: SQLite

2007-03-07 Thread Mariano Iglesias
your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de AzenAlex Enviado el: Miércoles, 07 de Marzo de 2007 08:14 p.m. Para: Cake PHP Asunto: SQLite Does cakephp support SQLite? I'm getting

Re: SQLite

2007-03-07 Thread nate
SQLite support is only available for PHP5, and you have to make sure PHP is installed with it. See here: http://php.net/sqlite On Mar 7, 6:13 pm, AzenAlex [EMAIL PROTECTED] wrote: Does cakephp support SQLite? I'm getting the impression it does however i've had no luck using it. my

SQLite

2006-11-28 Thread hydra12
Anybody using sqlite with Cake? Where do you put the database? How do you configure the database.php file for sqlite? So far, I can't get cake to find my database. Thanks! hydra12 --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: SQLite

2006-11-28 Thread nate
'driver' = 'sqlite', 'database' = '/path/to/database/file' --~--~-~--~~~---~--~~ 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

SQLite, CakePHP, and database is locked errors

2006-07-19 Thread Lokkju
This is just a quick note to anyone who is trying to get sqlite to work with CakePHP. If you are getting database is locked error when trying to insert data, check your PHP version. Anything less then PHP 5.1.3RC3 has a bug in thw sqlite driver code that will lock it after performing specific

sqlite problem - locked database when save

2006-05-10 Thread Julius Vekony
How can I save data to sqlite with cake?I try o use qlitewithcake,whenIcallmodel-save()igoterror./* Thereisnoproblemwithmodel-findAll() */ -Warning: sqlite_query() [ function.sqlite-query]: database is locked in D:\www\sedi.sk\cake\libs\model\dbo\dbo_sqlite.php on line 128Fatal