Fatal error: Call to a member function scripts_for_layout() on a non-object in app/views/layouts/default.ctp on line 38

2011-08-15 Thread shawn e
hello all, i am new to cake, just got this error, after installing a script, please help... i deleted cache, the paths correct. any help is higly appreciated shawn -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Re: How to specify a count(id) field for find method

2011-08-15 Thread euromark
sry for that i just saw your count statement. jeremy is right, of course. On 15 Aug., 06:26, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: From the cookbook (http://book.cakephp.org/view/1030/Complex-Find-Conditions):         •

Re: Fatal error: Call to a member function scripts_for_layout() on a non-object in app/views/layouts/default.ctp on line 38

2011-08-15 Thread O.J. Tibi
Hey Shawn, I'm thinking that you did this in your layout code: ?php echo $this-scripts_for_layout(); ? You should've just done this: ?php echo $scripts_for_layout; ? Cheers, OJ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Re: See the design

2011-08-15 Thread Sam Sherlock
If you want the code view to show you the built page as it would when working with static html pages then I can't see how that is going to work. Syntax checking and code highlighting of cake projects within dreamweaver is possible. http://www.geekyboy.com/archives/347

pagination trouble with umlauts named parameters

2011-08-15 Thread Anja Liebermann
Hello, I have inherited a big application based on cake 1.2. The search works via named parameters in the URL because the search form is placed in the layout header *ouch* and works for more than one model. So the search parameter is passed like

Re: console errors when running 2.0 Console/cake

2011-08-15 Thread José Lorenzo
I am on the same setup as you are, and just ran the command as you described without any errors. Can you confirm you have the latest 2.0 code? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

URL problem

2011-08-15 Thread leafchild
I have 2 subdomain for my sites: -mysite.mydomain.com - cakePHP -myforum.mydomain.com - open source forum I want to make it forum URL like this: mysite.mydomain.com/forum so basically my cliant want to llok like form is under mysite. I tried to use .htaccess to make URL look like

Re: security component

2011-08-15 Thread Özgür Demir
Thanks a lot Jens, I think I'll model it this way. Perhaps using a small ajax popup which contains the token instead of a new frame just asking if the record should be deleted. On 13 Aug., 13:03, Jens Dittrich jdittr...@gmail.com wrote: No or it depends on what you want to happen when a delete

Re: Using SELECT... FOR UPDATE in cakephp

2011-08-15 Thread 0x20h
Am 14.08.2011 12:46, schrieb Teddy Zeenny: That is an interesting idea. (Although I don't think it would give me the exact SELECT .. FOR UPDATE functionality, but I guess it's as close as I can get). It would only allow 1 Process to access the if clause and it would return *immediately* on

Re: How to specify a count(id) field for find method

2011-08-15 Thread Roland Pish
Thanks Jeremy. I looked at the cookbook with the link you provided and I realized that I'm having the same output as the example showed there, the 'MIN(Product.price) as price' field is returned in the array with 0 as its index but not 'Product' as its index. Now I know that I'm doing it the right

Re: Using SELECT... FOR UPDATE in cakephp

2011-08-15 Thread Teddy Zeenny
Oh you are definitely right. I made up the example as I was writing the post, this is not a real case in my application.. Besides, I use ACL for privileges :) But such cases do happen (inserting or updating based on a SELECT result) and it can't always be solved with 1 save as it might depend on

Re: Using SELECT... FOR UPDATE in cakephp

2011-08-15 Thread 0x20h
Am 15.08.2011 21:08, schrieb Teddy Zeenny: Oh you are definitely right. I made up the example as I was writing the post, this is not a real case in my application.. Besides, I use ACL for privileges :) But such cases do happen (inserting or updating based on a SELECT result) and it can't

Accessing another controllers function.

2011-08-15 Thread Michael Gaiser
So I have 2 controllers. Domain, Location. Domains have several locations. The Location controller has a function called report which I want to be able to call from my domain controller to generate the reports for each of its locations. I was thinking that I could just do it like this: $report =

Re: Accessing another controllers function.

2011-08-15 Thread Tilen Majerle
$this-requestAction(); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/8/15 Michael Gaiser mjgai...@gmail.com So I have 2 controllers. Domain, Location. Domains have several locations. The Location controller has a function called report which I want to be able to call from my domain

Re: Load components in components

2011-08-15 Thread Điển vũ
if i use and create much components and that components use other components .It will make app is very slow? -- 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 with their CakePHP

Re: Load components in components

2011-08-15 Thread Điển vũ
I asked in cakephp IRC, A person answer is not: [11:05] savant it will not be slow, I believe it passes those around via reference [11:05] savant so you have nothing to worry about -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Re: Load components in components

2011-08-15 Thread Điển vũ
Thanks a lot. -- 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 with their CakePHP related questions. To unsubscribe from this group, send email to

Multiple model

2011-08-15 Thread nOLL
Hi, Let say, I'm admin and i would like to add agents but i would like to use different model (not users model). For example, agents model. the reason i use different model because there is other attributes i would like to fill in rather than username and password in users model. What is the best

Re: Multiple model

2011-08-15 Thread Mohd Hasnol
FYI, Im using ACL for this case. On Tue, Aug 16, 2011 at 12:26 PM, nOLL hasnolm...@gmail.com wrote: Hi, Let say, I'm admin and i would like to add agents but i would like to use different model (not users model). For example, agents model. the reason i use different model because there is

Re: console errors when running 2.0 Console/cake

2011-08-15 Thread #2Will
Hi Jose, i am on 2.0.0-beta I downloaded again just now and tried it again without the debug_kit plugin. Same result. i'm trying to fiddle about with debug statements, but not getting far. The $matches array for that first missing index ('tag') is: ## DEBUG ## Array ( [0]

Re: How to specify a count(id) field for find method

2011-08-15 Thread gremlin
Or use a virtual field. On Aug 15, 11:44 am, Roland Pish rolandp...@gmail.com wrote: Thanks Jeremy. I looked at the cookbook with the link you provided and I realized that I'm having the same output as the example showed there, the 'MIN(Product.price) as price' field is returned in the array

Wrestling with *very* basic Auth

2011-08-15 Thread LCR
Hi there, Hoping someone can help me keep the rest of my hair... I've spent the last day looking over so many Auth tutorials and haven't got anywhere. For some reason I haven't been able to get my head around it so far, so I've come on here in the hope of getting a specific example that helps me

Missing Database Table

2011-08-15 Thread culp
Hello, I'm new to cake so please bear with me here. I've set up an application locally, tested it and all runs fine. I've uploaded it to a remote production server and, with exactly the same settings I'm getting the following error message Missing Database Table Error: Database table shipments

Running javascript on render

2011-08-15 Thread Randy
I'm trying to format input boxes based on the input data. In particular there is an asset field that is available (or not) based on a type field. If the type field is changed to one of several options the asset field display is turned on and off. I have it working using a small javascript

Setting default value with a query

2011-08-15 Thread David Brotman
I have an input field in a form called transaction_amount and a select field called transaction_type and a select field called tenant. What I would like to do is populate the transaction_amount field with the most recent transaction entry (transaction_date) for the selected tenant where the

No CSS styling in Cake setup - tried everything

2011-08-15 Thread koreill1
I've been trying for hours and days to get cake setup on my new mac laptop. I've got it setup on my iMac fine, so I'm not sure what the problem is. I have cake unpacked in /Users/koreill1/Sites/ ... the .htaccess files are there and readable. I modified my httpd.conf file so that mod_rewrite is