how enable identifier quoting???

2016-03-13 Thread Leonidas Savvides


*If you are using SQL keywords as table column names, you can enable 
identifier quoting for your database connection in config/app.php.*


How do this   


long (for long, lat) is prohibited as db name of field...? if change to 
long1 how apply the change in cakePHP? Also how * enable identifier 
quoting???*

-- 
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup

We will soon be closing this Google Group. But don't worry, we have something 
better coming. Stay tuned for an updated from the CakePHP Team soon.

Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: 3.0 Database Error : SQLSTATE[HY000] [14] unable to open database file

2016-03-13 Thread Leonidas Savvides
*If you are using SQL keywords as table column names, you can enable 
identifier quoting for your database connection in config/app.php.*

how * enable identifier quoting???*


On Monday, September 29, 2014 at 6:43:14 PM UTC+3, Bayezid Alam wrote:
>
> Dear All,
> i am getting the subjected Error for beta-2 of cake3, while first browsing 
> from localhost.
>
> sub-hints:
> If you are using SQL keywords as table column names, you can enable 
> identifier quoting for your database connection in config/app.php. 
>
> *Notice: * If you want to customize this error message, create 
> src/Template/Error/pdo_error.ctp
>
> Stack Trace 
>
>- CORE/src/Database/Driver/PDODriverTrait.php line 44 
> → PDO->__construct(string, null, null, 
>array)  
>- CORE/src/Database/Driver/Sqlite.php line 62 
> → 
>Cake\Database\Driver\Sqlite->_connect(array) 
> 
>- CORE/src/Database/Schema/BaseSchema.php line 44 
> → Cake\Database\Driver\Sqlite->connect() 
> 
>- CORE/src/Database/Dialect/SqliteDialectTrait.php line 163 
> → 
>Cake\Database\Schema\BaseSchema->__construct(Cake\Database\Driver\Sqlite) 
> 
>- CORE/src/Database/Schema/Collection.php line 59 
> → 
>Cake\Database\Driver\Sqlite->schemaDialect() 
> 
>- CORE/src/Database/Connection.php line 288 
> → 
>Cake\Database\Schema\Collection->__construct(Cake\Database\Connection) 
> 
>- ROOT/plugins/DebugKit/src/Model/Table/LazyTableTrait.php line 38 
> → 
>Cake\Database\Connection->schemaCollection() 
> 
>- ROOT/plugins/DebugKit/src/Model/Table/RequestsTable.php line 41 
> → 
>DebugKit\Model\Table\RequestsTable->ensureTables(array) 
> 
>- CORE/src/ORM/Table.php line 231  → 
>DebugKit\Model\Table\RequestsTable->initialize(array) 
> 
>- CORE/src/ORM/TableRegistry.php line 186  
>→ Cake\ORM\Table->__construct(array)  
>- ROOT/plugins/DebugKit/src/Routing/Filter/DebugBarFilter.php line 178 
> → Cake\ORM\TableRegistry::get(string) 
> 
>- CORE/src/Event/EventManager.php line 268  
>→ DebugKit\Routing\Filter\DebugBarFilter->afterDispatch(Cake\Event\Event, 
>Cake\Network\Request, Cake\Network\Response) 
> 
>- CORE/src/Event/EventManager.php line 235  
>→ Cake\Event\EventManager->_callListener(array, Cake\Event\Event) 
> 
>- CORE/src/Event/EventManagerTrait.php line 76 
> → 
>Cake\Event\EventManager->dispatch(Cake\Event\Event) 
> 
>- CORE/src/Routing/Dispatcher.php line 90  
>→ Cake\Routing\Dispatcher->dispatchEvent(string, array) 
> 
>- ROOT/webroot/index.php line 37  → 
> Cake\Routing\Dispatcher->dispatch(Cake\Network\Request, 
>Cake\Network\Response) 
>
>
> Note: i have manually downloaded from 
> https://github.com/cakephp/cakephp/releases/3.0.0-beta2 
>
> Hope it's proper suggestion
>
> Thanks
> Bayezid
>

-- 
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup

We will soon be closing this Google Group. But don't worry, we have something 
better coming. Stay tuned for an updated from the CakePHP Team soon.

Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


What are CakePHP 3.2 conventions for Town Directory Web-Site eg how name the tables and fields.... if have

2016-03-13 Thread Leonidas Savvides


Note:this is second post after approved by google group... first post - not 
see it - was prior approved... 


*What are CakePHP 3.2 conventions for Town Directory Web-Site eg how name 
the tables and fields if have *

 

businesses

id, user_id, cat_id, name, description, address, phone, email, url, 
Map_lat, Map_long, img1url, img2url, img3url 

 

categories

id, cat

 

Users  // this will be the same as Blog example in Guide

CREATE TABLE users (

id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,

username VARCHAR(50),

password VARCHAR(255),

role VARCHAR(20),

created DATETIME DEFAULT NULL,

modified DATETIME DEFAULT NULL

);

 

*bake (pre-made code baking) should work, for first two tables...?well?*

-- 
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup

We will soon be closing this Google Group. But don't worry, we have something 
better coming. Stay tuned for an updated from the CakePHP Team soon.

Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.