Table prefix bug in 2.0.0-dev when deleting?

2011-02-06 Thread Matthias
I'm trying to execute the following command in my WorkshopController: $this-Workshop-WorkshopDescription-delete($id); WorkshopDescription belongs to DescriptionCategory and Workshop, which have the underscored tables description_category and workshop. I'm using a prefix called cosy_. SELECT

Re: Table prefix bug in 2.0.0-dev when deleting?

2011-02-06 Thread Matthias
Sorry for double post... The above statement is the first that appears in the sql debug table, directly followed by the delete statement: DELETE `WorkshopDescription` FROM `cosy_workshop_descriptions` AS `WorkshopDescription` LEFT JOIN `description_categories` AS `DescriptionCategory` ON

Re: Any chance to get the $_SERVER variable or Configure::write Settings into a shell?

2011-02-06 Thread parallel32
DD, I just had this same issue and resolved it (for me). There's a couple ways to solve this. On my servers (centos 5) the env variables retrieved from _SERVER are available from the cli but they are a subset of the ones available from http. And cronjobs are even fewer than cli env variables as

Re: Table prefix bug in 2.0.0-dev when deleting?

2011-02-06 Thread John Andersen
Make sure that you have associated your models correctly as described in the CakePHP book at: http://book.cakephp.org/view/1039/Associations-Linking-Models-Together Also it is a good idea to show the same associations here in the thread, so that we may comment on them! Enjoy, John On 6 Feb.,

Re: Table prefix bug in 2.0.0-dev when deleting?

2011-02-06 Thread John Andersen
Oh, forget it! My bad :) You are deleting, so the should be no associations used in the query! Enjoy, John On 6 Feb., 16:15, John Andersen j.andersen...@gmail.com wrote: Make sure that you have associated your models correctly as described in the CakePHP book

Re: Table prefix bug in 2.0.0-dev when deleting?

2011-02-06 Thread Matthias
I also wonder why there are joins, but they are there automatically... I tried $this-Workshop-WorkshopDescription-contain() before the deleting, but then only the SELECT statement is contained (without joins), the following delete is again with joins. I also tried the 2. parameter for delete:

Re: Book format change

2011-02-06 Thread Jesse
Hi, Cricket. You didn't include the last line of my message in your reply. This last line explains the issue I am having: The new format has no index that I can find. Am I just missing something? There is search, but no index of pages or TOC like the older documentation had. On Feb 5, 6:34 

Re: Book format change

2011-02-06 Thread Sam Sherlock
As Cricket says post this info to lighthouse cakebook project add all the information you can about the issue. Screenshot should help you can upload files with the ticket and you can open a lighthouse account with openid if you like. Iceweasel is possibly a more unique browser (perhaps you could

Using EmailComponent inside a component or abstract controller

2011-02-06 Thread Johnny Cupcake
To the best of my knowledge, both of these are impossible in CakePHP 1.3.6: - Use EmailComponent inside another component to send a message - Create a controller class BETWEEN AppController and the child controllers in the inheritance hierarchy, that uses EmailComponent to send a message I would

Re: Pagination Problem in Custom Query

2011-02-06 Thread Joseph Buarao
Hello Guys, Thanks for your help Guys, I have fixed the limit statement but still in problem, I think I found the problem not in my query it is in my data structure, I was trying to paginate the data in one category, here's my data structure Array ( [0] = Array (

simple page request

2011-02-06 Thread zer0_gravity
Using the controller to do a simple page request that show the results from find()/read() after passing the $id of the record being queried , what else can I do using a simple page request? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

array_key_exists php statement

2011-02-06 Thread chris...@yahoo.com
Hi guys,... how u ding... I need help with php statement. I'm getting an error: Parse error: syntax error, unexpected ';' in /home/zipmaniak/ zippopeople.com/html/app/views/gifts/admin_manage.ctp on line 93 ?php if(!(array_key_exists($gift['GiftCategory']['name'])) ? Please some one help me

Re: array_key_exists php statement

2011-02-06 Thread Jeremy Burns | Class Outfit
As the error says; ?php if(!(array_key_exists($gift['GiftCategory']['name'])); ? Sent from my iPad On 7 Feb 2011, at 05:56, chris...@yahoo.com chris...@yahoo.com wrote: Hi guys,... how u ding... I need help with php statement. I'm getting an error: Parse error: syntax error,

Re: array_key_exists php statement

2011-02-06 Thread Tilen Majerle
wtf are u trying to do?? {{{ if (array_key_exists($gift['GiftCategory']['name'], $yourArray)): else: endif; if (array_key_exists('controller', $this-params) $this-params['controller'] == 'gifts'): else: endif; //better choice if (isset($this-params['controller']) $this-controller ==

Re: Pagination Problem in Custom Query

2011-02-06 Thread Name256
Hey, Try the containable behaviour. It is designed specifically to filter out related results (Feeds in your case). On Feb 7, 3:48 am, Joseph Buarao josephbua...@gmail.com wrote: Hello Guys, Thanks for your help Guys, I have fixed the limit statement but still in problem, I think I found the

Re: array_key_exists php statement

2011-02-06 Thread chris...@yahoo.com
Hi Tinel, Ok,.. here is the deal,... I'm trying to upload gifts,... but they are not assign any categories yet, and I will add Category and Name and Description later... But for now, since it has no category and Category table (which is like a theme to display later on a site) and which is

Re: array_key_exists php statement

2011-02-06 Thread chris...@yahoo.com
Ok, I manage to do that... here is what works ?php if(!is_null($gift['GiftPhoto']['category_id'])): ? ?php echo $html-link($gift['GiftCategory']['name'], '/gifts/ category/' . $gift['GiftCategory']['name']) ? ?php else: ? ?php echo ucfirst(__('no categories',