Re: How to call a function from another controlle?

2012-09-07 Thread Chris Thompson
If it's logic used by multiple Controllers it should go in a Component. -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to

XML-to_array() no longer works with html

2012-09-07 Thread Chris Thompson
Somewhere between 2.0.1 and 2.2.2 the Utility/Xml class lost the ability to consume and html string and output it as an array. Obviously this is an Xml class and I was asking it to work with HTML, but does anyone know if CakePHP has a class to do this still (turn html to array)? -- You

My Models are causing recursive issues

2007-11-30 Thread Chris Thompson
My setup Blogs - hasMany Posts - hasAndBelongsToMany Accounts Post - belongsTo Blog - belongsTo Account -hasMany Note Note - belongsTo Post - belongsTo Account Account - hasMany Post - hasMany Note - hasAndBelongsToMany Blog The issue comes when I am in Posts and I do a recursive = 2, which

Re: CakePHP 1.2 and Oracle throwing errors

2007-11-06 Thread Chris Thompson
I wanted to add something else to this. If you have a table Users and you try to select against it, CakePHP uses the table alias of User, however this is a reserved word in Oracle. Any ideas how to get around this? --~--~-~--~~~---~--~~ You received this

Re: CakePHP 1.2 and Oracle throwing errors

2007-11-06 Thread Chris Thompson
Found a ticket submitted here: http://groups.google.com/group/tickets-cakephp/msg/25b70f403ce47e23 This is for the reserved words table names. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

New guy needs some help

2007-11-02 Thread Chris Thompson
Where I work, we are testing out CakePHP to replace our existing codebase. I have two questions. 1. Do all primary keys for tables have to be 'id'? 2. I have 3 tables, blogs, posts, users. bblogs/b uid/u user_id title subtitle bposts/b uid/u blog_id user_id added updated text busers/b uid/u

Re: Adodb

2007-11-01 Thread Chris Thompson
This makes me wonder if anyone has done it. My project needs to connect to Oracle and it looks like the Adodb lib is the only one we can use to do that. I will post back later if we get it working. On Oct 23, 6:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Has anyone successfully used

Re: Adodb

2007-11-01 Thread Chris Thompson
var $default = array( 'driver' = 'adodb', 'connect' = 'oci8', 'host' = '', 'login'= 'username', 'password' = 'password', 'database' = 'dbname',