Layout and Views

2011-09-23 Thread Claudia Demers
much Claudia -- 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 cake-php+unsubscr

Re: localization

2008-09-17 Thread Claudia
are loaded before the controllers, but I am not sure. I use Cake 1.2.0.5427alpha Good luck Claudia On Sep 17, 2:28 am, cem [EMAIL PROTECTED] wrote: Hi ;   I am reading the localization article in the cakePHP . And in that article it says that I have to include the uses('L10n'); in the controllers

Re: Model find() and a BETWEEN clause

2008-09-10 Thread Claudia
. Cake version is 1.2.0.5427alpha Claudia On Sep 10, 4:32 am, Daniel [EMAIL PROTECTED] wrote: Hello everyone, I'm trying to perform a find operation on my 'event' model in order to retrieve events that fall within a specific date range. I've read the manual on the process to do complex find

Re: Problems using Postgres with cake

2008-08-29 Thread Claudia
Hi there Most likely this means that your PHP does not have the postgres library installed. You can check that quickly checking the information returned by phpinfo(), if postgres is enabled there should be a block with some information about it. Claudia On Aug 29, 4:57 pm, phanorcoll [EMAIL

Re: Mod_Rewrite problem...

2008-07-11 Thread Claudia
anyway, this does not matter. When you request any cake url like http://localhost/foo, the rewrite condition evaluates to true (as the directory foo is neither a directory nor a file) and thus the rewrite rule is applied. Hope it helps you understand what was actually going on. Claudia On Jul

Re: view caching problem

2008-03-05 Thread Claudia
That sounds good - thank you. Claudia On Mar 4, 6:34 pm, Christian Winther [EMAIL PROTECTED] wrote: Hello, I believe that the code is in the file to make sure that Components ect. are run even if the page is cached (Might be useful for auth amongst many things). https://trac.cakephp.org

Re: short answer question: how to create a function definition/call

2008-03-04 Thread Claudia
the model with $this-User and then you call the function on the model: $this-User-MYFUNC() If that does not work for you, post some code. Claudia On Mar 4, 6:09 am, yohann305 [EMAIL PROTECTED] wrote: hey poeple, this is the first time i ask something in here. neway, here is the deal. I'm

view caching problem

2008-03-04 Thread Claudia
my question(s): What is the purpose the PHP part of the cache file? In case the PHP part is not really necessary, is there a way to tell Cake to cache only the output of the view, without adding the PHP stuff? I use Cake 1.2.0.5427alpha Thank you Claudia

Re: Missing Controller ... Why What How

2008-02-22 Thread Claudia
Check whether you named the class correctly and whether the permissions of the file are ok. Claudia On Feb 22, 10:16 am, Comida411 [EMAIL PROTECTED] wrote: I am getting the following error... Missing Controller Error: AccountsController could not be found. Error: Create the class

Re: Problem merging arrays. String-keys are cast as numners.

2008-02-07 Thread Claudia
I am not sure whether this will bring the desired result but have a look at the union operator http://lu.php.net/manual/en/language.operators.array.php Good luck Claudia On Feb 7, 4:07 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: This is not strictly a CakePHP question but I hope that is OK

Re: cakephp on ubuntu

2008-01-23 Thread Claudia
fine in Windows because Windows usually does not care about permissions. Claudia On Jan 23, 8:56 am, Nil [EMAIL PROTECTED] wrote: Hi, I am trying to run my Cakephp script on ubuntu but when I give URL for my script then following error message is display. Warning: require(cake/config

Re: query on a component?

2008-01-23 Thread Claudia
that makes the query and returns the result. Then use this method in your component. Claudia Claudia On Jan 23, 9:30 am, Louie Miranda [EMAIL PROTECTED] wrote: Am i wrong? On Jan 23, 2008 1:37 PM, Louie Miranda [EMAIL PROTECTED] wrote: I am trying to query some table on a component

Re: parameters help needed

2008-01-23 Thread Claudia
The form submits to whatever you supply in the action attribute of the form tag. So simply include the parameters in the url of the action attribute. Claudia On Jan 23, 9:09 am, bob [EMAIL PROTECTED] wrote: if i have the url as follows localhost/controller/action/param1/param2 and i also

Re: Simple GROUP BY ?

2008-01-21 Thread Claudia
a group by - grouping by one column when selecting multiple columns often yields arbitrary results. Good luck Claudia On Jan 20, 11:10 pm, cronet [EMAIL PROTECTED] wrote: Hi, I'm siting here for about 2 hours and get it not work. I need a simple group by in an association. This is in my

prevent parsing of query parts

2008-01-04 Thread Claudia
for the order part. I know that I can write the SQL statement manually and then use $model- query() But I would rather use as much cake as possible. Thanks for any tips Claudia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: js and css packager for cake 1.1?

2007-11-20 Thread Claudia
Hi there I don't know whether there is a packager/minifier for Cake1.1. Nevertheless have a look here: http://www.ejeliot.com/blog/72 This should be pretty easy to adapt to Cake 1.1. Good luck Claudia On Nov 19, 4:54 pm, keymaster [EMAIL PROTECTED] wrote: Does anyone know of any packager

Re: findall on 3 models chained with belongsto

2007-11-06 Thread Claudia
Claudia On Nov 6, 10:09 am, AD7six [EMAIL PROTECTED] wrote: On Nov 5, 4:33 pm, Claudia [EMAIL PROTECTED] wrote: Hi there I have three models that are chained with belongsTo in one direction and hasMany in the other direction: Model1 belongsTo Model2 belongsTo Model3 and Model3

findall on 3 models chained with belongsto

2007-11-05 Thread Claudia
: https://trac.cakephp.org/ticket/2931 Any tips on how to solve this? I use Cake 1.2.0.5427alpha. Claudia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake

Re: Can i have url like domain/username

2007-10-31 Thread Claudia
in this case you can't have users with the same name as these controllers. Claudia On Oct 31, 6:27 pm, MrTufty [EMAIL PROTECTED] wrote: All things are possible with CakePHP. Well, almost - it won't make your dinner for you or anything. You need to look into custom routes, which you can set up

Re: Use Multiple Two Database's Tables In Single Controller...

2007-10-31 Thread Claudia
Maybe this helps? http://groups.google.com/group/cake-php/browse_thread/thread/eacfade1d52c9071/f5e3c395037043b3 Good luck Claudia On Oct 31, 11:35 am, Daivat [EMAIL PROTECTED] wrote: Hi, I have one major problem for that i am not getting the proper solution. I need to use two different

Re: Empty page response

2007-10-30 Thread Claudia
'); } if ($return === false) { echo I18n::translate($singular, $plural, 'default', 5, $count); } else { return I18n::translate($singular, $plural, 'default', 5, $count); } } /code Hope it helps Claudia On Oct 27, 11:16 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have submitted

Re: Baffling error when trying to put ACL check in beforeFilter

2007-10-30 Thread Claudia
In case someone else searches for it: Adding the line $this-Acl-startup($this); before the call to $this-Acl-check seems to work fine. Claudia On Sep 21, 10:03 pm, 2000Man [EMAIL PROTECTED] wrote: What was the final solution to this problem (putting parent::beforeFilter(); as first line

Re: Error when use $html-image and __()

2007-10-15 Thread Claudia
function or first create the translation string and then use the result in the html-image call. Claudia On Oct 15, 9:41 am, william [EMAIL PROTECTED] wrote: Hello all, When I run these code in cake\libs\view\templates\layouts\default.ctp ?php echo $html-image('cake.power.png', array('alt

comments for translation

2007-10-01 Thread Claudia
if you translate short phrases it is sometimes difficult to get the supposed meaning without knowing any context. Thanks for any tips Claudia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-27 Thread Claudia
(without having to set any cache headers or so). Maybe you could post the relevant part of your controller? Claudia Jon Hinson wrote: I'm not sure what the nocache trick is. I tried sticking META Http- Equiv=Pragma Content=no-cache in my head, adding the hidden field with a random value

Re: cake 1.2 (latest alpha) persistModel + behavior = Fatal error ?

2007-09-22 Thread Claudia
whether doing this is a good idea. I'll report a bug about this - let's see what the gurus say. Claudia On Sep 5, 10:39 am, thequietlab [EMAIL PROTECTED] wrote: can someone do me a favor and try it ? I'd like to know if this is a cake bug or I'm doing something wrong. Thanks, Andrzej

Re: using adodb?

2007-09-22 Thread Claudia
Hi there The sourcecode of dbo_adodb.php seems to imply that you specify only 'adodb' as driver and 'mysql' in the parameter 'connect' - maybe you should try this. Claudia On Sep 20, 8:39 am, Brent Rieck [EMAIL PROTECTED] wrote: Hello, I'm new to Cake and have a question about how to use

log php error messages

2007-09-18 Thread Claudia
is why I have set the debug level to 0) but all error messages are logged in a logfile. I use cake 1.2 Thanks for any tips Claudia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group

Re: log php error messages

2007-09-18 Thread Claudia
to log additional information for any error so having a custom error handler would be nice. Claudia On Sep 18, 3:00 pm, Marcus T. Jaschen [EMAIL PROTECTED] wrote: Claudia wrote: Hi there How can I log any notice/warning/error thrown by php? PHP (not CakePHP) warnings and errors can be logged

Re: default value for selectbox overrides posted data

2007-09-17 Thread Claudia
Thank you for your answers. Using 'default' = value in the array does not work, it looks like this is not used for selectboxes I'll just set the default value in the controller. Claudia On Sep 17, 1:00 am, Grant Cox [EMAIL PROTECTED] wrote: Instead of forcing a selected item in the view

default value for selectbox overrides posted data

2007-09-16 Thread Claudia
the selectboxes are still set to the default value, not to the value set in $this-data. As a quick workaround I have changed the code in FormHelper::select but I am wondering whether I am just missing the correct way to use the select helper. I use Cake 1.2 Thanks for any tips Claudia

query log and requestaction

2007-09-15 Thread Claudia
there? I am using cake 1.2. Thanks for any hints Claudia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send

Re: query log and requestaction

2007-09-15 Thread Claudia
I messed something up here. As the same setup is working for you the problem is most likely caused by my fiddling (although the other queries appear just fine). I'll check it out and post again if the same happens with default sql logging. Claudia

Re: unset unwanted fields

2007-09-14 Thread Claudia
fields. You could of course add some checks to verify the integrity of the form but this can get complicated really quick. Claudia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group

Re: Helpers/Components not being loaded

2007-08-27 Thread Claudia
Hi Sunny You are using typographical apostrophes instead of normal single quotes. Just replace them by normal quotation marks and it should work. Claudia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: app absolute url

2007-08-23 Thread Claudia
Stupid me - I actually checked the api but by mistake I checked version 1.1 which does not have the 'full' parameter yet. Thanks a lot for your help. Claudia On Aug 23, 8:38 am, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: On Aug 22, 8:25 pm, Claudia [EMAIL PROTECTED] wrote: I am facing

call validation on single field

2007-08-23 Thread Claudia
to validate only a few fields whereas another time I would like to validate all fields. This could be easily achieved if it is possible to tell Cake which fields to validate. I am using Cake 1.2 Thanks Claudia --~--~-~--~~~---~--~~ You received this message because

Re: app absolute url

2007-08-22 Thread Claudia
://' . $_SERVER['SERVER_NAME'] manually but as said in the previous post this seems to be not very Cake-ish. I know that I could always write my own helper that extends the HTMLHelper::url functionality but first I want to make sure that the functionality is not there already. Thanks Claudia

Re: app absolute url

2007-08-22 Thread Claudia
Thanks, I did not see this constant before. This saves me typing the http:// But I still would need to prepend it to the HTMLHelper::url call which is not very nice. So it looks a custom helper is really the way to go. Thanks Claudia On Aug 22, 6:29 pm, majna [EMAIL PROTECTED] wrote: maybe

Re: value attribute in html-file helper

2007-08-14 Thread Claudia
Hi there as far as I know you cannot set the value attribute of a file attribute as this would pose quite a security issue (after all you could upload arbitrary files without letting the user know). More info here: http://www.cs.tut.fi/~jkorpela/forms/file.html#value Claudia

hyphen in action part of url

2007-07-04 Thread Claudia
that there is a way without hacking core cake files. Any tips? Thanks Claudia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com

Re: custom template variables in default.thtml

2007-06-13 Thread Claudia
Thanks a lot - that was exactly what I needed. Claudia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group

custom template variables in default.thtml

2007-06-12 Thread Claudia
. With other views I would use the corresponding controller to do this but I don't know how to do this with the default.thtml. Thanks Claudia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Re: custom template variables in default.thtml

2007-06-12 Thread Claudia
in a controller for a view might work, but unless I misunderstand the suggestion this would mean setting the variable in _every_ controller as I want to have the template variable always. Thanks a lot for your help Claudia --~--~-~--~~~---~--~~ You received this message