Re: custom logger

2013-01-14 Thread sixthpoint
Typo, core.php should be bootstrap.php above On Monday, January 14, 2013 9:54:26 PM UTC-6, sixthpoint wrote: > > I am trying to make my own custom logger but the write method gets called > twice oddly enough. Here is the code I am using > > DatabaseLogger.php in the Lib/En

custom logger

2013-01-14 Thread sixthpoint
I am trying to make my own custom logger but the write method gets called twice oddly enough. Here is the code I am using DatabaseLogger.php in the Lib/Engine/ directory: App::uses('CakeLogInterface', 'Log'); > > >> class DatabaseLogger implements CakeLogInterface { > > private $types = array()

using other css themes

2012-04-15 Thread sixthpoint
I am using subdomains, each subdomain loads a specific theme folder. I also have a "global" theme which has global.css in it. I want to be able to load that theme from my current subdomain location. The issue is that when I use the html-css helper it loads the current themes css. How can I load oth

rest request

2012-03-07 Thread sixthpoint
I am having issues setting up rest requests in cake.. Went through this article: http://book.cakephp.org/2.0/en/development/rest.html Then tried out cake 2.0 version of https://github.com/kvz/cakephp-rest-plugin/tree/cake-2.0 I am getting this strange error I can't find anything out about on th

Re: CakePHP and Memcached

2012-03-02 Thread sixthpoint
memcached should have keys that expire, thus you wouldn't have to remove it. read this http://api20.cakephp.org/class/memcache-engine On Friday, March 2, 2012 3:14:58 AM UTC-6, Almog Koren wrote: > > I'm looking at adding Memcached to my application I understand there is > already a built in o

Re: CakeRoute

2012-01-27 Thread sixthpoint
my custom routes did not require many changes for 2.x > and the upgrade shell will help too > > (others may have very different ideas about how to approach this) >  - S > > On 26 January 2012 21:56, sixthpoint wrote: > > > > > > > > >http://mark-stor

Re: CakeRoute

2012-01-26 Thread sixthpoint
http://mark-story.com/posts/view/using-custom-route-classes-in-cakephp On Jan 26, 3:56 pm, sixthpoint wrote: > I have found this article, appears to be helpful. Might be some issues > though when migrating to cake 2.x > > On Jan 26, 1:15 pm, sixthpoint wrote: > > > &g

Re: CakeRoute

2012-01-26 Thread sixthpoint
I have found this article, appears to be helpful. Might be some issues though when migrating to cake 2.x On Jan 26, 1:15 pm, sixthpoint wrote: > I have been trying to do some research on solving my problem. It seems > simple, but I don't see a lot of documentation in cake on creati

CakeRoute

2012-01-26 Thread sixthpoint
I have been trying to do some research on solving my problem. It seems simple, but I don't see a lot of documentation in cake on creating custom routes. My issue: I want to take a URL like so http://localhost/controller1/item1 and route it to http://item1.localhost/* this "item1" can be different

Re: ACL group based permission + Auth Component

2011-11-26 Thread sixthpoint
Here is my situation: I have 4 groups: - Administrator - Station Manager - Station DJ - Basic User They all have different permissions to different pages. But no individual user has special permissions outside his/her group. I have read through the cakephp documentation a few times now. I origina

ACL group based permission + Auth Component

2011-11-23 Thread sixthpoint
Can you use the ACL group based permission and the Auth Component with controller based permissions at the same time? Or were they meant to be used separately? And if you can use them together, which takes precedence in the order of operations? -- Our newest site for the community: CakePHP Video

Re: primaryKey in cake 2.0

2011-11-14 Thread sixthpoint
On Nov 13, 11:14 pm, Graham Weldon wrote: > Can you provide a code sample to reproduce this? > > Cheers, > Graham Weldonhttp://grahamweldon.com > e. gra...@grahamweldon.com > p. (+61) 0407 017 293 > Skype: grahamweldon > > > > > > > > On Monday, 14 Novembe

primaryKey in cake 2.0

2011-11-13 Thread sixthpoint
I have been running into a issue once upgrading to cake 2.0. When defining a HABTM association and then setting the primaryKey var in each of my models. It fails to utilize my altered primary key in the association. It resets to the default "id" field as the primary key in each model. Has there bee

Re: Group Based ACL

2011-11-10 Thread sixthpoint
I have went through that entire tutorial. I think the issue is coming from when I have changed the "user" model and controller to "account" as the name. http://api20.cakephp.org/class/auth-component $this->Auth->authenticate = array( 'Form' => array( 'userModel' => 'Users.User'

Group Based ACL

2011-11-08 Thread sixthpoint
9] Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references: Aro: Array ( [User] => Array ( [acct_id] => 1 [acct_username] => sixthpoint [acct_email] => exam...@gmail.com [acct_group_id]

Re: ACL is not working for groups

2011-11-01 Thread sixthpoint
awesome response time :) thanks! On Nov 1, 11:05 am, sixthpoint wrote: > I am having this exact same error, let me know if you find a solution. > > On Oct 31, 12:23 pm, warLog wrote: > > > > > > > > > I want to utilise the concept of groups in ACL. I am ve

Re: ACL is not working for groups

2011-11-01 Thread sixthpoint
I am having this exact same error, let me know if you find a solution. On Oct 31, 12:23 pm, warLog wrote: > I want to utilise the concept of groups in ACL. I am very new to > cakephp, and messed up with ACL. My database tables are as follows: > CREATE TABLE IF NOT EXISTS `gcfa_groups` ( >   `id`

Re: Multi HABTM association

2011-01-02 Thread sixthpoint
Interesting way to setup this. How did you setup the database for the comments field? It must of included the model and foreign_key name i take it? Did you include this in all your db tables? and if so why? On Jan 2, 1:12 pm, cricket wrote: > On Sun, Jan 2, 2011 at 12:46 PM, sixthpoint wr

Multi HABTM association

2011-01-02 Thread sixthpoint
I am having troubles setting up this association for my application. I am trying to do it in the least complicated way possible, but I am rather new to cake. I have 2 models (Documents, Courses) which each need to have comments. I do no want to use multiple tables I would rather store all the comm

Find Query

2010-01-11 Thread sixthpoint
I have been scratching my head on how to do this for a few days now. Lets say the user enters a date in a form and submits it.. the date is 10/2/10 for example. The database is setup to have a 'checkin' and 'checkout' date fields already assigned. In those fields for example we have records like ('