Re: How to output UTF-8 sign?

2010-04-30 Thread John Andersen
You should think more on all the information available to you in the
view!
You already have:
1) the field name by which the sort is performed.
2) the sort direction for the chosen field name.
3) the list of fields which are sortable.

So you should be able to think it through and arrive at something like
this:
[code]
   // Reset the sort direction for each sortable field.
  $sortable = array('name' => 'sort_none','country' =>
'sort_none');

   // Set the sort direction for the chosen sort field.
  if (isset($this->params['named']['direction'])) {
 $sortable[$this->params['named']['sort']] = 'sort_'.$this-
>params['named']['direction'];
  }

   // Present the sortable fields with the specified sort CSS classes.
  foreach($sortable as $sortFieldName => $sortCssClass) {
 echo $paginator->sort(ucfirst($sortFieldName),
$sortFieldName,array('class' => $sortCssClass));
  }
[/code]

You can look at my site, see one of the previous posts, where the
above is implemented. No zip-file this time, am too busy :)
Enjoy,
   John

On Apr 30, 11:41 pm, sebb86  wrote:
> Well, I don't know at which position in the source code, i have to
> reset it.
> I would reset with this source code: $sortCssClass = 'sort_none';
> I think, i need to know, which column header is clicked and then i
> have to reset all others.
> Could you give me a last hint please?
>
> Thanks!
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Selected option in select

2010-04-30 Thread Andrei Mita
Sorry for not replying. I had to leave on a very short notice. I will try it
again and come back with an update.

On Fri, Apr 30, 2010 at 6:24 PM, Ed Propsner  wrote:

> This also worked:
>
> $options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia 2',
> 'Generatia 3'=>'Generatia 3');
>  echo $form->select('group', $options, array('selected' => 'Generatia 2'));
>
>
>
> On Fri, Apr 30, 2010 at 11:22 AM, Ed Propsner wrote:
>
>> I tried this one and it worked:
>>
>>  $options=array('G1'=>'Generatia 1','G2'=>'Generatia 2', 'G3'=>'Generatia
>> 3');
>>   echo $form->select('group', $options, array('selected' => 'G2'));
>>
>> On Fri, Apr 30, 2010 at 11:18 AM, Andrei Mita wrote:
>>
>>> I saw that right after I sent the e-mail. Now I have:
>>>
>>> $options=array('G1'=>'Generatia 1','G2'=>'Generatia 2',
>>> 'G3'=>'Generatia 3');
>>>
>>>
>>> echo $form->select('group', $options, array('selected' => 'G2'));
>>> echo $form->select('group', $options, array('selected' =>
>>> 'Generatia 2'));
>>>
>>>
>>> None work.
>>>
>>>
>>>
>>> On Fri, Apr 30, 2010 at 6:14 PM, Jeremy Burns wrote:
>>>
 Could it be the space? Try replacing them both in the options array and
 the value you are trying to match (tacky I know, but at least it would
 isolate the problem).


 Jeremy Burns
 jeremybu...@me.com 

 On 30 Apr 2010, at 16:12, Andrei Mita wrote:

 I have added the model and there is no change.

 I have noticed that if I do the options like 'G1' => 'Generatia 1' and
 so on, it works.


 The debug on $options:

 Array
 (
 [Generatia 1] => Generatia 1
 [Generatia 2] => Generatia 2
 [Generatia 3] => Generatia 3
 [Mesteri] => Mesteri
 )





 On Fri, Apr 30, 2010 at 6:07 PM, Jeremy Burns wrote:

> What about:
>
> $form->select('Profile.group', $options, array('selected' =>
> $this->data['Profile']['group']));
>
> (in other words adding the model name to the select name)
>
>
> Jeremy Burns
> jeremybu...@me.com 
>
>
> On 30 Apr 2010, at 16:04, Andrei Mita wrote:
>
> I know, I fallowed the example but I'm missing something.
>
>
> On Fri, Apr 30, 2010 at 6:01 PM, Ed Propsner wrote:
>
>> I just tried this one and it works :
>>
>> $options=array('M'=>'Male','F'=>'Female');
>> echo $form->select('gender',$options, array('selected' => 'M'));
>>
>> On Fri, Apr 30, 2010 at 11:00 AM, Andrei Mita 
>> wrote:
>>
>>> It doesn't work :((
>>>
>>>
>>>
>>> On Fri, Apr 30, 2010 at 5:58 PM, Andrei Mita 
>>> wrote:
>>>
 I've tried that. I'll try it again. If it works, I'm calling it a
 day :)



 On Fri, Apr 30, 2010 at 5:53 PM, Ed Propsner 
 wrote:

> Try this. I'm "almost" sure it will work 8-)
>
> $form->select('group', $options, array('selected' =>
> $this->data['Profile']['group']));
>
> On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita <
> andrei.m...@gmail.com> wrote:
>
>> Hello,
>>
>> I'm making an edit form and I can't get the existing value to be
>> selected into one of the select field.
>>
>> The classic input in the view: echo $form->input('group');
>>
>> I've changed that to a select:
>>
>> $options=array('Generatia 1'=>'Generatia 1','Generatia
>> 2'=>'Generatia 2', 'Generatia 3'=>'Generatia 3');
>> echo $form->select('group',$options);
>>
>> The existing value is in $this->data['Profile']['group'] and, in
>> my example, is equal to "Generatia 2"
>>
>> How can I make that one selected?
>>
>> echo $form->select('group',$options,
>> $this->data['Profile']['group']), as shown in the book, doesn't 
>> work. What
>> am I missing?
>>
>> Thanks
>>
>>
>>
>> Toate cele bune,
>> Andrei Mita
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and
>> help others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and
> help others with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google
> Group

Re: DebugKit

2010-04-30 Thread Jeremy Burns
I echo the appreciation. To be able to render a page without any die/debug 
statements and then view the variables, see what's in the session, look at the 
request and observe how long things took is magnificent. I never see anything 
in the SQL  tab though - not sure if it's just me?

I'd recommend this plug in to developers. It'll save you some hair.

Jeremy Burns
jeremybu...@me.com

On 30 Apr 2010, at 22:29, Ed Propsner wrote:

> @Mark, 
> 
> With the entire layout defined by CSS and divs I run into the situation every 
> once in a great while where one container paints over another even with no 
> positioning involved or higher/lower z-indexes. I think it happens mostly 
> because of how data is stacked inside of a particular stacking context. 
> Strange I know, but I seem to be a magnet for that type of thing 8-). Anywho, 
> the persistent problem with Chrome ended up being a caching issue. Other than 
> that I'm loving debugKit kit, I could kick myself in the @ss for being lazy 
> about it in the past 8-).
> 
> Outstanding job, 
> 
> - Ed 
> 
> 
> On Fri, Apr 30, 2010 at 12:47 PM, Jeremy Burns  wrote:
> Thanks Mark - that worked. I created a folder called debug_kit in 
> /app/webroot, and copied the folders that were inside debug_kit/webroot (css, 
> img & js) into it, and it all started to work.
> 
> Jeremy Burns
> jeremybu...@me.com
> 
> 
> On 30 Apr 2010, at 17:38, mark_story wrote:
> 
> > Fatal errors usually happen when there is a version mismatch.  As for
> > missing CSS, plugin assets require mod_rewrite/ some sort of url
> > rewriting.  I don't think they work without that.  Alternatively you
> > could copy the webroot directory inside the plugin into app/webroot/
> > debug_kit/ and things should start working.
> >
> > Ed: Debugkit should stack itself to the top as its at the end of the
> > page, and has a pretty high z-index.  I've never really run into
> > issues with it stacking under things, but I try to avoid playing with
> > z-index in my designs.  If you figure something out that can be fixed
> > in debug kit, please open a ticket so I can get it fixed.
> >
> > -Mark
> >
> > On Apr 30, 7:52 am, Ed Propsner  wrote:
> >> Sure, call me out,  LOL. Initially AD7six was correct and since upgrading 
> >> to
> >> Cake 1.3 I was still trying to run the 1.2 branch/version of debugkit and
> >> that was obviously a problem. I downloaded the master branch and was on the
> >> right track but there was a bit of mix up (oops) and I ended up dropping 
> >> the
> >> older version right back into the app ... nice. That obviously didn't work
> >> either :)
> >>
> >> Anyhow ... cake 1.3 + debugkit master branch = no issues
> >>
> >> The real lesson here: Keep your dirs in order and their content's properly
> >> labeled.
> >>
> >> If I keep going at this rate I'll end up as the designated poster child for
> >> what not to do :)
> >>
> >> *On a side note: *
> >> My entire layout is defined by CSS and divs. I had to tweak the stack order
> >> on both my app and debugkit to keep containers from overlapping. Chrome
> >> still has a few issues with the overlay but I can deal with it.
> >>
> >> Stay tuned for my next brain fart.
> >>
> >> - Ed
> >>
> >>
> >>
> >> On Fri, Apr 30, 2010 at 7:27 AM, Andrei Mita  wrote:
> >>> Maybe it would be useful for others to know were was your mistake :)
> >>
> >>> On Fri, Apr 30, 2010 at 1:49 PM, Ed Propsner  wrote:
> >>
>  Holy $%&! ... I got it to work the way it's supposed to.
> >>
>  I'm pretty sure I know where I went wrong but I'll spare you the details
>  for now ... I've almost reached my quota of idiocy for today :)
> >>
>  @Jeremy:  you're right ... simply drop it into plugins and you're off and
>  running.
> >>
>  WAY better than it was before.
> >>
>  - Ed
> >>
>  On Fri, Apr 30, 2010 at 6:18 AM, Ed Propsner wrote:
> >>
> > I could screw up a wet dream.
> >>
> > htdocs/cake/plugins <--- works
> >>
> > htdocs/mysite/plugins < works
> >>
> > htdocs/cake/app/plugins <--- don't work
> >>
> > I'm starting to confuse myself :)
> >>
> > On Fri, Apr 30, 2010 at 6:11 AM, Andrei Mita 
> > wrote:
> >>
> >> It has to be in /app/plugins
> >>
> >> On Fri, Apr 30, 2010 at 1:10 PM, Jeremy Burns 
> >> wrote:
> >>
> >>> Not sure - I've got it in /app/plugins.
> >>
> >>> Jeremy Burns
> >>> jeremybu...@me.com 
> >>
> >>> On 30 Apr 2010, at 11:08, Ed Propsner wrote:
> >>
> >>> K, here is a really dumb question for ya' ... does it matter where I
> >>> put it, and by that I mean ...
> >>
> >>> htdocs/cake/plugins
> >>
> >>> OR
> >>
> >>> htdocs/mysite/plugins
> >>
> >>> On Fri, Apr 30, 2010 at 5:55 AM, Ed Propsner 
> >>> wrote:
> >>
>  hmmm 
> >>
>  On Fri, Apr 30, 2010 at 5:53 AM, Jeremy Burns 
>  wrote:
> >>
> > Nope - just followed the simple instructions - nothing non standard.
> >>
> > Jeremy Burns
> >  jeremybu...

how to access dynamically created tables at runtime

2010-04-30 Thread etipaced
I am creating an "artificial temp table" dynamically during a single
page request and need to be able to instantiate a model object using
this table so I can CRUD it. All of this needs to happen during a
single page call (i.e. no postback or redirects between table creation
and model instantiation).

I keep getting "database table for model was not found". The bottom
line is that Cake is not getting refreshed with the newly added table
so there's no knowledge of it inside the framework. I proved this by
manually entering the table name in the ClassRegistry::init() call
(normally the table name is assigned by variable because the table
name is dynamically generated, etc.), and then re-running the request
works no problem.

Answering the obvious, I'm only trying to do this because using
standard MySQL temp tables don't work in Cake as expected. In other
words, I can't instantiate a model object using the temp table.

Apparently, there must be some routine which "refreshes" or updates
the available database tables. Any insight on this is appreciated!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread Ed Propsner
@Mark,

With the entire layout defined by CSS and divs I run into the situation
every once in a great while where one container paints over another even
with no positioning involved or higher/lower z-indexes. I think it happens
mostly because of how data is stacked *inside* of a particular stacking
context. Strange I know, but I seem to be a magnet for that type of thing
8-). Anywho, the persistent problem with Chrome ended up being a caching
issue. Other than that I'm loving debugKit kit, I could kick myself in the
@ss for being lazy about it in the past 8-).

Outstanding job,

- Ed


On Fri, Apr 30, 2010 at 12:47 PM, Jeremy Burns  wrote:

> Thanks Mark - that worked. I created a folder called debug_kit in
> /app/webroot, and copied the folders that were inside debug_kit/webroot
> (css, img & js) into it, and it all started to work.
>
> Jeremy Burns
> jeremybu...@me.com
>
>
> On 30 Apr 2010, at 17:38, mark_story wrote:
>
> > Fatal errors usually happen when there is a version mismatch.  As for
> > missing CSS, plugin assets require mod_rewrite/ some sort of url
> > rewriting.  I don't think they work without that.  Alternatively you
> > could copy the webroot directory inside the plugin into app/webroot/
> > debug_kit/ and things should start working.
> >
> > Ed: Debugkit should stack itself to the top as its at the end of the
> > page, and has a pretty high z-index.  I've never really run into
> > issues with it stacking under things, but I try to avoid playing with
> > z-index in my designs.  If you figure something out that can be fixed
> > in debug kit, please open a ticket so I can get it fixed.
> >
> > -Mark
> >
> > On Apr 30, 7:52 am, Ed Propsner  wrote:
> >> Sure, call me out,  LOL. Initially AD7six was correct and since
> upgrading to
> >> Cake 1.3 I was still trying to run the 1.2 branch/version of debugkit
> and
> >> that was obviously a problem. I downloaded the master branch and was on
> the
> >> right track but there was a bit of mix up (oops) and I ended up dropping
> the
> >> older version right back into the app ... nice. That obviously didn't
> work
> >> either :)
> >>
> >> Anyhow ... cake 1.3 + debugkit master branch = no issues
> >>
> >> The real lesson here: Keep your dirs in order and their content's
> properly
> >> labeled.
> >>
> >> If I keep going at this rate I'll end up as the designated poster child
> for
> >> what not to do :)
> >>
> >> *On a side note: *
> >> My entire layout is defined by CSS and divs. I had to tweak the stack
> order
> >> on both my app and debugkit to keep containers from overlapping. Chrome
> >> still has a few issues with the overlay but I can deal with it.
> >>
> >> Stay tuned for my next brain fart.
> >>
> >> - Ed
> >>
> >>
> >>
> >> On Fri, Apr 30, 2010 at 7:27 AM, Andrei Mita 
> wrote:
> >>> Maybe it would be useful for others to know were was your mistake :)
> >>
> >>> On Fri, Apr 30, 2010 at 1:49 PM, Ed Propsner 
> wrote:
> >>
>  Holy $%&! ... I got it to work the way it's supposed to.
> >>
>  I'm pretty sure I know where I went wrong but I'll spare you the
> details
>  for now ... I've almost reached my quota of idiocy for today :)
> >>
>  @Jeremy:  you're right ... simply drop it into plugins and you're off
> and
>  running.
> >>
>  WAY better than it was before.
> >>
>  - Ed
> >>
>  On Fri, Apr 30, 2010 at 6:18 AM, Ed Propsner  >wrote:
> >>
> > I could screw up a wet dream.
> >>
> > htdocs/cake/plugins <--- works
> >>
> > htdocs/mysite/plugins < works
> >>
> > htdocs/cake/app/plugins <--- don't work
> >>
> > I'm starting to confuse myself :)
> >>
> > On Fri, Apr 30, 2010 at 6:11 AM, Andrei Mita  >wrote:
> >>
> >> It has to be in /app/plugins
> >>
> >> On Fri, Apr 30, 2010 at 1:10 PM, Jeremy Burns  >wrote:
> >>
> >>> Not sure - I've got it in /app/plugins.
> >>
> >>> Jeremy Burns
> >>> jeremybu...@me.com 
> >>
> >>> On 30 Apr 2010, at 11:08, Ed Propsner wrote:
> >>
> >>> K, here is a really dumb question for ya' ... does it matter where
> I
> >>> put it, and by that I mean ...
> >>
> >>> htdocs/cake/plugins
> >>
> >>> OR
> >>
> >>> htdocs/mysite/plugins
> >>
> >>> On Fri, Apr 30, 2010 at 5:55 AM, Ed Propsner  >wrote:
> >>
>  hmmm 
> >>
>  On Fri, Apr 30, 2010 at 5:53 AM, Jeremy Burns  >wrote:
> >>
> > Nope - just followed the simple instructions - nothing non
> standard.
> >>
> > Jeremy Burns
> >  jeremybu...@me.com 
> >>
> > On 30 Apr 2010, at 10:51, Ed Propsner wrote:
> >>
> > @Jeremy
> >>
> > Did you have to manually load the CSS?
> >>
> > $html->css(array('style', 'addstyle', 'debug_toolbar'));
> >>
> > On Fri, Apr 30, 2010 at 5:46 AM, Ed Propsner <
> crotchf...@gmail.com>wrote:
> >>
> >> I had no clue it was supposed to dock itself all nice and neat
> like
> >> that  you would think "toolbar" would have been a giveaway
> :) I'm going

Re: How to output UTF-8 sign?

2010-04-30 Thread sebb86
Well, I don't know at which position in the source code, i have to
reset it.
I would reset with this source code: $sortCssClass = 'sort_none';
I think, i need to know, which column header is clicked and then i
have to reset all others.
Could you give me a last hint please?

Thanks!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


re: 1.3.0

2010-04-30 Thread parsifal
I'm very excited that 1.3.0 is out. Great work, all.

I did notice a couple problems, though. One semi-major, one graphical:

1. The $ROOT/.htaccess file is missing. I was able to copy it from
1.2.7, and everything worked. It looks like this:


RewriteEngine on
RewriteRule^$ app/webroot/[L]
RewriteRule(.*) app/webroot/$1 [L]


2. The "box" image for CakePHP, adjacent to the "Download 1.3" link,
still reads "1.2".

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: i need ajax shopping cart with cakephp

2010-04-30 Thread Mike
It's something I'll add at some point.  But Kaching is meant for
people who want to write code.  If you don't then you should be
looking at a something like Magento (www.magentocommerce.com)

On Apr 30, 8:53 am, hoss7  wrote:
> i am new in cakephp mike can you do it for me to convert this source
> to ajax
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


How create a observeField with the new JSHelper?

2010-04-30 Thread Celso
Hi ! I want using the new JSHelper with Jquery, i need create a
observeField to fill a combo with another combo that changed

Thanks!
Celso

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-04-30 Thread Miles J
When I asked about controllers in sub-folders, the Cake devs told me
to just use plugins -.-

Sure there are ways around it, but I am repeating what I was told.

On Apr 30, 12:38 am, AD7six  wrote:
> Matthew,
>
> They aren't /supposed/ to be in subfolders - please run through (I.e.
> don't just read) the blog tutorial and try with a browser.
>
> On Apr 29, 7:12 pm, Miles J  wrote:
>
> > Well its simple. You cant put controllers within subfolders. Cake
> > doesn't support it.
>
> Miles,
>
> You're doing that my-assumptions = fact thing again.
>
> http://book.cakephp.org/view/530/Importing-Core-Libs(it's exactly the
> same for any type).
>
> If your intention is to learn by stating your opinion until someone
> points out your wrong (which is exactly how I learn most things) -
> please clarify.
>
> AD
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread Jeremy Burns
Thanks Mark - that worked. I created a folder called debug_kit in /app/webroot, 
and copied the folders that were inside debug_kit/webroot (css, img & js) into 
it, and it all started to work.

Jeremy Burns
jeremybu...@me.com


On 30 Apr 2010, at 17:38, mark_story wrote:

> Fatal errors usually happen when there is a version mismatch.  As for
> missing CSS, plugin assets require mod_rewrite/ some sort of url
> rewriting.  I don't think they work without that.  Alternatively you
> could copy the webroot directory inside the plugin into app/webroot/
> debug_kit/ and things should start working.
> 
> Ed: Debugkit should stack itself to the top as its at the end of the
> page, and has a pretty high z-index.  I've never really run into
> issues with it stacking under things, but I try to avoid playing with
> z-index in my designs.  If you figure something out that can be fixed
> in debug kit, please open a ticket so I can get it fixed.
> 
> -Mark
> 
> On Apr 30, 7:52 am, Ed Propsner  wrote:
>> Sure, call me out,  LOL. Initially AD7six was correct and since upgrading to
>> Cake 1.3 I was still trying to run the 1.2 branch/version of debugkit and
>> that was obviously a problem. I downloaded the master branch and was on the
>> right track but there was a bit of mix up (oops) and I ended up dropping the
>> older version right back into the app ... nice. That obviously didn't work
>> either :)
>> 
>> Anyhow ... cake 1.3 + debugkit master branch = no issues
>> 
>> The real lesson here: Keep your dirs in order and their content's properly
>> labeled.
>> 
>> If I keep going at this rate I'll end up as the designated poster child for
>> what not to do :)
>> 
>> *On a side note: *
>> My entire layout is defined by CSS and divs. I had to tweak the stack order
>> on both my app and debugkit to keep containers from overlapping. Chrome
>> still has a few issues with the overlay but I can deal with it.
>> 
>> Stay tuned for my next brain fart.
>> 
>> - Ed
>> 
>> 
>> 
>> On Fri, Apr 30, 2010 at 7:27 AM, Andrei Mita  wrote:
>>> Maybe it would be useful for others to know were was your mistake :)
>> 
>>> On Fri, Apr 30, 2010 at 1:49 PM, Ed Propsner  wrote:
>> 
 Holy $%&! ... I got it to work the way it's supposed to.
>> 
 I'm pretty sure I know where I went wrong but I'll spare you the details
 for now ... I've almost reached my quota of idiocy for today :)
>> 
 @Jeremy:  you're right ... simply drop it into plugins and you're off and
 running.
>> 
 WAY better than it was before.
>> 
 - Ed
>> 
 On Fri, Apr 30, 2010 at 6:18 AM, Ed Propsner wrote:
>> 
> I could screw up a wet dream.
>> 
> htdocs/cake/plugins <--- works
>> 
> htdocs/mysite/plugins < works
>> 
> htdocs/cake/app/plugins <--- don't work
>> 
> I'm starting to confuse myself :)
>> 
> On Fri, Apr 30, 2010 at 6:11 AM, Andrei Mita wrote:
>> 
>> It has to be in /app/plugins
>> 
>> On Fri, Apr 30, 2010 at 1:10 PM, Jeremy Burns wrote:
>> 
>>> Not sure - I've got it in /app/plugins.
>> 
>>> Jeremy Burns
>>> jeremybu...@me.com 
>> 
>>> On 30 Apr 2010, at 11:08, Ed Propsner wrote:
>> 
>>> K, here is a really dumb question for ya' ... does it matter where I
>>> put it, and by that I mean ...
>> 
>>> htdocs/cake/plugins
>> 
>>> OR
>> 
>>> htdocs/mysite/plugins
>> 
>>> On Fri, Apr 30, 2010 at 5:55 AM, Ed Propsner 
>>> wrote:
>> 
 hmmm 
>> 
 On Fri, Apr 30, 2010 at 5:53 AM, Jeremy Burns 
 wrote:
>> 
> Nope - just followed the simple instructions - nothing non standard.
>> 
> Jeremy Burns
>  jeremybu...@me.com 
>> 
> On 30 Apr 2010, at 10:51, Ed Propsner wrote:
>> 
> @Jeremy
>> 
> Did you have to manually load the CSS?
>> 
> $html->css(array('style', 'addstyle', 'debug_toolbar'));
>> 
> On Fri, Apr 30, 2010 at 5:46 AM, Ed Propsner 
> wrote:
>> 
>> I had no clue it was supposed to dock itself all nice and neat like
>> that  you would think "toolbar" would have been a giveaway :) 
>> I'm going
>> to scrap it and start again.
>> 
>> On Fri, Apr 30, 2010 at 5:44 AM, Jeremy Burns 
>> wrote:
>> 
>>> It works locally on FF, Safari and Chrome. Remote - no CSS and I
>>> get what you're getting.
>> 
>>> Jeremy Burns
>>>  jeremybu...@me.com 
>> 
>>> On 30 Apr 2010, at 10:41, Ed Propsner wrote:
>> 
>>> wtf? I'm on a mission now ... Is that browser specific (FF
>>> presumably)? I must have an underlying problem somewhere still 
>>> because I'm
>>> getting a 'break on' error in FF.
>> 
>>> On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns 
>>> wrote:
>> 
 Not sure if this will post OK...
>> 
 
>> 
 Jeremy Burns
  jeremybu...@me.com 
>> 
 On 30 Apr 2010, at 10:35, Ed Propsner wrote:
>> 
>>

Re: DebugKit

2010-04-30 Thread mark_story
Fatal errors usually happen when there is a version mismatch.  As for
missing CSS, plugin assets require mod_rewrite/ some sort of url
rewriting.  I don't think they work without that.  Alternatively you
could copy the webroot directory inside the plugin into app/webroot/
debug_kit/ and things should start working.

Ed: Debugkit should stack itself to the top as its at the end of the
page, and has a pretty high z-index.  I've never really run into
issues with it stacking under things, but I try to avoid playing with
z-index in my designs.  If you figure something out that can be fixed
in debug kit, please open a ticket so I can get it fixed.

-Mark

On Apr 30, 7:52 am, Ed Propsner  wrote:
> Sure, call me out,  LOL. Initially AD7six was correct and since upgrading to
> Cake 1.3 I was still trying to run the 1.2 branch/version of debugkit and
> that was obviously a problem. I downloaded the master branch and was on the
> right track but there was a bit of mix up (oops) and I ended up dropping the
> older version right back into the app ... nice. That obviously didn't work
> either :)
>
> Anyhow ... cake 1.3 + debugkit master branch = no issues
>
> The real lesson here: Keep your dirs in order and their content's properly
> labeled.
>
> If I keep going at this rate I'll end up as the designated poster child for
> what not to do :)
>
> *On a side note: *
> My entire layout is defined by CSS and divs. I had to tweak the stack order
> on both my app and debugkit to keep containers from overlapping. Chrome
> still has a few issues with the overlay but I can deal with it.
>
> Stay tuned for my next brain fart.
>
> - Ed
>
>
>
> On Fri, Apr 30, 2010 at 7:27 AM, Andrei Mita  wrote:
> > Maybe it would be useful for others to know were was your mistake :)
>
> > On Fri, Apr 30, 2010 at 1:49 PM, Ed Propsner  wrote:
>
> >> Holy $%&! ... I got it to work the way it's supposed to.
>
> >> I'm pretty sure I know where I went wrong but I'll spare you the details
> >> for now ... I've almost reached my quota of idiocy for today :)
>
> >> @Jeremy:  you're right ... simply drop it into plugins and you're off and
> >> running.
>
> >> WAY better than it was before.
>
> >> - Ed
>
> >> On Fri, Apr 30, 2010 at 6:18 AM, Ed Propsner wrote:
>
> >>> I could screw up a wet dream.
>
> >>> htdocs/cake/plugins <--- works
>
> >>> htdocs/mysite/plugins < works
>
> >>> htdocs/cake/app/plugins <--- don't work
>
> >>> I'm starting to confuse myself :)
>
> >>> On Fri, Apr 30, 2010 at 6:11 AM, Andrei Mita wrote:
>
>  It has to be in /app/plugins
>
>  On Fri, Apr 30, 2010 at 1:10 PM, Jeremy Burns wrote:
>
> > Not sure - I've got it in /app/plugins.
>
> > Jeremy Burns
> > jeremybu...@me.com 
>
> > On 30 Apr 2010, at 11:08, Ed Propsner wrote:
>
> > K, here is a really dumb question for ya' ... does it matter where I
> > put it, and by that I mean ...
>
> > htdocs/cake/plugins
>
> > OR
>
> > htdocs/mysite/plugins
>
> > On Fri, Apr 30, 2010 at 5:55 AM, Ed Propsner 
> > wrote:
>
> >> hmmm 
>
> >> On Fri, Apr 30, 2010 at 5:53 AM, Jeremy Burns 
> >> wrote:
>
> >>> Nope - just followed the simple instructions - nothing non standard.
>
> >>> Jeremy Burns
> >>>  jeremybu...@me.com 
>
> >>> On 30 Apr 2010, at 10:51, Ed Propsner wrote:
>
> >>> @Jeremy
>
> >>> Did you have to manually load the CSS?
>
> >>> $html->css(array('style', 'addstyle', 'debug_toolbar'));
>
> >>> On Fri, Apr 30, 2010 at 5:46 AM, Ed Propsner 
> >>> wrote:
>
>  I had no clue it was supposed to dock itself all nice and neat like
>  that  you would think "toolbar" would have been a giveaway :) 
>  I'm going
>  to scrap it and start again.
>
>  On Fri, Apr 30, 2010 at 5:44 AM, Jeremy Burns 
>  wrote:
>
> > It works locally on FF, Safari and Chrome. Remote - no CSS and I
> > get what you're getting.
>
> > Jeremy Burns
> >  jeremybu...@me.com 
>
> > On 30 Apr 2010, at 10:41, Ed Propsner wrote:
>
> > wtf? I'm on a mission now ... Is that browser specific (FF
> > presumably)? I must have an underlying problem somewhere still 
> > because I'm
> > getting a 'break on' error in FF.
>
> > On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns 
> > wrote:
>
> >> Not sure if this will post OK...
>
> >> 
>
> >> Jeremy Burns
> >>  jeremybu...@me.com 
>
> >> On 30 Apr 2010, at 10:35, Ed Propsner wrote:
>
> >> You don't say ?? That would be just swell and I'm not getting
> >> that.
>
> >> On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns  >> > wrote:
>
> >>> If it installs correctly it minimises to an icon in the upper
> >>> right hand corner of the page. Clicking on it zooms it out and 
> >>> gives drop
> >>> downs. When the CSS doesn't work, you get the long list at the 
> 

Re: Writing files

2010-04-30 Thread Jeremy Burns
Thanks again.

Jeremy Burns
jeremybu...@me.com

On 30 Apr 2010, at 17:33, Sam Sherlock wrote:

> look in cake/core/paths.php for more
> 
>  a whole bunch of defined paths exist  WWW_ROOT ROOT WEBROOT TMP etc
> 
> enjoy - S
> 
> 
> On 30 April 2010 17:14, Jeremy Burns  wrote:
> Like a dream - thank you Sam.
> 
> Jeremy Burns
> jeremybu...@me.com
> (Skype) +44 208 123 3822 (jeremy_burns)
> (m) +44 7973 481949
> (h) +44 208 530 7573
> 
> On 30 Apr 2010, at 17:10, Sam Sherlock wrote:
> 
>> Use APP
>> 
>>  file_put_contents(APP . 'reports' .DS .$file, $contents);
>> 
>> - S
>> 
>> 
>> 
>> On 30 April 2010 16:54, Jeremy Burns  wrote:
>> file_put_contents('/app/reports/filename.txt', $content)
>> 
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>> with their CakePHP related questions.
>>  
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Writing files

2010-04-30 Thread Sam Sherlock
look in cake/core/paths.php for more

 a whole bunch of defined paths exist  WWW_ROOT ROOT WEBROOT TMP etc

enjoy - S


On 30 April 2010 17:14, Jeremy Burns  wrote:

> Like a dream - thank you Sam.
>
> Jeremy Burns
> jeremybu...@me.com 
> (Skype) +44 208 123 3822 (jeremy_burns)
> (m) +44 7973 481949
> (h) +44 208 530 7573
>
> On 30 Apr 2010, at 17:10, Sam Sherlock wrote:
>
> Use APP
>
> file_put_contents(APP . 'reports' .DS .$file, $contents);
>
> - S
>
>
>
> On 30 April 2010 16:54, Jeremy Burns  wrote:
>
>> file_put_contents('/app/reports/filename.txt', $content)
>>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Writing files

2010-04-30 Thread Jeremy Burns
Like a dream - thank you Sam.

Jeremy Burns
jeremybu...@me.com
(Skype) +44 208 123 3822 (jeremy_burns)
(m) +44 7973 481949
(h) +44 208 530 7573

On 30 Apr 2010, at 17:10, Sam Sherlock wrote:

> Use APP
> 
>   file_put_contents(APP . 'reports' .DS .$file, $contents);
> 
> - S
> 
> 
> 
> On 30 April 2010 16:54, Jeremy Burns  wrote:
> file_put_contents('/app/reports/filename.txt', $content)
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Writing files

2010-04-30 Thread Sam Sherlock
Use APP

file_put_contents(APP . 'reports' .DS .$file, $contents);

- S



On 30 April 2010 16:54, Jeremy Burns  wrote:

> file_put_contents('/app/reports/filename.txt', $content)
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Writing files

2010-04-30 Thread Jeremy Burns
I am using the media view to serve files in a folder under /app (let's
call it /app/reports), which is outside of /app/webroot. Reading works
great - but how can I write the files into /app/reports?

file_put_contents with no path writes to /webroot, using
file_put_contents('/app/reports/filename.txt', $content) fails with
'failed to open stream: No such file or directory' (which is kind of
obvious).

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Selected option in select

2010-04-30 Thread Ed Propsner
This also worked:

$options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia 2',
'Generatia 3'=>'Generatia 3');
 echo $form->select('group', $options, array('selected' => 'Generatia 2'));



On Fri, Apr 30, 2010 at 11:22 AM, Ed Propsner  wrote:

> I tried this one and it worked:
>
>  $options=array('G1'=>'Generatia 1','G2'=>'Generatia 2', 'G3'=>'Generatia
> 3');
>   echo $form->select('group', $options, array('selected' => 'G2'));
>
> On Fri, Apr 30, 2010 at 11:18 AM, Andrei Mita wrote:
>
>> I saw that right after I sent the e-mail. Now I have:
>>
>> $options=array('G1'=>'Generatia 1','G2'=>'Generatia 2',
>> 'G3'=>'Generatia 3');
>>
>>
>> echo $form->select('group', $options, array('selected' => 'G2'));
>> echo $form->select('group', $options, array('selected' =>
>> 'Generatia 2'));
>>
>>
>> None work.
>>
>>
>>
>> On Fri, Apr 30, 2010 at 6:14 PM, Jeremy Burns  wrote:
>>
>>> Could it be the space? Try replacing them both in the options array and
>>> the value you are trying to match (tacky I know, but at least it would
>>> isolate the problem).
>>>
>>>
>>> Jeremy Burns
>>> jeremybu...@me.com 
>>>
>>> On 30 Apr 2010, at 16:12, Andrei Mita wrote:
>>>
>>> I have added the model and there is no change.
>>>
>>> I have noticed that if I do the options like 'G1' => 'Generatia 1' and so
>>> on, it works.
>>>
>>>
>>> The debug on $options:
>>>
>>> Array
>>> (
>>> [Generatia 1] => Generatia 1
>>> [Generatia 2] => Generatia 2
>>> [Generatia 3] => Generatia 3
>>> [Mesteri] => Mesteri
>>> )
>>>
>>>
>>>
>>>
>>>
>>> On Fri, Apr 30, 2010 at 6:07 PM, Jeremy Burns wrote:
>>>
 What about:

 $form->select('Profile.group', $options, array('selected' =>
 $this->data['Profile']['group']));

 (in other words adding the model name to the select name)


 Jeremy Burns
 jeremybu...@me.com 


 On 30 Apr 2010, at 16:04, Andrei Mita wrote:

 I know, I fallowed the example but I'm missing something.


 On Fri, Apr 30, 2010 at 6:01 PM, Ed Propsner wrote:

> I just tried this one and it works :
>
> $options=array('M'=>'Male','F'=>'Female');
> echo $form->select('gender',$options, array('selected' => 'M'));
>
> On Fri, Apr 30, 2010 at 11:00 AM, Andrei Mita 
> wrote:
>
>> It doesn't work :((
>>
>>
>>
>> On Fri, Apr 30, 2010 at 5:58 PM, Andrei Mita 
>> wrote:
>>
>>> I've tried that. I'll try it again. If it works, I'm calling it a day
>>> :)
>>>
>>>
>>>
>>> On Fri, Apr 30, 2010 at 5:53 PM, Ed Propsner 
>>> wrote:
>>>
 Try this. I'm "almost" sure it will work 8-)

 $form->select('group', $options, array('selected' =>
 $this->data['Profile']['group']));

 On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita <
 andrei.m...@gmail.com> wrote:

> Hello,
>
> I'm making an edit form and I can't get the existing value to be
> selected into one of the select field.
>
> The classic input in the view: echo $form->input('group');
>
> I've changed that to a select:
>
> $options=array('Generatia 1'=>'Generatia 1','Generatia
> 2'=>'Generatia 2', 'Generatia 3'=>'Generatia 3');
> echo $form->select('group',$options);
>
> The existing value is in $this->data['Profile']['group'] and, in my
> example, is equal to "Generatia 2"
>
> How can I make that one selected?
>
> echo $form->select('group',$options,
> $this->data['Profile']['group']), as shown in the book, doesn't work. 
> What
> am I missing?
>
> Thanks
>
>
>
> Toate cele bune,
> Andrei Mita
>
> Check out the new CakePHP Questions site http://cakeqs.org and
> help others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>


 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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
 cake-php+unsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

>>>
>>>
>>
>> Ch

Re: Selected option in select

2010-04-30 Thread Ed Propsner
I tried this one and it worked:

 $options=array('G1'=>'Generatia 1','G2'=>'Generatia 2', 'G3'=>'Generatia
3');
  echo $form->select('group', $options, array('selected' => 'G2'));

On Fri, Apr 30, 2010 at 11:18 AM, Andrei Mita  wrote:

> I saw that right after I sent the e-mail. Now I have:
>
> $options=array('G1'=>'Generatia 1','G2'=>'Generatia 2',
> 'G3'=>'Generatia 3');
>
>
> echo $form->select('group', $options, array('selected' => 'G2'));
> echo $form->select('group', $options, array('selected' =>
> 'Generatia 2'));
>
>
> None work.
>
>
>
> On Fri, Apr 30, 2010 at 6:14 PM, Jeremy Burns  wrote:
>
>> Could it be the space? Try replacing them both in the options array and
>> the value you are trying to match (tacky I know, but at least it would
>> isolate the problem).
>>
>>
>> Jeremy Burns
>> jeremybu...@me.com 
>>
>> On 30 Apr 2010, at 16:12, Andrei Mita wrote:
>>
>> I have added the model and there is no change.
>>
>> I have noticed that if I do the options like 'G1' => 'Generatia 1' and so
>> on, it works.
>>
>>
>> The debug on $options:
>>
>> Array
>> (
>> [Generatia 1] => Generatia 1
>> [Generatia 2] => Generatia 2
>> [Generatia 3] => Generatia 3
>> [Mesteri] => Mesteri
>> )
>>
>>
>>
>>
>>
>> On Fri, Apr 30, 2010 at 6:07 PM, Jeremy Burns  wrote:
>>
>>> What about:
>>>
>>> $form->select('Profile.group', $options, array('selected' =>
>>> $this->data['Profile']['group']));
>>>
>>> (in other words adding the model name to the select name)
>>>
>>>
>>> Jeremy Burns
>>> jeremybu...@me.com 
>>>
>>>
>>> On 30 Apr 2010, at 16:04, Andrei Mita wrote:
>>>
>>> I know, I fallowed the example but I'm missing something.
>>>
>>>
>>> On Fri, Apr 30, 2010 at 6:01 PM, Ed Propsner wrote:
>>>
 I just tried this one and it works :

 $options=array('M'=>'Male','F'=>'Female');
 echo $form->select('gender',$options, array('selected' => 'M'));

 On Fri, Apr 30, 2010 at 11:00 AM, Andrei Mita wrote:

> It doesn't work :((
>
>
>
> On Fri, Apr 30, 2010 at 5:58 PM, Andrei Mita wrote:
>
>> I've tried that. I'll try it again. If it works, I'm calling it a day
>> :)
>>
>>
>>
>> On Fri, Apr 30, 2010 at 5:53 PM, Ed Propsner wrote:
>>
>>> Try this. I'm "almost" sure it will work 8-)
>>>
>>> $form->select('group', $options, array('selected' =>
>>> $this->data['Profile']['group']));
>>>
>>> On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita >> > wrote:
>>>
 Hello,

 I'm making an edit form and I can't get the existing value to be
 selected into one of the select field.

 The classic input in the view: echo $form->input('group');

 I've changed that to a select:

 $options=array('Generatia 1'=>'Generatia 1','Generatia
 2'=>'Generatia 2', 'Generatia 3'=>'Generatia 3');
 echo $form->select('group',$options);

 The existing value is in $this->data['Profile']['group'] and, in my
 example, is equal to "Generatia 2"

 How can I make that one selected?

 echo $form->select('group',$options,
 $this->data['Profile']['group']), as shown in the book, doesn't work. 
 What
 am I missing?

 Thanks



 Toate cele bune,
 Andrei Mita

 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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
 cake-php+unsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

>>>
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group

Re: mysql union equivalent?

2010-04-30 Thread salsan

Thanks for posting useful information. I want to add here 
http://phpforms.net/tutorial/html-basics/form-builder.html form builder 
which would help you in creating php forms.

-- 
View this message in context: 
http://old.nabble.com/mysql-union-equivalent--tp12658421p28413482.html
Sent from the CakePHP mailing list archive at Nabble.com.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Selected option in select

2010-04-30 Thread Andrei Mita
I saw that right after I sent the e-mail. Now I have:

$options=array('G1'=>'Generatia 1','G2'=>'Generatia 2',
'G3'=>'Generatia 3');


echo $form->select('group', $options, array('selected' => 'G2'));
echo $form->select('group', $options, array('selected' => 'Generatia
2'));


None work.


On Fri, Apr 30, 2010 at 6:14 PM, Jeremy Burns  wrote:

> Could it be the space? Try replacing them both in the options array and the
> value you are trying to match (tacky I know, but at least it would isolate
> the problem).
>
>
> Jeremy Burns
> jeremybu...@me.com 
>
> On 30 Apr 2010, at 16:12, Andrei Mita wrote:
>
> I have added the model and there is no change.
>
> I have noticed that if I do the options like 'G1' => 'Generatia 1' and so
> on, it works.
>
>
> The debug on $options:
>
> Array
> (
> [Generatia 1] => Generatia 1
> [Generatia 2] => Generatia 2
> [Generatia 3] => Generatia 3
> [Mesteri] => Mesteri
> )
>
>
>
>
>
> On Fri, Apr 30, 2010 at 6:07 PM, Jeremy Burns  wrote:
>
>> What about:
>>
>> $form->select('Profile.group', $options, array('selected' =>
>> $this->data['Profile']['group']));
>>
>> (in other words adding the model name to the select name)
>>
>>
>> Jeremy Burns
>> jeremybu...@me.com 
>>
>>
>> On 30 Apr 2010, at 16:04, Andrei Mita wrote:
>>
>> I know, I fallowed the example but I'm missing something.
>>
>>
>> On Fri, Apr 30, 2010 at 6:01 PM, Ed Propsner wrote:
>>
>>> I just tried this one and it works :
>>>
>>> $options=array('M'=>'Male','F'=>'Female');
>>> echo $form->select('gender',$options, array('selected' => 'M'));
>>>
>>> On Fri, Apr 30, 2010 at 11:00 AM, Andrei Mita wrote:
>>>
 It doesn't work :((



 On Fri, Apr 30, 2010 at 5:58 PM, Andrei Mita wrote:

> I've tried that. I'll try it again. If it works, I'm calling it a day
> :)
>
>
>
> On Fri, Apr 30, 2010 at 5:53 PM, Ed Propsner wrote:
>
>> Try this. I'm "almost" sure it will work 8-)
>>
>> $form->select('group', $options, array('selected' =>
>> $this->data['Profile']['group']));
>>
>> On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita 
>> wrote:
>>
>>> Hello,
>>>
>>> I'm making an edit form and I can't get the existing value to be
>>> selected into one of the select field.
>>>
>>> The classic input in the view: echo $form->input('group');
>>>
>>> I've changed that to a select:
>>>
>>> $options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia
>>> 2', 'Generatia 3'=>'Generatia 3');
>>> echo $form->select('group',$options);
>>>
>>> The existing value is in $this->data['Profile']['group'] and, in my
>>> example, is equal to "Generatia 2"
>>>
>>> How can I make that one selected?
>>>
>>> echo $form->select('group',$options,
>>> $this->data['Profile']['group']), as shown in the book, doesn't work. 
>>> What
>>> am I missing?
>>>
>>> Thanks
>>>
>>>
>>>
>>> Toate cele bune,
>>> Andrei Mita
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>

 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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
 cake-php+unsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

>>>
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.

Re: Selected option in select

2010-04-30 Thread Jeremy Burns
Could it be the space? Try replacing them both in the options array and the 
value you are trying to match (tacky I know, but at least it would isolate the 
problem).

Jeremy Burns
jeremybu...@me.com

On 30 Apr 2010, at 16:12, Andrei Mita wrote:

> I have added the model and there is no change.
> 
> I have noticed that if I do the options like 'G1' => 'Generatia 1' and so on, 
> it works.
> 
> 
> The debug on $options:
> 
> Array
> (
> [Generatia 1] => Generatia 1
> [Generatia 2] => Generatia 2
> [Generatia 3] => Generatia 3
> [Mesteri] => Mesteri
> )
> 
> 
> 
> 
> 
> On Fri, Apr 30, 2010 at 6:07 PM, Jeremy Burns  wrote:
> What about:
> 
> $form->select('Profile.group', $options, array('selected' => 
> $this->data['Profile']['group']));
> 
> (in other words adding the model name to the select name)
> 
> 
> Jeremy Burns
> jeremybu...@me.com
> 
> 
> On 30 Apr 2010, at 16:04, Andrei Mita wrote:
> 
>> I know, I fallowed the example but I'm missing something.
>> 
>> 
>> On Fri, Apr 30, 2010 at 6:01 PM, Ed Propsner  wrote:
>> I just tried this one and it works : 
>> 
>> $options=array('M'=>'Male','F'=>'Female');
>> echo $form->select('gender',$options, array('selected' => 'M'));
>> 
>> On Fri, Apr 30, 2010 at 11:00 AM, Andrei Mita  wrote:
>> It doesn't work :((
>> 
>> 
>> 
>> On Fri, Apr 30, 2010 at 5:58 PM, Andrei Mita  wrote:
>> I've tried that. I'll try it again. If it works, I'm calling it a day :)
>> 
>> 
>> 
>> On Fri, Apr 30, 2010 at 5:53 PM, Ed Propsner  wrote:
>> Try this. I'm "almost" sure it will work 8-)
>> 
>> $form->select('group', $options, array('selected' => 
>> $this->data['Profile']['group']));
>> 
>> On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita  wrote:
>> Hello,
>> 
>> I'm making an edit form and I can't get the existing value to be selected 
>> into one of the select field.
>> 
>> The classic input in the view: echo $form->input('group');
>> 
>> I've changed that to a select: 
>> 
>> $options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia 2', 
>> 'Generatia 3'=>'Generatia 3');
>> echo $form->select('group',$options);
>> 
>> The existing value is in $this->data['Profile']['group'] and, in my example, 
>> is equal to "Generatia 2"
>> 
>> How can I make that one selected?
>> 
>> echo $form->select('group',$options, $this->data['Profile']['group']), as 
>> shown in the book, doesn't work. What am I missing?
>> 
>> Thanks
>> 
>> 
>> 
>> Toate cele bune,
>> Andrei Mita
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>> with their CakePHP related questions.
>>  
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>> http://groups.google.com/group/cake-php?hl=en
>> 
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>> with their CakePHP related questions.
>>  
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>> http://groups.google.com/group/cake-php?hl=en
>> 
>> 
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>> with their CakePHP related questions.
>>  
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>> http://groups.google.com/group/cake-php?hl=en
>> 
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>> with their CakePHP related questions.
>>  
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>> http://groups.google.com/group/cake-php?hl=en
>> 
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>> with their CakePHP related questions.
>>  
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> You received this message because you are 

Re: Selected option in select

2010-04-30 Thread Andrei Mita
Thought of that and tried it without $this->data, just plain text.


On Fri, Apr 30, 2010 at 6:12 PM, Ed Propsner  wrote:

> Be sure $this->data['Profile']['group'] matches one of the options
> exactly. Typos, capitalize, extra spaces, etc. will keep it from selecting.
> I had one that wouldn't select and the difference was 'this' and ' this '
>
>
> On Fri, Apr 30, 2010 at 11:07 AM, Jeremy Burns  wrote:
>
>> What about:
>>
>> $form->select('Profile.group', $options, array('selected' =>
>> $this->data['Profile']['group']));
>>
>> (in other words adding the model name to the select name)
>>
>>
>> Jeremy Burns
>> jeremybu...@me.com 
>>
>>
>> On 30 Apr 2010, at 16:04, Andrei Mita wrote:
>>
>> I know, I fallowed the example but I'm missing something.
>>
>>
>> On Fri, Apr 30, 2010 at 6:01 PM, Ed Propsner wrote:
>>
>>> I just tried this one and it works :
>>>
>>> $options=array('M'=>'Male','F'=>'Female');
>>> echo $form->select('gender',$options, array('selected' => 'M'));
>>>
>>> On Fri, Apr 30, 2010 at 11:00 AM, Andrei Mita wrote:
>>>
 It doesn't work :((



 On Fri, Apr 30, 2010 at 5:58 PM, Andrei Mita wrote:

> I've tried that. I'll try it again. If it works, I'm calling it a day
> :)
>
>
>
> On Fri, Apr 30, 2010 at 5:53 PM, Ed Propsner wrote:
>
>> Try this. I'm "almost" sure it will work 8-)
>>
>> $form->select('group', $options, array('selected' =>
>> $this->data['Profile']['group']));
>>
>> On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita 
>> wrote:
>>
>>> Hello,
>>>
>>> I'm making an edit form and I can't get the existing value to be
>>> selected into one of the select field.
>>>
>>> The classic input in the view: echo $form->input('group');
>>>
>>> I've changed that to a select:
>>>
>>> $options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia
>>> 2', 'Generatia 3'=>'Generatia 3');
>>> echo $form->select('group',$options);
>>>
>>> The existing value is in $this->data['Profile']['group'] and, in my
>>> example, is equal to "Generatia 2"
>>>
>>> How can I make that one selected?
>>>
>>> echo $form->select('group',$options,
>>> $this->data['Profile']['group']), as shown in the book, doesn't work. 
>>> What
>>> am I missing?
>>>
>>> Thanks
>>>
>>>
>>>
>>> Toate cele bune,
>>> Andrei Mita
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>

 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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
 cake-php+unsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

>>>
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>> at http://groups.google.com/group/cake-php?hl=en
>>
>>
>>  Check out the new CakePHP Questions 

Re: Selected option in select

2010-04-30 Thread Andrei Mita
I have added the model and there is no change.

I have noticed that if I do the options like 'G1' => 'Generatia 1' and so
on, it works.


The debug on $options:

Array
(
[Generatia 1] => Generatia 1
[Generatia 2] => Generatia 2
[Generatia 3] => Generatia 3
[Mesteri] => Mesteri
)





On Fri, Apr 30, 2010 at 6:07 PM, Jeremy Burns  wrote:

> What about:
>
> $form->select('Profile.group', $options, array('selected' =>
> $this->data['Profile']['group']));
>
> (in other words adding the model name to the select name)
>
>
> Jeremy Burns
> jeremybu...@me.com 
>
>
> On 30 Apr 2010, at 16:04, Andrei Mita wrote:
>
> I know, I fallowed the example but I'm missing something.
>
>
> On Fri, Apr 30, 2010 at 6:01 PM, Ed Propsner  wrote:
>
>> I just tried this one and it works :
>>
>> $options=array('M'=>'Male','F'=>'Female');
>> echo $form->select('gender',$options, array('selected' => 'M'));
>>
>> On Fri, Apr 30, 2010 at 11:00 AM, Andrei Mita wrote:
>>
>>> It doesn't work :((
>>>
>>>
>>>
>>> On Fri, Apr 30, 2010 at 5:58 PM, Andrei Mita wrote:
>>>
 I've tried that. I'll try it again. If it works, I'm calling it a day :)



 On Fri, Apr 30, 2010 at 5:53 PM, Ed Propsner wrote:

> Try this. I'm "almost" sure it will work 8-)
>
> $form->select('group', $options, array('selected' =>
> $this->data['Profile']['group']));
>
> On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita 
> wrote:
>
>> Hello,
>>
>> I'm making an edit form and I can't get the existing value to be
>> selected into one of the select field.
>>
>> The classic input in the view: echo $form->input('group');
>>
>> I've changed that to a select:
>>
>> $options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia
>> 2', 'Generatia 3'=>'Generatia 3');
>> echo $form->select('group',$options);
>>
>> The existing value is in $this->data['Profile']['group'] and, in my
>> example, is equal to "Generatia 2"
>>
>> How can I make that one selected?
>>
>> echo $form->select('group',$options, $this->data['Profile']['group']),
>> as shown in the book, doesn't work. What am I missing?
>>
>> Thanks
>>
>>
>>
>> Toate cele bune,
>> Andrei Mita
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>


>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to

Re: Selected option in select

2010-04-30 Thread Ed Propsner
Be sure $this->data['Profile']['group'] matches one of the options exactly.
Typos, capitalize, extra spaces, etc. will keep it from selecting. I had one
that wouldn't select and the difference was 'this' and ' this '

On Fri, Apr 30, 2010 at 11:07 AM, Jeremy Burns  wrote:

> What about:
>
> $form->select('Profile.group', $options, array('selected' =>
> $this->data['Profile']['group']));
>
> (in other words adding the model name to the select name)
>
>
> Jeremy Burns
> jeremybu...@me.com 
>
>
> On 30 Apr 2010, at 16:04, Andrei Mita wrote:
>
> I know, I fallowed the example but I'm missing something.
>
>
> On Fri, Apr 30, 2010 at 6:01 PM, Ed Propsner  wrote:
>
>> I just tried this one and it works :
>>
>> $options=array('M'=>'Male','F'=>'Female');
>> echo $form->select('gender',$options, array('selected' => 'M'));
>>
>> On Fri, Apr 30, 2010 at 11:00 AM, Andrei Mita wrote:
>>
>>> It doesn't work :((
>>>
>>>
>>>
>>> On Fri, Apr 30, 2010 at 5:58 PM, Andrei Mita wrote:
>>>
 I've tried that. I'll try it again. If it works, I'm calling it a day :)



 On Fri, Apr 30, 2010 at 5:53 PM, Ed Propsner wrote:

> Try this. I'm "almost" sure it will work 8-)
>
> $form->select('group', $options, array('selected' =>
> $this->data['Profile']['group']));
>
> On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita 
> wrote:
>
>> Hello,
>>
>> I'm making an edit form and I can't get the existing value to be
>> selected into one of the select field.
>>
>> The classic input in the view: echo $form->input('group');
>>
>> I've changed that to a select:
>>
>> $options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia
>> 2', 'Generatia 3'=>'Generatia 3');
>> echo $form->select('group',$options);
>>
>> The existing value is in $this->data['Profile']['group'] and, in my
>> example, is equal to "Generatia 2"
>>
>> How can I make that one selected?
>>
>> echo $form->select('group',$options, $this->data['Profile']['group']),
>> as shown in the book, doesn't work. What am I missing?
>>
>> Thanks
>>
>>
>>
>> Toate cele bune,
>> Andrei Mita
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>


>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-

Re: Cakephp Ajax is not including the javascripts in the view

2010-04-30 Thread Andy Dirnberger
I believe the src attribute of any script tag loaded through an Ajax
call is ignored; all JavaScript needs to be included in the original
page load or embedded directly in the response.

On Apr 30, 3:23 am, Vijay  wrote:
> Thanks for reply andrei.
>
> I am calling the normal javascript functions or any javascript file.
> I have some jquery effects for the text boxes & drop downs. That are
> not including when the ctp get called.
>
> my code is,
>
>  echo $html->css('mycss);
>
> echo $html->script(array('jquery', 'another script'));?>
>
> rest my html code
>
> It is including the css but no js is included.
> here i am using jquery with prototype.
>
> On Apr 30, 12:10 pm, Andrei Mita  wrote:
>
>
>
>
>
> > What type of js do you have in the loaded ctp?
>
> > Maybe you forgot to include something in the layout.
>
> > It's a blind guess without seeing the actual code. At least for me.
>
> > On Fri, Apr 30, 2010 at 9:23 AM, Vijay  wrote:
> > > Hello All,
>
> > > I am using the ajax for the internal links in my site.
>
> > > When i click on the link & the new ctp loads, it is not including the
> > > javascripts that are included in that ctp.
> > > So the effects are not working.
>
> > > It includes the css but not including the javascript.
>
> > > Any idea.
>
> > > Thanks,
>
> > > Vijay Kumbhar,
> > > CTO, Weboniselab.
> > > 9766251100
>
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others
> > > with their CakePHP related questions.
>
> > > 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
> > > cake-php+unsubscr...@googlegroups.com > >  om>For more options, visit this group at
> > >http://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others 
> > with their CakePHP related questions.
>
> > 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
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Selected option in select

2010-04-30 Thread Jeremy Burns
What about:

$form->select('Profile.group', $options, array('selected' => 
$this->data['Profile']['group']));

(in other words adding the model name to the select name)

Jeremy Burns
jeremybu...@me.com


On 30 Apr 2010, at 16:04, Andrei Mita wrote:

> I know, I fallowed the example but I'm missing something.
> 
> 
> On Fri, Apr 30, 2010 at 6:01 PM, Ed Propsner  wrote:
> I just tried this one and it works : 
> 
> $options=array('M'=>'Male','F'=>'Female');
> echo $form->select('gender',$options, array('selected' => 'M'));
> 
> On Fri, Apr 30, 2010 at 11:00 AM, Andrei Mita  wrote:
> It doesn't work :((
> 
> 
> 
> On Fri, Apr 30, 2010 at 5:58 PM, Andrei Mita  wrote:
> I've tried that. I'll try it again. If it works, I'm calling it a day :)
> 
> 
> 
> On Fri, Apr 30, 2010 at 5:53 PM, Ed Propsner  wrote:
> Try this. I'm "almost" sure it will work 8-)
> 
> $form->select('group', $options, array('selected' => 
> $this->data['Profile']['group']));
> 
> On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita  wrote:
> Hello,
> 
> I'm making an edit form and I can't get the existing value to be selected 
> into one of the select field.
> 
> The classic input in the view: echo $form->input('group');
> 
> I've changed that to a select: 
> 
> $options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia 2', 
> 'Generatia 3'=>'Generatia 3');
> echo $form->select('group',$options);
> 
> The existing value is in $this->data['Profile']['group'] and, in my example, 
> is equal to "Generatia 2"
> 
> How can I make that one selected?
> 
> echo $form->select('group',$options, $this->data['Profile']['group']), as 
> shown in the book, doesn't work. What am I missing?
> 
> Thanks
> 
> 
> 
> Toate cele bune,
> Andrei Mita
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
> 
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Selected option in select

2010-04-30 Thread Andrei Mita
I know, I fallowed the example but I'm missing something.


On Fri, Apr 30, 2010 at 6:01 PM, Ed Propsner  wrote:

> I just tried this one and it works :
>
> $options=array('M'=>'Male','F'=>'Female');
> echo $form->select('gender',$options, array('selected' => 'M'));
>
> On Fri, Apr 30, 2010 at 11:00 AM, Andrei Mita wrote:
>
>> It doesn't work :((
>>
>>
>>
>> On Fri, Apr 30, 2010 at 5:58 PM, Andrei Mita wrote:
>>
>>> I've tried that. I'll try it again. If it works, I'm calling it a day :)
>>>
>>>
>>>
>>> On Fri, Apr 30, 2010 at 5:53 PM, Ed Propsner wrote:
>>>
 Try this. I'm "almost" sure it will work 8-)

 $form->select('group', $options, array('selected' =>
 $this->data['Profile']['group']));

 On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita wrote:

> Hello,
>
> I'm making an edit form and I can't get the existing value to be
> selected into one of the select field.
>
> The classic input in the view: echo $form->input('group');
>
> I've changed that to a select:
>
> $options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia
> 2', 'Generatia 3'=>'Generatia 3');
> echo $form->select('group',$options);
>
> The existing value is in $this->data['Profile']['group'] and, in my
> example, is equal to "Generatia 2"
>
> How can I make that one selected?
>
> echo $form->select('group',$options, $this->data['Profile']['group']),
> as shown in the book, doesn't work. What am I missing?
>
> Thanks
>
>
>
> Toate cele bune,
> Andrei Mita
>
> Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

  Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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
 cake-php+unsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

>>>
>>>
>>  Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Selected option in select

2010-04-30 Thread Jeremy Burns
What happens when you debug out the options array?

Jeremy Burns
jeremybu...@me.com

On 30 Apr 2010, at 16:00, Andrei Mita wrote:

> It doesn't work :((
> 
> 
> On Fri, Apr 30, 2010 at 5:58 PM, Andrei Mita  wrote:
> I've tried that. I'll try it again. If it works, I'm calling it a day :)
> 
> 
> 
> On Fri, Apr 30, 2010 at 5:53 PM, Ed Propsner  wrote:
> Try this. I'm "almost" sure it will work 8-)
> 
> $form->select('group', $options, array('selected' => 
> $this->data['Profile']['group']));
> 
> On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita  wrote:
> Hello,
> 
> I'm making an edit form and I can't get the existing value to be selected 
> into one of the select field.
> 
> The classic input in the view: echo $form->input('group');
> 
> I've changed that to a select: 
> 
> $options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia 2', 
> 'Generatia 3'=>'Generatia 3');
> echo $form->select('group',$options);
> 
> The existing value is in $this->data['Profile']['group'] and, in my example, 
> is equal to "Generatia 2"
> 
> How can I make that one selected?
> 
> echo $form->select('group',$options, $this->data['Profile']['group']), as 
> shown in the book, doesn't work. What am I missing?
> 
> Thanks
> 
> 
> 
> Toate cele bune,
> Andrei Mita
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
> 
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Selected option in select

2010-04-30 Thread Ed Propsner
I just tried this one and it works :

$options=array('M'=>'Male','F'=>'Female');
echo $form->select('gender',$options, array('selected' => 'M'));

On Fri, Apr 30, 2010 at 11:00 AM, Andrei Mita  wrote:

> It doesn't work :((
>
>
>
> On Fri, Apr 30, 2010 at 5:58 PM, Andrei Mita wrote:
>
>> I've tried that. I'll try it again. If it works, I'm calling it a day :)
>>
>>
>>
>> On Fri, Apr 30, 2010 at 5:53 PM, Ed Propsner wrote:
>>
>>> Try this. I'm "almost" sure it will work 8-)
>>>
>>> $form->select('group', $options, array('selected' =>
>>> $this->data['Profile']['group']));
>>>
>>> On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita wrote:
>>>
 Hello,

 I'm making an edit form and I can't get the existing value to be
 selected into one of the select field.

 The classic input in the view: echo $form->input('group');

 I've changed that to a select:

 $options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia
 2', 'Generatia 3'=>'Generatia 3');
 echo $form->select('group',$options);

 The existing value is in $this->data['Profile']['group'] and, in my
 example, is equal to "Generatia 2"

 How can I make that one selected?

 echo $form->select('group',$options, $this->data['Profile']['group']),
 as shown in the book, doesn't work. What am I missing?

 Thanks



 Toate cele bune,
 Andrei Mita

 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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
 cake-php+unsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

>>>
>>>  Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Selected option in select

2010-04-30 Thread Andrei Mita
It doesn't work :((


On Fri, Apr 30, 2010 at 5:58 PM, Andrei Mita  wrote:

> I've tried that. I'll try it again. If it works, I'm calling it a day :)
>
>
>
> On Fri, Apr 30, 2010 at 5:53 PM, Ed Propsner  wrote:
>
>> Try this. I'm "almost" sure it will work 8-)
>>
>> $form->select('group', $options, array('selected' =>
>> $this->data['Profile']['group']));
>>
>> On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita wrote:
>>
>>> Hello,
>>>
>>> I'm making an edit form and I can't get the existing value to be selected
>>> into one of the select field.
>>>
>>> The classic input in the view: echo $form->input('group');
>>>
>>> I've changed that to a select:
>>>
>>> $options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia 2',
>>> 'Generatia 3'=>'Generatia 3');
>>> echo $form->select('group',$options);
>>>
>>> The existing value is in $this->data['Profile']['group'] and, in my
>>> example, is equal to "Generatia 2"
>>>
>>> How can I make that one selected?
>>>
>>> echo $form->select('group',$options, $this->data['Profile']['group']), as
>>> shown in the book, doesn't work. What am I missing?
>>>
>>> Thanks
>>>
>>>
>>>
>>> Toate cele bune,
>>> Andrei Mita
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>  Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Selected option in select

2010-04-30 Thread Andrei Mita
I've tried that. I'll try it again. If it works, I'm calling it a day :)


On Fri, Apr 30, 2010 at 5:53 PM, Ed Propsner  wrote:

> Try this. I'm "almost" sure it will work 8-)
>
> $form->select('group', $options, array('selected' =>
> $this->data['Profile']['group']));
>
> On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita wrote:
>
>> Hello,
>>
>> I'm making an edit form and I can't get the existing value to be selected
>> into one of the select field.
>>
>> The classic input in the view: echo $form->input('group');
>>
>> I've changed that to a select:
>>
>> $options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia 2',
>> 'Generatia 3'=>'Generatia 3');
>> echo $form->select('group',$options);
>>
>> The existing value is in $this->data['Profile']['group'] and, in my
>> example, is equal to "Generatia 2"
>>
>> How can I make that one selected?
>>
>> echo $form->select('group',$options, $this->data['Profile']['group']), as
>> shown in the book, doesn't work. What am I missing?
>>
>> Thanks
>>
>>
>>
>> Toate cele bune,
>> Andrei Mita
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Selected option in select

2010-04-30 Thread Ed Propsner
Try this. I'm "almost" sure it will work 8-)

$form->select('group', $options, array('selected' =>
$this->data['Profile']['group']));

On Fri, Apr 30, 2010 at 10:17 AM, Andrei Mita  wrote:

> Hello,
>
> I'm making an edit form and I can't get the existing value to be selected
> into one of the select field.
>
> The classic input in the view: echo $form->input('group');
>
> I've changed that to a select:
>
> $options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia 2',
> 'Generatia 3'=>'Generatia 3');
> echo $form->select('group',$options);
>
> The existing value is in $this->data['Profile']['group'] and, in my
> example, is equal to "Generatia 2"
>
> How can I make that one selected?
>
> echo $form->select('group',$options, $this->data['Profile']['group']), as
> shown in the book, doesn't work. What am I missing?
>
> Thanks
>
>
>
> Toate cele bune,
> Andrei Mita
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Selected option in select

2010-04-30 Thread Andrei Mita
Hello,

I'm making an edit form and I can't get the existing value to be selected
into one of the select field.

The classic input in the view: echo $form->input('group');

I've changed that to a select:

$options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia 2',
'Generatia 3'=>'Generatia 3');
echo $form->select('group',$options);

The existing value is in $this->data['Profile']['group'] and, in my example,
is equal to "Generatia 2"

How can I make that one selected?

echo $form->select('group',$options, $this->data['Profile']['group']), as
shown in the book, doesn't work. What am I missing?

Thanks



Toate cele bune,
Andrei Mita

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: i need ajax shopping cart with cakephp

2010-04-30 Thread Jeremy Burns
Come on Hamed - we're all a bit busy out here.

Jeremy Burns
jeremybu...@me.com
On 30 Apr 2010, at 14:53, hoss7 wrote:

> i am new in cakephp mike can you do it for me to convert this source
> to ajax
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: i need ajax shopping cart with cakephp

2010-04-30 Thread hoss7
i am new in cakephp mike can you do it for me to convert this source
to ajax

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: i need ajax shopping cart with cakephp

2010-04-30 Thread Mike

>From suggestions I've heard, I have moved the Kaching plugin to
github.  So the new URL is http://github.com/mfriesen/kaching-php.  It
doesn't use Ajax, but with a little bit of work you definitely could
change it to do so.

On Apr 29, 10:44 pm, Jeremy Burns  wrote:
> For a shortcut there is Kaching -http://code.google.com/p/kaching-php/- I 
> haven't tried it and don't know to what extent it uses Ajax.
>
> Jeremy Burns
> jeremybu...@me.com
> On 29 Apr 2010, at 21:47, Jonathon Musters wrote:
>
>
>
> > Please do write it for us. And have it slice bread as an extra lol
>
> > On 4/29/10, thatsgreat2345  wrote:
> >> U then make one are we supposed to just write it all for you
>
> >> On Apr 29, 11:54 am, hoss7  wrote:
> >>> i need ajax shopping cart with cakephp
>
> >>> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others
> >>> with their CakePHP related questions.
>
> >>> 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
> >>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> >>> athttp://groups.google.com/group/cake-php?hl=en
>
> >> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> >> with their CakePHP related questions.
>
> >> 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
> >> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> >>http://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
> > with their CakePHP related questions.
>
> > 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
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: SQL with Where not exists

2010-04-30 Thread sphereweb
I agree, but it will happen to them as well one day..:(

On Apr 27, 8:43 pm, cricket  wrote:
> On Apr 27, 1:23 am, "ecommy.com"  wrote:
>
> > ok but don't you find it fair to post it here? after all you looked
> > for help and maybe someone like you will find this post and will see:
> > "I finally found the solution myself."
>
> Word. That's the most frustrating thing when using teh google to sort
> out some problem. Always follow up with the solution!
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread Ed Propsner
Sure, call me out,  LOL. Initially AD7six was correct and since upgrading to
Cake 1.3 I was still trying to run the 1.2 branch/version of debugkit and
that was obviously a problem. I downloaded the master branch and was on the
right track but there was a bit of mix up (oops) and I ended up dropping the
older version right back into the app ... nice. That obviously didn't work
either :)

Anyhow ... cake 1.3 + debugkit master branch = no issues

The real lesson here: Keep your dirs in order and their content's properly
labeled.

If I keep going at this rate I'll end up as the designated poster child for
what not to do :)

*On a side note: *
My entire layout is defined by CSS and divs. I had to tweak the stack order
on both my app and debugkit to keep containers from overlapping. Chrome
still has a few issues with the overlay but I can deal with it.

Stay tuned for my next brain fart.

- Ed

On Fri, Apr 30, 2010 at 7:27 AM, Andrei Mita  wrote:

> Maybe it would be useful for others to know were was your mistake :)
>
>
> On Fri, Apr 30, 2010 at 1:49 PM, Ed Propsner  wrote:
>
>> Holy $%&! ... I got it to work the way it's supposed to.
>>
>> I'm pretty sure I know where I went wrong but I'll spare you the details
>> for now ... I've almost reached my quota of idiocy for today :)
>>
>> @Jeremy:  you're right ... simply drop it into plugins and you're off and
>> running.
>>
>> WAY better than it was before.
>>
>> - Ed
>>
>>
>>
>> On Fri, Apr 30, 2010 at 6:18 AM, Ed Propsner wrote:
>>
>>> I could screw up a wet dream.
>>>
>>> htdocs/cake/plugins <--- works
>>>
>>> htdocs/mysite/plugins < works
>>>
>>> htdocs/cake/app/plugins <--- don't work
>>>
>>> I'm starting to confuse myself :)
>>>
>>>
>>> On Fri, Apr 30, 2010 at 6:11 AM, Andrei Mita wrote:
>>>
 It has to be in /app/plugins


 On Fri, Apr 30, 2010 at 1:10 PM, Jeremy Burns wrote:

> Not sure - I've got it in /app/plugins.
>
>
> Jeremy Burns
> jeremybu...@me.com 
>
> On 30 Apr 2010, at 11:08, Ed Propsner wrote:
>
> K, here is a really dumb question for ya' ... does it matter where I
> put it, and by that I mean ...
>
> htdocs/cake/plugins
>
> OR
>
> htdocs/mysite/plugins
>
> On Fri, Apr 30, 2010 at 5:55 AM, Ed Propsner wrote:
>
>> hmmm 
>>
>>
>> On Fri, Apr 30, 2010 at 5:53 AM, Jeremy Burns wrote:
>>
>>> Nope - just followed the simple instructions - nothing non standard.
>>>
>>>
>>> Jeremy Burns
>>>  jeremybu...@me.com 
>>>
>>> On 30 Apr 2010, at 10:51, Ed Propsner wrote:
>>>
>>> @Jeremy
>>>
>>> Did you have to manually load the CSS?
>>>
>>> $html->css(array('style', 'addstyle', 'debug_toolbar'));
>>>
>>>
>>> On Fri, Apr 30, 2010 at 5:46 AM, Ed Propsner 
>>> wrote:
>>>
 I had no clue it was supposed to dock itself all nice and neat like
 that  you would think "toolbar" would have been a giveaway :) I'm 
 going
 to scrap it and start again.


 On Fri, Apr 30, 2010 at 5:44 AM, Jeremy Burns 
 wrote:

> It works locally on FF, Safari and Chrome. Remote - no CSS and I
> get what you're getting.
>
>
> Jeremy Burns
>  jeremybu...@me.com 
>
> On 30 Apr 2010, at 10:41, Ed Propsner wrote:
>
> wtf? I'm on a mission now ... Is that browser specific (FF
> presumably)? I must have an underlying problem somewhere still 
> because I'm
> getting a 'break on' error in FF.
>
> On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns 
> wrote:
>
>> Not sure if this will post OK...
>>
>> 
>>
>>
>> Jeremy Burns
>>  jeremybu...@me.com 
>>
>> On 30 Apr 2010, at 10:35, Ed Propsner wrote:
>>
>> You don't say ?? That would be just swell and I'm not getting
>> that.
>>
>> On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns > > wrote:
>>
>>> If it installs correctly it minimises to an icon in the upper
>>> right hand corner of the page. Clicking on it zooms it out and 
>>> gives drop
>>> downs. When the CSS doesn't work, you get the long list at the foot 
>>> of the
>>> page.
>>>
>>>
>>> Jeremy Burns
>>>  jeremybu...@me.com 
>>>
>>>
>>> On 30 Apr 2010, at 10:29, Andrei Mita wrote:
>>>
>>> Same install steps here on 1.2.7 / linux / apache.
>>> No errors.
>>>
>>>
>>> On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra <
>>> procsh...@gmail.com> wrote:
>>>
 I just install and run this kit with no problem.
 I learned about it from this thread
 Using cakekphp 1.3, apach, linux
>

PHP CodeSniffer

2010-04-30 Thread Braindead
Hi all

is there anybody out there who uses PHP CodeSniffer with his Cake app?
I tried PHP CodeSniffer for the first time and used the build in
coding standards to sniff my code. Actually I get warnings because of
Cake conventions.

Method name "PostsController::admin_edit" is not on camel caps format

Just to mention one warning. So can anybody lead me the way to use PHP
CodeSniffer with CakePHP?

Cheers,
Markus

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread Andrei Mita
Maybe it would be useful for others to know were was your mistake :)


On Fri, Apr 30, 2010 at 1:49 PM, Ed Propsner  wrote:

> Holy $%&! ... I got it to work the way it's supposed to.
>
> I'm pretty sure I know where I went wrong but I'll spare you the details
> for now ... I've almost reached my quota of idiocy for today :)
>
> @Jeremy:  you're right ... simply drop it into plugins and you're off and
> running.
>
> WAY better than it was before.
>
> - Ed
>
>
>
> On Fri, Apr 30, 2010 at 6:18 AM, Ed Propsner  wrote:
>
>> I could screw up a wet dream.
>>
>> htdocs/cake/plugins <--- works
>>
>> htdocs/mysite/plugins < works
>>
>> htdocs/cake/app/plugins <--- don't work
>>
>> I'm starting to confuse myself :)
>>
>>
>> On Fri, Apr 30, 2010 at 6:11 AM, Andrei Mita wrote:
>>
>>> It has to be in /app/plugins
>>>
>>>
>>> On Fri, Apr 30, 2010 at 1:10 PM, Jeremy Burns wrote:
>>>
 Not sure - I've got it in /app/plugins.


 Jeremy Burns
 jeremybu...@me.com 

 On 30 Apr 2010, at 11:08, Ed Propsner wrote:

 K, here is a really dumb question for ya' ... does it matter where I put
 it, and by that I mean ...

 htdocs/cake/plugins

 OR

 htdocs/mysite/plugins

 On Fri, Apr 30, 2010 at 5:55 AM, Ed Propsner wrote:

> hmmm 
>
>
> On Fri, Apr 30, 2010 at 5:53 AM, Jeremy Burns wrote:
>
>> Nope - just followed the simple instructions - nothing non standard.
>>
>>
>> Jeremy Burns
>>  jeremybu...@me.com 
>>
>> On 30 Apr 2010, at 10:51, Ed Propsner wrote:
>>
>> @Jeremy
>>
>> Did you have to manually load the CSS?
>>
>> $html->css(array('style', 'addstyle', 'debug_toolbar'));
>>
>>
>> On Fri, Apr 30, 2010 at 5:46 AM, Ed Propsner wrote:
>>
>>> I had no clue it was supposed to dock itself all nice and neat like
>>> that  you would think "toolbar" would have been a giveaway :) I'm 
>>> going
>>> to scrap it and start again.
>>>
>>>
>>> On Fri, Apr 30, 2010 at 5:44 AM, Jeremy Burns wrote:
>>>
 It works locally on FF, Safari and Chrome. Remote - no CSS and I get
 what you're getting.


 Jeremy Burns
  jeremybu...@me.com 

 On 30 Apr 2010, at 10:41, Ed Propsner wrote:

 wtf? I'm on a mission now ... Is that browser specific (FF
 presumably)? I must have an underlying problem somewhere still because 
 I'm
 getting a 'break on' error in FF.

 On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns 
 wrote:

> Not sure if this will post OK...
>
> 
>
>
> Jeremy Burns
>  jeremybu...@me.com 
>
> On 30 Apr 2010, at 10:35, Ed Propsner wrote:
>
> You don't say ?? That would be just swell and I'm not getting
> that.
>
> On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns 
> wrote:
>
>> If it installs correctly it minimises to an icon in the upper
>> right hand corner of the page. Clicking on it zooms it out and gives 
>> drop
>> downs. When the CSS doesn't work, you get the long list at the foot 
>> of the
>> page.
>>
>>
>> Jeremy Burns
>>  jeremybu...@me.com 
>>
>>
>> On 30 Apr 2010, at 10:29, Andrei Mita wrote:
>>
>> Same install steps here on 1.2.7 / linux / apache.
>> No errors.
>>
>>
>> On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra <
>> procsh...@gmail.com> wrote:
>>
>>> I just install and run this kit with no problem.
>>> I learned about it from this thread
>>> Using cakekphp 1.3, apach, linux
>>>
>>> 1. Download
>>> http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
>>> 2. extract it under app/plugins/debug_kit (doesn't work without
>>> the underscore)
>>> 3. Add debug_kit tool bar to app_controller.
>>> In my case var $components = array
>>> ('Session','Cookie','DebugKit.Toolbar');
>>> 4. Didn't change my debug level, Configure::write('debug', 2);
>>>
>>> voila.
>>>
>>> I get a long list of debug properties in the bottom of the page
>>> which I presume is what I should get from this kit.
>>>
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and
>>> help others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.comFor
>

Re: CakePHP Auth Component - Users, Groups & Permissions

2010-04-30 Thread hoss7
i dont see no errors, i want change this code for work with cakephp 1.3

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: CakePHP Auth Component - Users, Groups & Permissions

2010-04-30 Thread hoss7
i have this app_controller code in cakephp 1.2:


params['admin'])) {
// Set the default layout
$this->layout = 'admin';
}else {
$this->layout = 'default';
}
//Override default fields used by Auth component
$this->Auth->fields =
array('username'=>'email_address','password'=>'password');
//Set application wide actions which do not require
authentication
$this->Auth-
>allow(array('display','view','admin_login','index','pindex'));//
IMPORTANT for CakePHP 1.2 final release change this to $this->Auth-
>allow(array('display'));
//Set the default redirect for users who logout
$this->Auth->logoutRedirect = '/';
   //Set the default redirect for users who login
$this->Auth->loginRedirect = '/admin/images/index';
//Extend auth component to include authorisation via
isAuthorized action
$this->Auth->authorize = 'controller';
//Restrict access to only users with an active account
$this->Auth->userScope = array('User.active = 1');
//Pass auth component data over to view files
$this->set('Auth',$this->Auth->user());
}

/**
 * beforeRender
 *
 * Application hook which runs after each action but, before the
view file is
 * rendered
 *
 * @access public
 */
function beforeRender(){
//If we have an authorised user logged then pass over an array
of controllers
//to which they have index action permission
if($this->Auth->user()){
$controllerList = Configure::listObjects('controller');
$permittedControllers = array();
foreach($controllerList as $controllerItem){
if($controllerItem <> 'App'){
if($this->__permitted($controllerItem,'index')){
$permittedControllers[] = $controllerItem;
}
}
}
}
$this->set(compact('permittedControllers'));
}
/**
 * isAuthorized
 *
 * Called by Auth component for establishing whether the current
authenticated
 * user has authorization to access the current controller:action
 *
 * @return true if authorised/false if not authorized
 * @access public
 */
function isAuthorized(){
return $this->__permitted($this->name,$this->action);
}
/**
 * __permitted
 *
 * Helper function returns true if the currently authenticated
user has permission
 * to access the controller:action specified by $controllerName:
$actionName
 * @return
 * @param $controllerName Object
 * @param $actionName Object
 */
function __permitted($controllerName,$actionName){
//Ensure checks are all made lower case
$controllerName = low($controllerName);
   $actionName = low($actionName);
//If permissions have not been cached to session...
if(!$this->Session->check('Permissions')){
//...then build permissions array and cache it
  $permissions = array();
//everyone gets permission to logout
$permissions[]='users:logout';
//Import the User Model so we can build up the permission
cache
App::import('Model', 'User');
$thisUser = new User;
//Now bring in the current users full record along with
groups
   $thisGroups = $thisUser->find(array('User.id'=>$this->Auth-
>user('id')));
$thisGroups = $thisGroups['Group'];
foreach($thisGroups as $thisGroup){
   $thisPermissions = $thisUser->Group-
>find(array('Group.id'=>$thisGroup['id']));
$thisPermissions = $thisPermissions['Permission'];
foreach($thisPermissions as $thisPermission){
$permissions[]=$thisPermission['name'];
}
}
   //write the permissions array to session
$this->Session->write('Permissions',$permissions);
   }else{
//...they have been cached already, so retrieve them
$permissions = $this->Session->read('Permissions');
var_dump($permissions);

}
//Now iterate through permissions for a positive match
foreach($permissions as $permission){
if($permission == '*'){
return true;//Super Admin Bypass Found
}
if($permission == $controllerName.':*'){
return true;//Controller Wide Bypass Found
}
if($permission == $controllerName.':'.$actionName){
return true;//Specific permission found
}
}
return false;
}
}
?>


when i am run this code in cakephp 1.3 i dont see variable in session
(var_dump($permissions);)

where is problem?

note: this code for "cakephp user Auth"

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP relate

some session problem in cakephp 1.3 (help me)

2010-04-30 Thread hoss7
i have this app_controller code in cakephp 1.2:


params['admin'])) {
// Set the default layout
$this->layout = 'admin';
}else {
$this->layout = 'default';
}
//Override default fields used by Auth component
$this->Auth->fields =
array('username'=>'email_address','password'=>'password');
//Set application wide actions which do not require
authentication
$this->Auth-
>allow(array('display','view','admin_login','index','pindex'));//
IMPORTANT for CakePHP 1.2 final release change this to $this->Auth-
>allow(array('display'));
//Set the default redirect for users who logout
$this->Auth->logoutRedirect = '/';
   //Set the default redirect for users who login
$this->Auth->loginRedirect = '/admin/images/index';
//Extend auth component to include authorisation via
isAuthorized action
$this->Auth->authorize = 'controller';
//Restrict access to only users with an active account
$this->Auth->userScope = array('User.active = 1');
//Pass auth component data over to view files
$this->set('Auth',$this->Auth->user());
}

/**
 * beforeRender
 *
 * Application hook which runs after each action but, before the
view file is
 * rendered
 *
 * @access public
 */
function beforeRender(){
//If we have an authorised user logged then pass over an array
of controllers
//to which they have index action permission
if($this->Auth->user()){
$controllerList = Configure::listObjects('controller');
$permittedControllers = array();
foreach($controllerList as $controllerItem){
if($controllerItem <> 'App'){
if($this->__permitted($controllerItem,'index')){
$permittedControllers[] = $controllerItem;
}
}
}
}
$this->set(compact('permittedControllers'));
}
/**
 * isAuthorized
 *
 * Called by Auth component for establishing whether the current
authenticated
 * user has authorization to access the current controller:action
 *
 * @return true if authorised/false if not authorized
 * @access public
 */
function isAuthorized(){
return $this->__permitted($this->name,$this->action);
}
/**
 * __permitted
 *
 * Helper function returns true if the currently authenticated
user has permission
 * to access the controller:action specified by $controllerName:
$actionName
 * @return
 * @param $controllerName Object
 * @param $actionName Object
 */
function __permitted($controllerName,$actionName){
//Ensure checks are all made lower case
$controllerName = low($controllerName);
   $actionName = low($actionName);
//If permissions have not been cached to session...
if(!$this->Session->check('Permissions')){
//...then build permissions array and cache it
  $permissions = array();
//everyone gets permission to logout
$permissions[]='users:logout';
//Import the User Model so we can build up the permission
cache
App::import('Model', 'User');
$thisUser = new User;
//Now bring in the current users full record along with
groups
   $thisGroups = $thisUser->find(array('User.id'=>$this->Auth-
>user('id')));
$thisGroups = $thisGroups['Group'];
foreach($thisGroups as $thisGroup){
   $thisPermissions = $thisUser->Group-
>find(array('Group.id'=>$thisGroup['id']));
$thisPermissions = $thisPermissions['Permission'];
foreach($thisPermissions as $thisPermission){
$permissions[]=$thisPermission['name'];
}
}
   //write the permissions array to session
$this->Session->write('Permissions',$permissions);
   }else{
//...they have been cached already, so retrieve them
$permissions = $this->Session->read('Permissions');
var_dump($permissions);

}
//Now iterate through permissions for a positive match
foreach($permissions as $permission){
if($permission == '*'){
return true;//Super Admin Bypass Found
}
if($permission == $controllerName.':*'){
return true;//Controller Wide Bypass Found
}
if($permission == $controllerName.':'.$actionName){
return true;//Specific permission found
}
}
return false;
}
}
?>


when i am run this code in cakephp 1.3 i dont see variable in session
(var_dump($permissions);)

where is problem?

note: this code for "cakephp user Auth"

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP relate

Re: DebugKit

2010-04-30 Thread Ed Propsner
Holy $%&! ... I got it to work the way it's supposed to.

I'm pretty sure I know where I went wrong but I'll spare you the details for
now ... I've almost reached my quota of idiocy for today :)

@Jeremy:  you're right ... simply drop it into plugins and you're off and
running.

WAY better than it was before.

- Ed



On Fri, Apr 30, 2010 at 6:18 AM, Ed Propsner  wrote:

> I could screw up a wet dream.
>
> htdocs/cake/plugins <--- works
>
> htdocs/mysite/plugins < works
>
> htdocs/cake/app/plugins <--- don't work
>
> I'm starting to confuse myself :)
>
>
> On Fri, Apr 30, 2010 at 6:11 AM, Andrei Mita wrote:
>
>> It has to be in /app/plugins
>>
>>
>> On Fri, Apr 30, 2010 at 1:10 PM, Jeremy Burns  wrote:
>>
>>> Not sure - I've got it in /app/plugins.
>>>
>>>
>>> Jeremy Burns
>>> jeremybu...@me.com 
>>>
>>> On 30 Apr 2010, at 11:08, Ed Propsner wrote:
>>>
>>> K, here is a really dumb question for ya' ... does it matter where I put
>>> it, and by that I mean ...
>>>
>>> htdocs/cake/plugins
>>>
>>> OR
>>>
>>> htdocs/mysite/plugins
>>>
>>> On Fri, Apr 30, 2010 at 5:55 AM, Ed Propsner wrote:
>>>
 hmmm 


 On Fri, Apr 30, 2010 at 5:53 AM, Jeremy Burns wrote:

> Nope - just followed the simple instructions - nothing non standard.
>
>
> Jeremy Burns
>  jeremybu...@me.com 
>
> On 30 Apr 2010, at 10:51, Ed Propsner wrote:
>
> @Jeremy
>
> Did you have to manually load the CSS?
>
> $html->css(array('style', 'addstyle', 'debug_toolbar'));
>
>
> On Fri, Apr 30, 2010 at 5:46 AM, Ed Propsner wrote:
>
>> I had no clue it was supposed to dock itself all nice and neat like
>> that  you would think "toolbar" would have been a giveaway :) I'm 
>> going
>> to scrap it and start again.
>>
>>
>> On Fri, Apr 30, 2010 at 5:44 AM, Jeremy Burns wrote:
>>
>>> It works locally on FF, Safari and Chrome. Remote - no CSS and I get
>>> what you're getting.
>>>
>>>
>>> Jeremy Burns
>>>  jeremybu...@me.com 
>>>
>>> On 30 Apr 2010, at 10:41, Ed Propsner wrote:
>>>
>>> wtf? I'm on a mission now ... Is that browser specific (FF
>>> presumably)? I must have an underlying problem somewhere still because 
>>> I'm
>>> getting a 'break on' error in FF.
>>>
>>> On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns wrote:
>>>
 Not sure if this will post OK...

 


 Jeremy Burns
  jeremybu...@me.com 

 On 30 Apr 2010, at 10:35, Ed Propsner wrote:

 You don't say ?? That would be just swell and I'm not getting that.

 On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns 
 wrote:

> If it installs correctly it minimises to an icon in the upper right
> hand corner of the page. Clicking on it zooms it out and gives drop 
> downs.
> When the CSS doesn't work, you get the long list at the foot of the 
> page.
>
>
> Jeremy Burns
>  jeremybu...@me.com 
>
>
> On 30 Apr 2010, at 10:29, Andrei Mita wrote:
>
> Same install steps here on 1.2.7 / linux / apache.
> No errors.
>
>
> On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra <
> procsh...@gmail.com> wrote:
>
>> I just install and run this kit with no problem.
>> I learned about it from this thread
>> Using cakekphp 1.3, apach, linux
>>
>> 1. Download
>> http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
>> 2. extract it under app/plugins/debug_kit (doesn't work without
>> the underscore)
>> 3. Add debug_kit tool bar to app_controller.
>> In my case var $components = array
>> ('Session','Cookie','DebugKit.Toolbar');
>> 4. Didn't change my debug level, Configure::write('debug', 2);
>>
>> voila.
>>
>> I get a long list of debug properties in the bottom of the page
>> which I presume is what I should get from this kit.
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and
>> help others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and
> help others with their CakePHP related questions.
>
> You received this message because you are 

Re: plz help me out

2010-04-30 Thread Narendra Padala
I was tried like this is correct or  not i dont know any one can help me out
$rsCDLog = pg_numrows($rsCDLog);


var $intCDLogCnt = $this->Tblcdlog->find(
 'count', array(
'conditions' => array(
'Tblcdlog.blnsuccess' => 1
),
'fields' => array(
'Tblcdlog.dtmcreated'
)
)
);

On Fri, Apr 30, 2010 at 4:13 PM, Narendra Padala wrote:

> $intProfileCnt = pg_numrows($rsProfile);
>
>
> var $intCDLogCnt = $this->Tblcdlog->find(
>  'count', array(
> 'conditions' => array(
> 'Tblcdlog.blnsuccess' => 1
> ),
> 'fields' => array(
> 'Tblcdlog.dtmcreated'
> )
> )
> );
>
> I was tried like this is correct or  not i dont know any one can help me
> out
>
>
> On Wed, Apr 28, 2010 at 3:54 PM, Jeremy Burns wrote:
>
>> Almost...
>>
>> You need to run finds/counts against the model that is related to your
>> table. For your table tblmusicprofiles your model will be Tblmusicprofile
>> (singular, camel cased).
>>
>> So, for example, your find statement would be something like this:
>>
>> $rsProfile = $this->Tblmusicprofile->find(
>> 'all',
>>  array(
>> 'conditions' => array(
>> 'Tblmusicprofile.lngprofile' => '$PROFILE_ID'
>>  ),
>> 'fields' => array(
>> 'Tblmusicprofile.strprofilename'
>>  )
>> )
>> );
>>
>> I would also recommend looking up the Containable behaviour (
>> http://book.cakephp.org/view/1323/Containable).
>>
>> Your table naming convention is not ideal. I'd point you towards
>> http://book.cakephp.org/view/903/Model-and-Database-Conventions for more
>> details.
>>
>>
>>  Jeremy Burns
>> jeremybu...@me.com 
>>
>>
>> On 28 Apr 2010, at 11:13, chandrasekhar reddy wrote:
>>
>> I am new for cakephp plz help me out . below statements are correct or
>> wrong . idontknow
>>
>>
>> While converting this sql query into cakephp for result set and count
>>
>> 1.  Result set
>>
>> $rsProfile = pg_exec($conn,"SELECT strprofilename FROM tblmusicprofiles
>> WHERE lngprofile = $PROFILE_ID");
>>
>>
>>
>> var $rsProfile = $this->tblmusicprofiles->find('all', array('conditions'
>> => array('tblmusicprofiles.lngprofile' => '$PROFILE_ID'),
>>  'fields' => array('tblmusicprofiles.strprofilename')));
>>
>>
>>
>>
>> 2. count
>>
>>  $intProfileCnt = pg_numrows($rsProfile);
>>
>>
>> var $intProfileCnt = $this->tblmusicprofiles->find('count',
>> array('conditions' => array('tblmusicprofiles.lngprofile' => '$PROFILE_ID'),
>>'fields' => array('tblmusicprofiles.strprofilename')));
>>
>>
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>> at http://groups.google.com/group/cake-php?hl=en
>>
>>
>>  Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: plz help me out

2010-04-30 Thread Narendra Padala
$intProfileCnt = pg_numrows($rsProfile);


var $intCDLogCnt = $this->Tblcdlog->find(
 'count', array(
'conditions' => array(
'Tblcdlog.blnsuccess' => 1
),
'fields' => array(
'Tblcdlog.dtmcreated'
)
)
);

I was tried like this is correct or  not i dont know any one can help me out

On Wed, Apr 28, 2010 at 3:54 PM, Jeremy Burns  wrote:

> Almost...
>
> You need to run finds/counts against the model that is related to your
> table. For your table tblmusicprofiles your model will be Tblmusicprofile
> (singular, camel cased).
>
> So, for example, your find statement would be something like this:
>
> $rsProfile = $this->Tblmusicprofile->find(
> 'all',
> array(
> 'conditions' => array(
> 'Tblmusicprofile.lngprofile' => '$PROFILE_ID'
> ),
> 'fields' => array(
> 'Tblmusicprofile.strprofilename'
> )
> )
> );
>
> I would also recommend looking up the Containable behaviour (
> http://book.cakephp.org/view/1323/Containable).
>
> Your table naming convention is not ideal. I'd point you towards
> http://book.cakephp.org/view/903/Model-and-Database-Conventions for more
> details.
>
>
> Jeremy Burns
> jeremybu...@me.com 
>
>
> On 28 Apr 2010, at 11:13, chandrasekhar reddy wrote:
>
> I am new for cakephp plz help me out . below statements are correct or
> wrong . idontknow
>
>
> While converting this sql query into cakephp for result set and count
>
> 1.  Result set
>
> $rsProfile = pg_exec($conn,"SELECT strprofilename FROM tblmusicprofiles
> WHERE lngprofile = $PROFILE_ID");
>
>
>
> var $rsProfile = $this->tblmusicprofiles->find('all', array('conditions' =>
> array('tblmusicprofiles.lngprofile' => '$PROFILE_ID'),
>  'fields' => array('tblmusicprofiles.strprofilename')));
>
>
>
>
> 2. count
>
>  $intProfileCnt = pg_numrows($rsProfile);
>
>
> var $intProfileCnt = $this->tblmusicprofiles->find('count',
> array('conditions' => array('tblmusicprofiles.lngprofile' => '$PROFILE_ID'),
>'fields' => array('tblmusicprofiles.strprofilename')));
>
>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread Ed Propsner
I could screw up a wet dream.

htdocs/cake/plugins <--- works

htdocs/mysite/plugins < works

htdocs/cake/app/plugins <--- don't work

I'm starting to confuse myself :)

On Fri, Apr 30, 2010 at 6:11 AM, Andrei Mita  wrote:

> It has to be in /app/plugins
>
>
> On Fri, Apr 30, 2010 at 1:10 PM, Jeremy Burns  wrote:
>
>> Not sure - I've got it in /app/plugins.
>>
>>
>> Jeremy Burns
>> jeremybu...@me.com 
>>
>> On 30 Apr 2010, at 11:08, Ed Propsner wrote:
>>
>> K, here is a really dumb question for ya' ... does it matter where I put
>> it, and by that I mean ...
>>
>> htdocs/cake/plugins
>>
>> OR
>>
>> htdocs/mysite/plugins
>>
>> On Fri, Apr 30, 2010 at 5:55 AM, Ed Propsner wrote:
>>
>>> hmmm 
>>>
>>>
>>> On Fri, Apr 30, 2010 at 5:53 AM, Jeremy Burns wrote:
>>>
 Nope - just followed the simple instructions - nothing non standard.


 Jeremy Burns
  jeremybu...@me.com 

 On 30 Apr 2010, at 10:51, Ed Propsner wrote:

 @Jeremy

 Did you have to manually load the CSS?

 $html->css(array('style', 'addstyle', 'debug_toolbar'));


 On Fri, Apr 30, 2010 at 5:46 AM, Ed Propsner wrote:

> I had no clue it was supposed to dock itself all nice and neat like
> that  you would think "toolbar" would have been a giveaway :) I'm 
> going
> to scrap it and start again.
>
>
> On Fri, Apr 30, 2010 at 5:44 AM, Jeremy Burns wrote:
>
>> It works locally on FF, Safari and Chrome. Remote - no CSS and I get
>> what you're getting.
>>
>>
>> Jeremy Burns
>>  jeremybu...@me.com 
>>
>> On 30 Apr 2010, at 10:41, Ed Propsner wrote:
>>
>> wtf? I'm on a mission now ... Is that browser specific (FF
>> presumably)? I must have an underlying problem somewhere still because 
>> I'm
>> getting a 'break on' error in FF.
>>
>> On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns wrote:
>>
>>> Not sure if this will post OK...
>>>
>>> 
>>>
>>>
>>> Jeremy Burns
>>>  jeremybu...@me.com 
>>>
>>> On 30 Apr 2010, at 10:35, Ed Propsner wrote:
>>>
>>> You don't say ?? That would be just swell and I'm not getting that.
>>>
>>> On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns wrote:
>>>
 If it installs correctly it minimises to an icon in the upper right
 hand corner of the page. Clicking on it zooms it out and gives drop 
 downs.
 When the CSS doesn't work, you get the long list at the foot of the 
 page.


 Jeremy Burns
  jeremybu...@me.com 


 On 30 Apr 2010, at 10:29, Andrei Mita wrote:

 Same install steps here on 1.2.7 / linux / apache.
 No errors.


 On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra <
 procsh...@gmail.com> wrote:

> I just install and run this kit with no problem.
> I learned about it from this thread
> Using cakekphp 1.3, apach, linux
>
> 1. Download
> http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
> 2. extract it under app/plugins/debug_kit (doesn't work without the
> underscore)
> 3. Add debug_kit tool bar to app_controller.
> In my case var $components = array
> ('Session','Cookie','DebugKit.Toolbar');
> 4. Didn't change my debug level, Configure::write('debug', 2);
>
> voila.
>
> I get a long list of debug properties in the bottom of the page
> which I presume is what I should get from this kit.
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and
> help others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>


 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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
 cake-php+unsubscr...@googlegroups.com For more options, visit this
 group at http://groups.google.com/group/cake-php?hl=en



 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 You received this message because you are 

Re: how to convert postgresql $intCDLogCnt = pg_numrows($rsCDLog); function into cake

2010-04-30 Thread Andrei Mita
Try here: http://book.cakephp.org/view/809/find-count


On Fri, Apr 30, 2010 at 1:13 PM, Narendra Padala wrote:

> Hi...Everyone!
>
> I am new to cakephp , I am using postgres sql, i have problem like
> this i am able to convert this psql query to cake but
> pg_numrows() is i am not able convert. so please any one can help me
> out.
>
>
>  $rsCDLog = pg_exec($conn, "SELECT dtmcreated  FROM tblcdlog WHERE
> blnsuccess = '1'");
>
>  $rsProfile = $this->Tblcdlog->find('all',
> array('conditions' => array(
>
> 'Tblcdlog.blnsuccess' => 1),
>   'fields' => array(
>
> 'Tblcdlog.dtmcreated')));
>
>
>  $intCDLogCnt = pg_numrows($rsCDLog);
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


how to convert postgresql $intCDLogCnt = pg_numrows($rsCDLog); function into cake

2010-04-30 Thread Narendra Padala
Hi...Everyone!

I am new to cakephp , I am using postgres sql, i have problem like
this i am able to convert this psql query to cake but
pg_numrows() is i am not able convert. so please any one can help me
out.


 $rsCDLog = pg_exec($conn, "SELECT dtmcreated  FROM tblcdlog WHERE
blnsuccess = '1'");

 $rsProfile = $this->Tblcdlog->find('all',
 array('conditions' => array(
 
'Tblcdlog.blnsuccess' => 1),
   'fields' => array(
 
'Tblcdlog.dtmcreated')));


 $intCDLogCnt = pg_numrows($rsCDLog);

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread Andrei Mita
It has to be in /app/plugins

On Fri, Apr 30, 2010 at 1:10 PM, Jeremy Burns  wrote:

> Not sure - I've got it in /app/plugins.
>
>
> Jeremy Burns
> jeremybu...@me.com 
>
> On 30 Apr 2010, at 11:08, Ed Propsner wrote:
>
> K, here is a really dumb question for ya' ... does it matter where I put
> it, and by that I mean ...
>
> htdocs/cake/plugins
>
> OR
>
> htdocs/mysite/plugins
>
> On Fri, Apr 30, 2010 at 5:55 AM, Ed Propsner  wrote:
>
>> hmmm 
>>
>>
>> On Fri, Apr 30, 2010 at 5:53 AM, Jeremy Burns  wrote:
>>
>>> Nope - just followed the simple instructions - nothing non standard.
>>>
>>>
>>> Jeremy Burns
>>> jeremybu...@me.com 
>>>
>>> On 30 Apr 2010, at 10:51, Ed Propsner wrote:
>>>
>>> @Jeremy
>>>
>>> Did you have to manually load the CSS?
>>>
>>> $html->css(array('style', 'addstyle', 'debug_toolbar'));
>>>
>>>
>>> On Fri, Apr 30, 2010 at 5:46 AM, Ed Propsner wrote:
>>>
 I had no clue it was supposed to dock itself all nice and neat like that
  you would think "toolbar" would have been a giveaway :) I'm going to
 scrap it and start again.


 On Fri, Apr 30, 2010 at 5:44 AM, Jeremy Burns wrote:

> It works locally on FF, Safari and Chrome. Remote - no CSS and I get
> what you're getting.
>
>
> Jeremy Burns
> jeremybu...@me.com 
>
> On 30 Apr 2010, at 10:41, Ed Propsner wrote:
>
> wtf? I'm on a mission now ... Is that browser specific (FF presumably)?
> I must have an underlying problem somewhere still because I'm getting a
> 'break on' error in FF.
>
> On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns wrote:
>
>> Not sure if this will post OK...
>>
>> 
>>
>>
>> Jeremy Burns
>> jeremybu...@me.com 
>>
>> On 30 Apr 2010, at 10:35, Ed Propsner wrote:
>>
>> You don't say ?? That would be just swell and I'm not getting that.
>>
>> On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns wrote:
>>
>>> If it installs correctly it minimises to an icon in the upper right
>>> hand corner of the page. Clicking on it zooms it out and gives drop 
>>> downs.
>>> When the CSS doesn't work, you get the long list at the foot of the 
>>> page.
>>>
>>>
>>> Jeremy Burns
>>> jeremybu...@me.com 
>>>
>>>
>>> On 30 Apr 2010, at 10:29, Andrei Mita wrote:
>>>
>>> Same install steps here on 1.2.7 / linux / apache.
>>> No errors.
>>>
>>>
>>> On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra <
>>> procsh...@gmail.com> wrote:
>>>
 I just install and run this kit with no problem.
 I learned about it from this thread
 Using cakekphp 1.3, apach, linux

 1. Download
 http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
 2. extract it under app/plugins/debug_kit (doesn't work without the
 underscore)
 3. Add debug_kit tool bar to app_controller.
 In my case var $components = array
 ('Session','Cookie','DebugKit.Toolbar');
 4. Didn't change my debug level, Configure::write('debug', 2);

 voila.

 I get a long list of debug properties in the bottom of the page
 which I presume is what I should get from this kit.


 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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
 cake-php+unsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

>>>
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this
>>> group at http://groups.google.com/group/cake-php?hl=en
>>>
>>>
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>
>> Check out the new CakePHP Questions site 

Re: DebugKit

2010-04-30 Thread Jeremy Burns
Not sure - I've got it in /app/plugins.

Jeremy Burns
jeremybu...@me.com

On 30 Apr 2010, at 11:08, Ed Propsner wrote:

> K, here is a really dumb question for ya' ... does it matter where I put it, 
> and by that I mean ... 
> 
> htdocs/cake/plugins
> 
> OR 
> 
> htdocs/mysite/plugins
> 
> On Fri, Apr 30, 2010 at 5:55 AM, Ed Propsner  wrote:
> hmmm  
> 
> 
> On Fri, Apr 30, 2010 at 5:53 AM, Jeremy Burns  wrote:
> Nope - just followed the simple instructions - nothing non standard.
> 
> 
> Jeremy Burns
> jeremybu...@me.com
> 
> On 30 Apr 2010, at 10:51, Ed Propsner wrote:
> 
>> @Jeremy
>> 
>> Did you have to manually load the CSS? 
>> 
>> $html->css(array('style', 'addstyle', 'debug_toolbar'));
>> 
>> 
>> On Fri, Apr 30, 2010 at 5:46 AM, Ed Propsner  wrote:
>> I had no clue it was supposed to dock itself all nice and neat like that 
>>  you would think "toolbar" would have been a giveaway :) I'm going to 
>> scrap it and start again. 
>> 
>> 
>> On Fri, Apr 30, 2010 at 5:44 AM, Jeremy Burns  wrote:
>> It works locally on FF, Safari and Chrome. Remote - no CSS and I get what 
>> you're getting.
>> 
>> 
>> Jeremy Burns
>> jeremybu...@me.com
>> 
>> On 30 Apr 2010, at 10:41, Ed Propsner wrote:
>> 
>>> wtf? I'm on a mission now ... Is that browser specific (FF presumably)? I 
>>> must have an underlying problem somewhere still because I'm getting a 
>>> 'break on' error in FF. 
>>> 
>>> On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns  wrote:
>>> Not sure if this will post OK...
>>> 
>>> 
>>> 
>>> 
>>> Jeremy Burns
>>> jeremybu...@me.com
>>> 
>>> On 30 Apr 2010, at 10:35, Ed Propsner wrote:
>>> 
 You don't say ?? That would be just swell and I'm not getting that. 
 
 On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns  wrote:
 If it installs correctly it minimises to an icon in the upper right hand 
 corner of the page. Clicking on it zooms it out and gives drop downs. When 
 the CSS doesn't work, you get the long list at the foot of the page.
 
 
 Jeremy Burns
 jeremybu...@me.com
 
 
 On 30 Apr 2010, at 10:29, Andrei Mita wrote:
 
> Same install steps here on 1.2.7 / linux / apache.
> No errors.
> 
> 
> On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra  
> wrote:
> I just install and run this kit with no problem.
> I learned about it from this thread
> Using cakekphp 1.3, apach, linux
> 
> 1. Download 
> http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
> 2. extract it under app/plugins/debug_kit (doesn't work without the 
> underscore)
> 3. Add debug_kit tool bar to app_controller.
> In my case var $components = array 
> ('Session','Cookie','DebugKit.Toolbar'); 
> 4. Didn't change my debug level, Configure::write('debug', 2);
> 
> voila.
> 
> I get a long list of debug properties in the bottom of the page which I 
> presume is what I should get from this kit.
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help 
> others with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> at http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help 
> others with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> at http://groups.google.com/group/cake-php?hl=en
 
 
 Check out the new CakePHP Questions site http://cakeqs.org and help others 
 with their CakePHP related questions.
  
 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
 cake-php+unsubscr...@googlegroups.com For more options, visit this group 
 at http://groups.google.com/group/cake-php?hl=en
 
 
 Check out the new CakePHP Questions site http://cakeqs.org and help others 
 with their CakePHP related questions.
  
 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
 cake-php+unsubscr...@googlegroups.com For more options, visit this group 
 at http://groups.google.com/group/cake-php?hl=en

Re: DebugKit

2010-04-30 Thread Ed Propsner
K, here is a really dumb question for ya' ... does it matter where I put it,
and by that I mean ...

htdocs/cake/plugins

OR

htdocs/mysite/plugins

On Fri, Apr 30, 2010 at 5:55 AM, Ed Propsner  wrote:

> hmmm 
>
>
> On Fri, Apr 30, 2010 at 5:53 AM, Jeremy Burns  wrote:
>
>> Nope - just followed the simple instructions - nothing non standard.
>>
>>
>> Jeremy Burns
>> jeremybu...@me.com 
>>
>> On 30 Apr 2010, at 10:51, Ed Propsner wrote:
>>
>> @Jeremy
>>
>> Did you have to manually load the CSS?
>>
>> $html->css(array('style', 'addstyle', 'debug_toolbar'));
>>
>>
>> On Fri, Apr 30, 2010 at 5:46 AM, Ed Propsner wrote:
>>
>>> I had no clue it was supposed to dock itself all nice and neat like that
>>>  you would think "toolbar" would have been a giveaway :) I'm going to
>>> scrap it and start again.
>>>
>>>
>>> On Fri, Apr 30, 2010 at 5:44 AM, Jeremy Burns wrote:
>>>
 It works locally on FF, Safari and Chrome. Remote - no CSS and I get
 what you're getting.


 Jeremy Burns
 jeremybu...@me.com 

 On 30 Apr 2010, at 10:41, Ed Propsner wrote:

 wtf? I'm on a mission now ... Is that browser specific (FF presumably)?
 I must have an underlying problem somewhere still because I'm getting a
 'break on' error in FF.

 On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns wrote:

> Not sure if this will post OK...
>
> 
>
>
> Jeremy Burns
> jeremybu...@me.com 
>
> On 30 Apr 2010, at 10:35, Ed Propsner wrote:
>
> You don't say ?? That would be just swell and I'm not getting that.
>
> On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns wrote:
>
>> If it installs correctly it minimises to an icon in the upper right
>> hand corner of the page. Clicking on it zooms it out and gives drop 
>> downs.
>> When the CSS doesn't work, you get the long list at the foot of the page.
>>
>>
>> Jeremy Burns
>> jeremybu...@me.com 
>>
>>
>> On 30 Apr 2010, at 10:29, Andrei Mita wrote:
>>
>> Same install steps here on 1.2.7 / linux / apache.
>> No errors.
>>
>>
>> On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra <
>> procsh...@gmail.com> wrote:
>>
>>> I just install and run this kit with no problem.
>>> I learned about it from this thread
>>> Using cakekphp 1.3, apach, linux
>>>
>>> 1. Download
>>> http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
>>> 2. extract it under app/plugins/debug_kit (doesn't work without the
>>> underscore)
>>> 3. Add debug_kit tool bar to app_controller.
>>> In my case var $components = array
>>> ('Session','Cookie','DebugKit.Toolbar');
>>> 4. Didn't change my debug level, Configure::write('debug', 2);
>>>
>>> voila.
>>>
>>> I get a long list of debug properties in the bottom of the page which
>>> I presume is what I should get from this kit.
>>>
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this
>> group at http://groups.google.com/group/cake-php?hl=en
>>
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this

Re: DebugKit

2010-04-30 Thread Ed Propsner
hmmm 

On Fri, Apr 30, 2010 at 5:53 AM, Jeremy Burns  wrote:

> Nope - just followed the simple instructions - nothing non standard.
>
>
> Jeremy Burns
> jeremybu...@me.com 
>
> On 30 Apr 2010, at 10:51, Ed Propsner wrote:
>
> @Jeremy
>
> Did you have to manually load the CSS?
>
> $html->css(array('style', 'addstyle', 'debug_toolbar'));
>
>
> On Fri, Apr 30, 2010 at 5:46 AM, Ed Propsner  wrote:
>
>> I had no clue it was supposed to dock itself all nice and neat like that
>>  you would think "toolbar" would have been a giveaway :) I'm going to
>> scrap it and start again.
>>
>>
>> On Fri, Apr 30, 2010 at 5:44 AM, Jeremy Burns  wrote:
>>
>>> It works locally on FF, Safari and Chrome. Remote - no CSS and I get what
>>> you're getting.
>>>
>>>
>>> Jeremy Burns
>>> jeremybu...@me.com 
>>>
>>> On 30 Apr 2010, at 10:41, Ed Propsner wrote:
>>>
>>> wtf? I'm on a mission now ... Is that browser specific (FF presumably)? I
>>> must have an underlying problem somewhere still because I'm getting a 'break
>>> on' error in FF.
>>>
>>> On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns wrote:
>>>
 Not sure if this will post OK...

 


 Jeremy Burns
 jeremybu...@me.com 

 On 30 Apr 2010, at 10:35, Ed Propsner wrote:

 You don't say ?? That would be just swell and I'm not getting that.

 On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns wrote:

> If it installs correctly it minimises to an icon in the upper right
> hand corner of the page. Clicking on it zooms it out and gives drop downs.
> When the CSS doesn't work, you get the long list at the foot of the page.
>
>
> Jeremy Burns
> jeremybu...@me.com 
>
>
> On 30 Apr 2010, at 10:29, Andrei Mita wrote:
>
> Same install steps here on 1.2.7 / linux / apache.
> No errors.
>
>
> On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra <
> procsh...@gmail.com> wrote:
>
>> I just install and run this kit with no problem.
>> I learned about it from this thread
>> Using cakekphp 1.3, apach, linux
>>
>> 1. Download
>> http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
>> 2. extract it under app/plugins/debug_kit (doesn't work without the
>> underscore)
>> 3. Add debug_kit tool bar to app_controller.
>> In my case var $components = array
>> ('Session','Cookie','DebugKit.Toolbar');
>> 4. Didn't change my debug level, Configure::write('debug', 2);
>>
>> voila.
>>
>> I get a long list of debug properties in the bottom of the page which
>> I presume is what I should get from this kit.
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this
> group at http://groups.google.com/group/cake-php?hl=en
>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>


 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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
 cake-php+unsubscr...@googlegroups.com For more options, visit this
 group at http://groups.google.com/group/cake-php?hl=en



 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 You received this message because you are subscribed to the Google
 Groups "CakePHP" group.
 To post to this group, send email to cake-p

Re: DebugKit

2010-04-30 Thread Jeremy Burns
Nope - just followed the simple instructions - nothing non standard.

Jeremy Burns
jeremybu...@me.com

On 30 Apr 2010, at 10:51, Ed Propsner wrote:

> @Jeremy
> 
> Did you have to manually load the CSS? 
> 
> $html->css(array('style', 'addstyle', 'debug_toolbar'));
> 
> 
> On Fri, Apr 30, 2010 at 5:46 AM, Ed Propsner  wrote:
> I had no clue it was supposed to dock itself all nice and neat like that  
> you would think "toolbar" would have been a giveaway :) I'm going to scrap it 
> and start again. 
> 
> 
> On Fri, Apr 30, 2010 at 5:44 AM, Jeremy Burns  wrote:
> It works locally on FF, Safari and Chrome. Remote - no CSS and I get what 
> you're getting.
> 
> 
> Jeremy Burns
> jeremybu...@me.com
> 
> On 30 Apr 2010, at 10:41, Ed Propsner wrote:
> 
>> wtf? I'm on a mission now ... Is that browser specific (FF presumably)? I 
>> must have an underlying problem somewhere still because I'm getting a 'break 
>> on' error in FF. 
>> 
>> On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns  wrote:
>> Not sure if this will post OK...
>> 
>> 
>> 
>> 
>> Jeremy Burns
>> jeremybu...@me.com
>> 
>> On 30 Apr 2010, at 10:35, Ed Propsner wrote:
>> 
>>> You don't say ?? That would be just swell and I'm not getting that. 
>>> 
>>> On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns  wrote:
>>> If it installs correctly it minimises to an icon in the upper right hand 
>>> corner of the page. Clicking on it zooms it out and gives drop downs. When 
>>> the CSS doesn't work, you get the long list at the foot of the page.
>>> 
>>> 
>>> Jeremy Burns
>>> jeremybu...@me.com
>>> 
>>> 
>>> On 30 Apr 2010, at 10:29, Andrei Mita wrote:
>>> 
 Same install steps here on 1.2.7 / linux / apache.
 No errors.
 
 
 On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra  
 wrote:
 I just install and run this kit with no problem.
 I learned about it from this thread
 Using cakekphp 1.3, apach, linux
 
 1. Download 
 http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
 2. extract it under app/plugins/debug_kit (doesn't work without the 
 underscore)
 3. Add debug_kit tool bar to app_controller.
 In my case var $components = array 
 ('Session','Cookie','DebugKit.Toolbar'); 
 4. Didn't change my debug level, Configure::write('debug', 2);
 
 voila.
 
 I get a long list of debug properties in the bottom of the page which I 
 presume is what I should get from this kit.
 
 
 Check out the new CakePHP Questions site http://cakeqs.org and help others 
 with their CakePHP related questions.
  
 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
 cake-php+unsubscr...@googlegroups.com For more options, visit this group 
 at http://groups.google.com/group/cake-php?hl=en
 
 
 Check out the new CakePHP Questions site http://cakeqs.org and help others 
 with their CakePHP related questions.
  
 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
 cake-php+unsubscr...@googlegroups.com For more options, visit this group 
 at http://groups.google.com/group/cake-php?hl=en
>>> 
>>> 
>>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>>> with their CakePHP related questions.
>>>  
>>> 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
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>>> http://groups.google.com/group/cake-php?hl=en
>>> 
>>> 
>>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>>> with their CakePHP related questions.
>>>  
>>> 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
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>>> http://groups.google.com/group/cake-php?hl=en
>> 
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>> with their CakePHP related questions.
>>  
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>> http://groups.google.com/group/cake-php?hl=en
>> 
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help o

Re: DebugKit

2010-04-30 Thread Ed Propsner
@Jeremy

Did you have to manually load the CSS?

$html->css(array('style', 'addstyle', 'debug_toolbar'));


On Fri, Apr 30, 2010 at 5:46 AM, Ed Propsner  wrote:

> I had no clue it was supposed to dock itself all nice and neat like that
>  you would think "toolbar" would have been a giveaway :) I'm going to
> scrap it and start again.
>
>
> On Fri, Apr 30, 2010 at 5:44 AM, Jeremy Burns  wrote:
>
>> It works locally on FF, Safari and Chrome. Remote - no CSS and I get what
>> you're getting.
>>
>>
>> Jeremy Burns
>> jeremybu...@me.com 
>>
>> On 30 Apr 2010, at 10:41, Ed Propsner wrote:
>>
>> wtf? I'm on a mission now ... Is that browser specific (FF presumably)? I
>> must have an underlying problem somewhere still because I'm getting a 'break
>> on' error in FF.
>>
>> On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns  wrote:
>>
>>> Not sure if this will post OK...
>>>
>>> 
>>>
>>>
>>> Jeremy Burns
>>> jeremybu...@me.com 
>>>
>>> On 30 Apr 2010, at 10:35, Ed Propsner wrote:
>>>
>>> You don't say ?? That would be just swell and I'm not getting that.
>>>
>>> On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns wrote:
>>>
 If it installs correctly it minimises to an icon in the upper right hand
 corner of the page. Clicking on it zooms it out and gives drop downs. When
 the CSS doesn't work, you get the long list at the foot of the page.


 Jeremy Burns
 jeremybu...@me.com 


 On 30 Apr 2010, at 10:29, Andrei Mita wrote:

 Same install steps here on 1.2.7 / linux / apache.
 No errors.


 On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra <
 procsh...@gmail.com> wrote:

> I just install and run this kit with no problem.
> I learned about it from this thread
> Using cakekphp 1.3, apach, linux
>
> 1. Download
> http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
> 2. extract it under app/plugins/debug_kit (doesn't work without the
> underscore)
> 3. Add debug_kit tool bar to app_controller.
> In my case var $components = array
> ('Session','Cookie','DebugKit.Toolbar');
> 4. Didn't change my debug level, Configure::write('debug', 2);
>
> voila.
>
> I get a long list of debug properties in the bottom of the page which I
> presume is what I should get from this kit.
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>


 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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
 cake-php+unsubscr...@googlegroups.com For more options, visit this
 group at http://groups.google.com/group/cake-php?hl=en



 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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
 cake-php+unsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

>>>
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>>> at http://groups.google.com/group/cake-php?hl=en
>>>
>>>
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> You received this message becau

Re: DebugKit

2010-04-30 Thread Ed Propsner
I had no clue it was supposed to dock itself all nice and neat like that
 you would think "toolbar" would have been a giveaway :) I'm going to
scrap it and start again.

On Fri, Apr 30, 2010 at 5:44 AM, Jeremy Burns  wrote:

> It works locally on FF, Safari and Chrome. Remote - no CSS and I get what
> you're getting.
>
>
> Jeremy Burns
> jeremybu...@me.com 
>
> On 30 Apr 2010, at 10:41, Ed Propsner wrote:
>
> wtf? I'm on a mission now ... Is that browser specific (FF presumably)? I
> must have an underlying problem somewhere still because I'm getting a 'break
> on' error in FF.
>
> On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns  wrote:
>
>> Not sure if this will post OK...
>>
>> 
>>
>>
>> Jeremy Burns
>> jeremybu...@me.com 
>>
>> On 30 Apr 2010, at 10:35, Ed Propsner wrote:
>>
>> You don't say ?? That would be just swell and I'm not getting that.
>>
>> On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns  wrote:
>>
>>> If it installs correctly it minimises to an icon in the upper right hand
>>> corner of the page. Clicking on it zooms it out and gives drop downs. When
>>> the CSS doesn't work, you get the long list at the foot of the page.
>>>
>>>
>>> Jeremy Burns
>>> jeremybu...@me.com 
>>>
>>>
>>> On 30 Apr 2010, at 10:29, Andrei Mita wrote:
>>>
>>> Same install steps here on 1.2.7 / linux / apache.
>>> No errors.
>>>
>>>
>>> On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra >> > wrote:
>>>
 I just install and run this kit with no problem.
 I learned about it from this thread
 Using cakekphp 1.3, apach, linux

 1. Download
 http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
 2. extract it under app/plugins/debug_kit (doesn't work without the
 underscore)
 3. Add debug_kit tool bar to app_controller.
 In my case var $components = array
 ('Session','Cookie','DebugKit.Toolbar');
 4. Didn't change my debug level, Configure::write('debug', 2);

 voila.

 I get a long list of debug properties in the bottom of the page which I
 presume is what I should get from this kit.


 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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
 cake-php+unsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

>>>
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>>> at http://groups.google.com/group/cake-php?hl=en
>>>
>>>
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>> at http://groups.google.com/group/cake-php?hl=en
>>
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
>
>
>  Check out the new Ca

Re: DebugKit

2010-04-30 Thread Jeremy Burns
It works locally on FF, Safari and Chrome. Remote - no CSS and I get what 
you're getting.

Jeremy Burns
jeremybu...@me.com

On 30 Apr 2010, at 10:41, Ed Propsner wrote:

> wtf? I'm on a mission now ... Is that browser specific (FF presumably)? I 
> must have an underlying problem somewhere still because I'm getting a 'break 
> on' error in FF. 
> 
> On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns  wrote:
> Not sure if this will post OK...
> 
> 
> 
> Jeremy Burns
> jeremybu...@me.com
> 
> On 30 Apr 2010, at 10:35, Ed Propsner wrote:
> 
>> You don't say ?? That would be just swell and I'm not getting that. 
>> 
>> On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns  wrote:
>> If it installs correctly it minimises to an icon in the upper right hand 
>> corner of the page. Clicking on it zooms it out and gives drop downs. When 
>> the CSS doesn't work, you get the long list at the foot of the page.
>> 
>> 
>> Jeremy Burns
>> jeremybu...@me.com
>> 
>> 
>> On 30 Apr 2010, at 10:29, Andrei Mita wrote:
>> 
>>> Same install steps here on 1.2.7 / linux / apache.
>>> No errors.
>>> 
>>> 
>>> On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra  
>>> wrote:
>>> I just install and run this kit with no problem.
>>> I learned about it from this thread
>>> Using cakekphp 1.3, apach, linux
>>> 
>>> 1. Download 
>>> http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
>>> 2. extract it under app/plugins/debug_kit (doesn't work without the 
>>> underscore)
>>> 3. Add debug_kit tool bar to app_controller.
>>> In my case var $components = array 
>>> ('Session','Cookie','DebugKit.Toolbar'); 
>>> 4. Didn't change my debug level, Configure::write('debug', 2);
>>> 
>>> voila.
>>> 
>>> I get a long list of debug properties in the bottom of the page which I 
>>> presume is what I should get from this kit.
>>> 
>>> 
>>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>>> with their CakePHP related questions.
>>>  
>>> 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
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>>> http://groups.google.com/group/cake-php?hl=en
>>> 
>>> 
>>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>>> with their CakePHP related questions.
>>>  
>>> 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
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>>> http://groups.google.com/group/cake-php?hl=en
>> 
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>> with their CakePHP related questions.
>>  
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>> http://groups.google.com/group/cake-php?hl=en
>> 
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>> with their CakePHP related questions.
>>  
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Re: DebugKit

2010-04-30 Thread Ed Propsner
wtf? I'm on a mission now ... Is that browser specific (FF presumably)? I
must have an underlying problem somewhere still because I'm getting a 'break
on' error in FF.

On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns  wrote:

> Not sure if this will post OK...
>
>
>
> Jeremy Burns
> jeremybu...@me.com 
>
> On 30 Apr 2010, at 10:35, Ed Propsner wrote:
>
> You don't say ?? That would be just swell and I'm not getting that.
>
> On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns  wrote:
>
>> If it installs correctly it minimises to an icon in the upper right hand
>> corner of the page. Clicking on it zooms it out and gives drop downs. When
>> the CSS doesn't work, you get the long list at the foot of the page.
>>
>>
>> Jeremy Burns
>> jeremybu...@me.com 
>>
>>
>> On 30 Apr 2010, at 10:29, Andrei Mita wrote:
>>
>> Same install steps here on 1.2.7 / linux / apache.
>> No errors.
>>
>>
>> On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra 
>> wrote:
>>
>>> I just install and run this kit with no problem.
>>> I learned about it from this thread
>>> Using cakekphp 1.3, apach, linux
>>>
>>> 1. Download
>>> http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
>>> 2. extract it under app/plugins/debug_kit (doesn't work without the
>>> underscore)
>>> 3. Add debug_kit tool bar to app_controller.
>>> In my case var $components = array
>>> ('Session','Cookie','DebugKit.Toolbar');
>>> 4. Didn't change my debug level, Configure::write('debug', 2);
>>>
>>> voila.
>>>
>>> I get a long list of debug properties in the bottom of the page which I
>>> presume is what I should get from this kit.
>>>
>>>
>>> Check out the new CakePHP Questions site http://cakeqs.org and help
>>> others with their CakePHP related questions.
>>>
>>> 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
>>> cake-php+unsubscr...@googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/group/cake-php?hl=en
>>>
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>> at http://groups.google.com/group/cake-php?hl=en
>>
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
<>

Re: DebugKit

2010-04-30 Thread Jeremy Burns
Not sure if this will post OK...



Jeremy Burns
jeremybu...@me.com

On 30 Apr 2010, at 10:35, Ed Propsner wrote:

> You don't say ?? That would be just swell and I'm not getting that. 
> 
> On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns  wrote:
> If it installs correctly it minimises to an icon in the upper right hand 
> corner of the page. Clicking on it zooms it out and gives drop downs. When 
> the CSS doesn't work, you get the long list at the foot of the page.
> 
> 
> Jeremy Burns
> jeremybu...@me.com
> 
> 
> On 30 Apr 2010, at 10:29, Andrei Mita wrote:
> 
>> Same install steps here on 1.2.7 / linux / apache.
>> No errors.
>> 
>> 
>> On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra  
>> wrote:
>> I just install and run this kit with no problem.
>> I learned about it from this thread
>> Using cakekphp 1.3, apach, linux
>> 
>> 1. Download 
>> http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
>> 2. extract it under app/plugins/debug_kit (doesn't work without the 
>> underscore)
>> 3. Add debug_kit tool bar to app_controller.
>> In my case var $components = array 
>> ('Session','Cookie','DebugKit.Toolbar'); 
>> 4. Didn't change my debug level, Configure::write('debug', 2);
>> 
>> voila.
>> 
>> I get a long list of debug properties in the bottom of the page which I 
>> presume is what I should get from this kit.
>> 
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>> with their CakePHP related questions.
>>  
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>> http://groups.google.com/group/cake-php?hl=en
>> 
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>> with their CakePHP related questions.
>>  
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
<>

Re: DebugKit

2010-04-30 Thread Ed Propsner
You don't say ?? That would be just swell and I'm not getting that.

On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns  wrote:

> If it installs correctly it minimises to an icon in the upper right hand
> corner of the page. Clicking on it zooms it out and gives drop downs. When
> the CSS doesn't work, you get the long list at the foot of the page.
>
>
> Jeremy Burns
> jeremybu...@me.com 
>
>
> On 30 Apr 2010, at 10:29, Andrei Mita wrote:
>
> Same install steps here on 1.2.7 / linux / apache.
> No errors.
>
>
> On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra 
> wrote:
>
>> I just install and run this kit with no problem.
>> I learned about it from this thread
>> Using cakekphp 1.3, apach, linux
>>
>> 1. Download
>> http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
>> 2. extract it under app/plugins/debug_kit (doesn't work without the
>> underscore)
>> 3. Add debug_kit tool bar to app_controller.
>> In my case var $components = array
>> ('Session','Cookie','DebugKit.Toolbar');
>> 4. Didn't change my debug level, Configure::write('debug', 2);
>>
>> voila.
>>
>> I get a long list of debug properties in the bottom of the page which I
>> presume is what I should get from this kit.
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread Jeremy Burns
If it installs correctly it minimises to an icon in the upper right hand corner 
of the page. Clicking on it zooms it out and gives drop downs. When the CSS 
doesn't work, you get the long list at the foot of the page.

Jeremy Burns
jeremybu...@me.com


On 30 Apr 2010, at 10:29, Andrei Mita wrote:

> Same install steps here on 1.2.7 / linux / apache.
> No errors.
> 
> 
> On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra  
> wrote:
> I just install and run this kit with no problem.
> I learned about it from this thread
> Using cakekphp 1.3, apach, linux
> 
> 1. Download 
> http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
> 2. extract it under app/plugins/debug_kit (doesn't work without the 
> underscore)
> 3. Add debug_kit tool bar to app_controller.
> In my case var $components = array 
> ('Session','Cookie','DebugKit.Toolbar'); 
> 4. Didn't change my debug level, Configure::write('debug', 2);
> 
> voila.
> 
> I get a long list of debug properties in the bottom of the page which I 
> presume is what I should get from this kit.
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread Andrei Mita
Same install steps here on 1.2.7 / linux / apache.
No errors.


On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra wrote:

> I just install and run this kit with no problem.
> I learned about it from this thread
> Using cakekphp 1.3, apach, linux
>
> 1. Download
> http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
> 2. extract it under app/plugins/debug_kit (doesn't work without the
> underscore)
> 3. Add debug_kit tool bar to app_controller.
> In my case var $components = array
> ('Session','Cookie','DebugKit.Toolbar');
> 4. Didn't change my debug level, Configure::write('debug', 2);
>
> voila.
>
> I get a long list of debug properties in the bottom of the page which I
> presume is what I should get from this kit.
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread Zaky Katalan-Ezra
I just install and run this kit with no problem.
I learned about it from this thread
Using cakekphp 1.3, apach, linux

1. Download
http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1.2.tar.bz2
2. extract it under app/plugins/debug_kit (doesn't work without the
underscore)
3. Add debug_kit tool bar to app_controller.
In my case var $components = array
('Session','Cookie','DebugKit.Toolbar');
4. Didn't change my debug level, Configure::write('debug', 2);

voila.

I get a long list of debug properties in the bottom of the page which I
presume is what I should get from this kit.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Table Naming convention problem

2010-04-30 Thread Jeremy Burns
Read all the previous responses - my follow up was because you also had a 
problem with your controller function.

AD7six's response is the one you should follow.

Jeremy Burns
jeremybu...@me.com

On 30 Apr 2010, at 10:11, Master Ram wrote:

> that is not my problem. who to use the table name in controller my
> table name is "adb_campaign"(we can not change the table) what is the
> model, view and controller and how to use it.
> 
> thanks sir
> 
> On Apr 30, 2:00 pm, Jeremy Burns  wrote:
>> I was wrong about something - your view is called mycampaigns, not 
>> mycampaign - sorry. However, it looks like you are getting back a list of 
>> campaigns rather than just one. So I would change the function code to:
>> 
>> function mycampaigns() {
>> $campaigns = $this->Campaign->find('all');
>> $this->set('campaigns',$campaigns);
>> 
>> }
>> 
>> Notice the pluralisation of the the campaignS variable, which is what your 
>> view is looking for. You can shorten it further too:
>> 
>> function mycampaigns() {
>> $this->set(
>> 'campaigns',
>> $this->Campaign->find('all')
>> );
>> 
>> }
>> 
>> Jeremy Burns
>> jeremybu...@me.com
>> (Skype) +44 208 123 3822 (jeremy_burns)
>> (m) +44 7973 481949
>> (h) +44 208 530 7573
>> 
>> On 30 Apr 2010, at 09:53, Jeremy Burns wrote:
>> 
>> 
>> 
>>> It is rarely a good idea to stray from conventions 
>>> (http://book.cakephp.org/view/22/CakePHP-Conventions) if you can avoid it. 
>>> Is it too late to re-factor your database? Assuming it is...
>> 
>>> You are putting your prefix into the variable that is intended to hold the 
>>> name of the controller/model.
>> 
>>> Try:
>> 
>>> Model:
>>> var $name = 'Campaign';
>>> var $useTable = 'campaign';
>>> var $tablePrefix = 'adb_';
>> 
>>> //ideally you'd call the table campaigns, then wouldn't need the $useTable 
>>> or tablePrefix variables
>> 
>>> Controller:
>>> var $name = 'Campaigns';
>> 
>>> I'd recommend getting rid of your $uses array because it will hit 
>>> performance - look up Associations-Linking-Models-Together.
>> 
>>> Your view folder should be called campaigns.
>> 
>>> The 'mycampaign.ctp' view you have created will be rendered when you access 
>>> the controller function 'mycampaign'.
>> 
>>> Jeremy Burns
>>> jeremybu...@me.com
>> 
>>> On 30 Apr 2010, at 09:40, Master Ram wrote:
>> 
 HI. all i am new to cakephp
>> 
 i have table name called: adb_campaign
>> 
 my contorller is:
 my controller Name: compaigns_controller.php
>> 
 >>> class CompaignsController extends AppController {
>> 
//var $tablePrefix = 'adb_';//var $name = "Users";
var $name = 'adb_'
>> 
var $uses=array('Client','User','Campaign');
//var $uses=array('User');
>> 
var $helpers = array('Html', 'Form');
function mycampaigns()
{
$campaigns = $this->Campaign->find('all');
$this->set('campaign',$campaigns);
}
>> 
 }
 ?>
>> 
 my modle Name: campaign.php
>> 
 >>> class Campaign extends AppModel {
>> 
   // var $tablePrefix = 'adb_';
var $useTable ='adb_'
>> 
 }
 ?>
>> 
 in the view folder name: campaign
>> 
 mycampaigns.ctp
>> 
 >>>$a = array();
$i=1;
>> 
 foreach( $campaigns as $campaign ):
$a[$i] =
 $campaign['Campaign']['jobno'];
$i++;
endforeach;
echo $form-
> select('campaign ', $a, 0,
array('style'
 => 'width: 50%'),false);
?>
>> 
 where i made the mistake please help me
>> 
 regards:
 Master
>> 
 Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
 with their CakePHP related questions.
>> 
 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
 cake-php+unsubscr...@googlegroups.com For more options, visit this group 
 athttp://groups.google.com/group/cake-php?hl=en
>> 
>>> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
>>> with their CakePHP related questions.
>> 
>>> 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
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
>>> athttp://groups.google.com/group/cake-php?hl=en
>> 
>> Check o

Re: Cakephp Ajax is not including the javascripts in the view

2010-04-30 Thread Vijay Kumbhar
Hey Andrei,

But in my case it is not like that,

Cakephp is not rendering the js file which is included in the my.ctp which
is used while ajax call.

Thats why i am very panic about this issue.



On Fri, Apr 30, 2010 at 1:13 PM, Andrei Mita  wrote:

> Another guess here. I had a similar situation when developing a non-cake
> app.
>
> I was using jquery to animate some tabs. JQuery was included in the head of
> the document, the first set of tabs where working OK. But when the user
> requested for some more information on the related item he was viewing, a
> new set of tabs was loaded via ajax but the animation wasn't working. That's
> because jquery had now way of knowing some new elements were inserted. The
> solution was to force jquery rescan my page and re-apply the effects.
>
> Tell me if this makes any sense to you and I'll get into details.
>
>
>
> On Fri, Apr 30, 2010 at 10:23 AM, Vijay  wrote:
>
>> Thanks for reply andrei.
>>
>> I am calling the normal javascript functions or any javascript file.
>> I have some jquery effects for the text boxes & drop downs. That are
>> not including when the ctp get called.
>>
>> my code is,
>>
>> > echo $html->css('mycss);
>>
>> echo $html->script(array('jquery', 'another script'));?>
>>
>> rest my html code
>>
>>
>> It is including the css but no js is included.
>> here i am using jquery with prototype.
>>
>>
>>
>> On Apr 30, 12:10 pm, Andrei Mita  wrote:
>> > What type of js do you have in the loaded ctp?
>> >
>> > Maybe you forgot to include something in the layout.
>> >
>> > It's a blind guess without seeing the actual code. At least for me.
>> >
>> >
>> >
>> > On Fri, Apr 30, 2010 at 9:23 AM, Vijay  wrote:
>> > > Hello All,
>> >
>> > > I am using the ajax for the internal links in my site.
>> >
>> > > When i click on the link & the new ctp loads, it is not including the
>> > > javascripts that are included in that ctp.
>> > > So the effects are not working.
>> >
>> > > It includes the css but not including the javascript.
>> >
>> > > Any idea.
>> >
>> > > Thanks,
>> >
>> > > Vijay Kumbhar,
>> > > CTO, Weboniselab.
>> > > 9766251100
>> >
>> > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help
>> others
>> > > with their CakePHP related questions.
>> >
>> > > 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
>> > > cake-php+unsubscr...@googlegroups.com
>> >For
>> more options, visit this group at
>> > >http://groups.google.com/group/cake-php?hl=en
>> >
>> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
>> with their CakePHP related questions.
>> >
>> > 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
>> > cake-php+unsubscr...@googlegroups.comFor
>> >  more options, visit this group athttp://
>> groups.google.com/group/cake-php?hl=en
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Thanks & Regards,
Vijayk.

"You Bring the Dreams, We'll Bring the Means"

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Table Naming convention problem

2010-04-30 Thread Master Ram
that is not my problem. who to use the table name in controller my
table name is "adb_campaign"(we can not change the table) what is the
model, view and controller and how to use it.

thanks sir

On Apr 30, 2:00 pm, Jeremy Burns  wrote:
> I was wrong about something - your view is called mycampaigns, not mycampaign 
> - sorry. However, it looks like you are getting back a list of campaigns 
> rather than just one. So I would change the function code to:
>
> function mycampaigns() {
>         $campaigns = $this->Campaign->find('all');
>         $this->set('campaigns',$campaigns);
>
> }
>
> Notice the pluralisation of the the campaignS variable, which is what your 
> view is looking for. You can shorten it further too:
>
> function mycampaigns() {
>         $this->set(
>                 'campaigns',
>                 $this->Campaign->find('all')
>         );
>
> }
>
> Jeremy Burns
> jeremybu...@me.com
> (Skype) +44 208 123 3822 (jeremy_burns)
> (m) +44 7973 481949
> (h) +44 208 530 7573
>
> On 30 Apr 2010, at 09:53, Jeremy Burns wrote:
>
>
>
> > It is rarely a good idea to stray from conventions 
> > (http://book.cakephp.org/view/22/CakePHP-Conventions) if you can avoid it. 
> > Is it too late to re-factor your database? Assuming it is...
>
> > You are putting your prefix into the variable that is intended to hold the 
> > name of the controller/model.
>
> > Try:
>
> > Model:
> > var $name = 'Campaign';
> > var $useTable = 'campaign';
> > var $tablePrefix = 'adb_';
>
> > //ideally you'd call the table campaigns, then wouldn't need the $useTable 
> > or tablePrefix variables
>
> > Controller:
> > var $name = 'Campaigns';
>
> > I'd recommend getting rid of your $uses array because it will hit 
> > performance - look up Associations-Linking-Models-Together.
>
> > Your view folder should be called campaigns.
>
> > The 'mycampaign.ctp' view you have created will be rendered when you access 
> > the controller function 'mycampaign'.
>
> > Jeremy Burns
> > jeremybu...@me.com
>
> > On 30 Apr 2010, at 09:40, Master Ram wrote:
>
> >> HI. all i am new to cakephp
>
> >> i have table name called: adb_campaign
>
> >> my contorller is:
> >> my controller Name: compaigns_controller.php
>
> >>  >> class CompaignsController extends AppController {
>
> >>    //var $tablePrefix = 'adb_';//var $name = "Users";
> >>    var $name = 'adb_'
>
> >>    var $uses=array('Client','User','Campaign');
> >>    //var $uses=array('User');
>
> >>    var $helpers = array('Html', 'Form');
> >>    function mycampaigns()
> >>    {
> >>        $campaigns = $this->Campaign->find('all');
> >>        $this->set('campaign',$campaigns);
> >>    }
>
> >> }
> >> ?>
>
> >> my modle Name: campaign.php
>
> >>  >> class Campaign extends AppModel {
>
> >>   // var $tablePrefix = 'adb_';
> >>    var $useTable ='adb_'
>
> >> }
> >> ?>
>
> >> in the view folder name: campaign
>
> >> mycampaigns.ctp
>
> >>  >>                                                        $a = array();
> >>                                                        $i=1;
>
> >> foreach( $campaigns as $campaign ):
> >>                                                        $a[$i] =
> >> $campaign['Campaign']['jobno'];
> >>                                                        $i++;
> >>                                                        endforeach;
> >>                                                        echo $form-
> >>> select('campaign ', $a, 0,
> >>                                                        array('style'
> >> => 'width: 50%'),false);
> >>                                                        ?>
>
> >> where i made the mistake please help me
>
> >> regards:
> >> Master
>
> >> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
> >> with their CakePHP related questions.
>
> >> 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
> >> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> >> athttp://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
> > with their CakePHP related questions.
>
> > 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
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For mo

Re: Table Naming convention problem

2010-04-30 Thread AD7six


On Apr 30, 11:01 am, Master Ram  wrote:
> the table name is fixed i cont change the table name to "adb_compaign"

Master Ram,

Which is the correct name - you are using compaign and campaign
indiscriminately.

I'd suggest putting 'prefix' => 'adb_' in your db config file and
baking the model, then the controller and then the views (it'll
guarentee you have the right class names, file names and in the right/
conventional location)

AD
* http://book.cakephp.org/search/bake

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Table Naming convention problem

2010-04-30 Thread Master Ram
the table name is fixed i cont change the table name to "adb_compaign"



On Apr 30, 1:47 pm, Andrei Mita  wrote:
> You didn't fallow the conventions :)
>
> http://book.cakephp.org/view/23/File-and-Classname-Conventions
>
> Table name should be adb_campaigns
> Controller file name: abd_campaigns_controller.php
> Controller class name: AdbCampaignsController
>
> and so on
>
> Read the conventions carefully.
>
>
>
> On Fri, Apr 30, 2010 at 11:40 AM, Master Ram  wrote:
> > HI. all i am new to cakephp
>
> > i have table name called: adb_campaign
>
> > my contorller is:
> > my controller Name: compaigns_controller.php
>
> >  > class CompaignsController extends AppController {
>
> >    //var $tablePrefix = 'adb_';//var $name = "Users";
> >    var $name = 'adb_'
>
> >    var $uses=array('Client','User','Campaign');
> >    //var $uses=array('User');
>
> >    var $helpers = array('Html', 'Form');
> >    function mycampaigns()
> >    {
> >        $campaigns = $this->Campaign->find('all');
> >        $this->set('campaign',$campaigns);
> >    }
>
> > }
> > ?>
>
> > my modle Name: campaign.php
>
> >  > class Campaign extends AppModel {
>
> >   // var $tablePrefix = 'adb_';
> >    var $useTable ='adb_'
>
> > }
> > ?>
>
> > in the view folder name: campaign
>
> > mycampaigns.ctp
>
> >  >                                                        $a = array();
> >                                                        $i=1;
>
> > foreach( $campaigns as $campaign ):
> >                                                        $a[$i] =
> > $campaign['Campaign']['jobno'];
> >                                                        $i++;
> >                                                        endforeach;
> >                                                        echo $form-
> > >select('campaign ', $a, 0,
> >                                                        array('style'
> > => 'width: 50%'),false);
> >                                                        ?>
>
> > where i made the mistake please help me
>
> > regards:
> > Master
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > 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
> > cake-php+unsubscr...@googlegroups.comFor
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Table Naming convention problem

2010-04-30 Thread Jeremy Burns
I was wrong about something - your view is called mycampaigns, not mycampaign - 
sorry. However, it looks like you are getting back a list of campaigns rather 
than just one. So I would change the function code to:

function mycampaigns() {
$campaigns = $this->Campaign->find('all');
$this->set('campaigns',$campaigns);
}

Notice the pluralisation of the the campaignS variable, which is what your view 
is looking for. You can shorten it further too:

function mycampaigns() {
$this->set(
'campaigns',
$this->Campaign->find('all')
);
}

Jeremy Burns
jeremybu...@me.com
(Skype) +44 208 123 3822 (jeremy_burns)
(m) +44 7973 481949
(h) +44 208 530 7573

On 30 Apr 2010, at 09:53, Jeremy Burns wrote:

> It is rarely a good idea to stray from conventions 
> (http://book.cakephp.org/view/22/CakePHP-Conventions) if you can avoid it. Is 
> it too late to re-factor your database? Assuming it is...
> 
> You are putting your prefix into the variable that is intended to hold the 
> name of the controller/model.
> 
> Try:
> 
> Model:
> var $name = 'Campaign';
> var $useTable = 'campaign';
> var $tablePrefix = 'adb_';
> 
> //ideally you'd call the table campaigns, then wouldn't need the $useTable or 
> tablePrefix variables
> 
> Controller:
> var $name = 'Campaigns';
> 
> I'd recommend getting rid of your $uses array because it will hit performance 
> - look up Associations-Linking-Models-Together.
> 
> Your view folder should be called campaigns.
> 
> The 'mycampaign.ctp' view you have created will be rendered when you access 
> the controller function 'mycampaign'.
> 
> Jeremy Burns
> jeremybu...@me.com
> 
> 
> On 30 Apr 2010, at 09:40, Master Ram wrote:
> 
>> HI. all i am new to cakephp
>> 
>> i have table name called: adb_campaign
>> 
>> my contorller is:
>> my controller Name: compaigns_controller.php
>> 
>> > class CompaignsController extends AppController {
>> 
>>//var $tablePrefix = 'adb_';//var $name = "Users";
>>var $name = 'adb_'
>> 
>>var $uses=array('Client','User','Campaign');
>>//var $uses=array('User');
>> 
>>var $helpers = array('Html', 'Form');
>>function mycampaigns()
>>{
>>$campaigns = $this->Campaign->find('all');
>>$this->set('campaign',$campaigns);
>>}
>> 
>> }
>> ?>
>> 
>> my modle Name: campaign.php
>> 
>> > class Campaign extends AppModel {
>> 
>>   // var $tablePrefix = 'adb_';
>>var $useTable ='adb_'
>> 
>> }
>> ?>
>> 
>> in the view folder name: campaign
>> 
>> mycampaigns.ctp
>> 
>> >$a = array();
>>$i=1;
>> 
>> foreach( $campaigns as $campaign ):
>>$a[$i] =
>> $campaign['Campaign']['jobno'];
>>$i++;
>>endforeach;
>>echo $form-
>>> select('campaign ', $a, 0,
>>array('style'
>> => 'width: 50%'),false);
>>?>
>> 
>> 
>> where i made the mistake please help me
>> 
>> regards:
>> Master
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>> with their CakePHP related questions.
>> 
>> 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
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Table Naming convention problem

2010-04-30 Thread Jeremy Burns
Looks like we all jumped on that one!

Jeremy Burns
jeremybu...@me.com

On 30 Apr 2010, at 09:48, Ed Propsner wrote:

> LOL, I was too late ... 
> 
> http://book.cakephp.org/view/903/Model-and-Database-Conventions
> 
> On Fri, Apr 30, 2010 at 4:47 AM, Andrei Mita  wrote:
> You didn't fallow the conventions :)
> 
> http://book.cakephp.org/view/23/File-and-Classname-Conventions
> 
> Table name should be adb_campaigns
> Controller file name: abd_campaigns_controller.php
> Controller class name: AdbCampaignsController 
> 
> and so on
> 
> Read the conventions carefully.
> 
> 
> 
> 
> On Fri, Apr 30, 2010 at 11:40 AM, Master Ram  wrote:
> HI. all i am new to cakephp
> 
> i have table name called: adb_campaign
> 
> my contorller is:
> my controller Name: compaigns_controller.php
> 
>  class CompaignsController extends AppController {
> 
>//var $tablePrefix = 'adb_';//var $name = "Users";
>var $name = 'adb_'
> 
>var $uses=array('Client','User','Campaign');
>//var $uses=array('User');
> 
>var $helpers = array('Html', 'Form');
>function mycampaigns()
>{
>$campaigns = $this->Campaign->find('all');
>$this->set('campaign',$campaigns);
>}
> 
> }
> ?>
> 
> my modle Name: campaign.php
> 
>  class Campaign extends AppModel {
> 
>   // var $tablePrefix = 'adb_';
>var $useTable ='adb_'
> 
> }
> ?>
> 
> in the view folder name: campaign
> 
> mycampaigns.ctp
> 
> $a = array();
>$i=1;
> 
> foreach( $campaigns as $campaign ):
>$a[$i] =
> $campaign['Campaign']['jobno'];
>$i++;
>endforeach;
>echo $form-
> >select('campaign ', $a, 0,
>array('style'
> => 'width: 50%'),false);
>?>
> 
> 
> where i made the mistake please help me
> 
> regards:
> Master
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Table Naming convention problem

2010-04-30 Thread Jeremy Burns
It is rarely a good idea to stray from conventions 
(http://book.cakephp.org/view/22/CakePHP-Conventions) if you can avoid it. Is 
it too late to re-factor your database? Assuming it is...

You are putting your prefix into the variable that is intended to hold the name 
of the controller/model.

Try:

Model:
var $name = 'Campaign';
var $useTable = 'campaign';
var $tablePrefix = 'adb_';

//ideally you'd call the table campaigns, then wouldn't need the $useTable or 
tablePrefix variables

Controller:
var $name = 'Campaigns';

I'd recommend getting rid of your $uses array because it will hit performance - 
look up Associations-Linking-Models-Together.

Your view folder should be called campaigns.

The 'mycampaign.ctp' view you have created will be rendered when you access the 
controller function 'mycampaign'.

Jeremy Burns
jeremybu...@me.com


On 30 Apr 2010, at 09:40, Master Ram wrote:

> HI. all i am new to cakephp
> 
> i have table name called: adb_campaign
> 
> my contorller is:
> my controller Name: compaigns_controller.php
> 
>  class CompaignsController extends AppController {
> 
>//var $tablePrefix = 'adb_';//var $name = "Users";
>var $name = 'adb_'
> 
>var $uses=array('Client','User','Campaign');
>//var $uses=array('User');
> 
>var $helpers = array('Html', 'Form');
>function mycampaigns()
>{
>$campaigns = $this->Campaign->find('all');
>$this->set('campaign',$campaigns);
>}
> 
> }
> ?>
> 
> my modle Name: campaign.php
> 
>  class Campaign extends AppModel {
> 
>   // var $tablePrefix = 'adb_';
>var $useTable ='adb_'
> 
> }
> ?>
> 
> in the view folder name: campaign
> 
> mycampaigns.ctp
> 
> $a = array();
>$i=1;
> 
> foreach( $campaigns as $campaign ):
>$a[$i] =
> $campaign['Campaign']['jobno'];
>$i++;
>endforeach;
>echo $form-
>> select('campaign ', $a, 0,
>array('style'
> => 'width: 50%'),false);
>?>
> 
> 
> where i made the mistake please help me
> 
> regards:
> Master
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Table Naming convention problem

2010-04-30 Thread Ed Propsner
LOL, I was too late ...

http://book.cakephp.org/view/903/Model-and-Database-Conventions

On Fri, Apr 30, 2010 at 4:47 AM, Andrei Mita  wrote:

> You didn't fallow the conventions :)
>
> http://book.cakephp.org/view/23/File-and-Classname-Conventions
>
> Table name should be adb_campaigns
> Controller file name: abd_campaigns_controller.php
> Controller class name: AdbCampaignsController
>
> and so on
>
> Read the conventions carefully.
>
>
>
>
> On Fri, Apr 30, 2010 at 11:40 AM, Master Ram wrote:
>
>> HI. all i am new to cakephp
>>
>> i have table name called: adb_campaign
>>
>> my contorller is:
>> my controller Name: compaigns_controller.php
>>
>> > class CompaignsController extends AppController {
>>
>>//var $tablePrefix = 'adb_';//var $name = "Users";
>>var $name = 'adb_'
>>
>>var $uses=array('Client','User','Campaign');
>>//var $uses=array('User');
>>
>>var $helpers = array('Html', 'Form');
>>function mycampaigns()
>>{
>>$campaigns = $this->Campaign->find('all');
>>$this->set('campaign',$campaigns);
>>}
>>
>> }
>> ?>
>>
>> my modle Name: campaign.php
>>
>> > class Campaign extends AppModel {
>>
>>   // var $tablePrefix = 'adb_';
>>var $useTable ='adb_'
>>
>> }
>> ?>
>>
>> in the view folder name: campaign
>>
>> mycampaigns.ctp
>>
>> >$a = array();
>>$i=1;
>>
>> foreach( $campaigns as $campaign ):
>>$a[$i] =
>> $campaign['Campaign']['jobno'];
>>$i++;
>>endforeach;
>>echo $form-
>> >select('campaign ', $a, 0,
>>array('style'
>> => 'width: 50%'),false);
>>?>
>>
>>
>> where i made the mistake please help me
>>
>> regards:
>> Master
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Table Naming convention problem

2010-04-30 Thread Andrei Mita
You didn't fallow the conventions :)

http://book.cakephp.org/view/23/File-and-Classname-Conventions

Table name should be adb_campaigns
Controller file name: abd_campaigns_controller.php
Controller class name: AdbCampaignsController

and so on

Read the conventions carefully.



On Fri, Apr 30, 2010 at 11:40 AM, Master Ram  wrote:

> HI. all i am new to cakephp
>
> i have table name called: adb_campaign
>
> my contorller is:
> my controller Name: compaigns_controller.php
>
>  class CompaignsController extends AppController {
>
>//var $tablePrefix = 'adb_';//var $name = "Users";
>var $name = 'adb_'
>
>var $uses=array('Client','User','Campaign');
>//var $uses=array('User');
>
>var $helpers = array('Html', 'Form');
>function mycampaigns()
>{
>$campaigns = $this->Campaign->find('all');
>$this->set('campaign',$campaigns);
>}
>
> }
> ?>
>
> my modle Name: campaign.php
>
>  class Campaign extends AppModel {
>
>   // var $tablePrefix = 'adb_';
>var $useTable ='adb_'
>
> }
> ?>
>
> in the view folder name: campaign
>
> mycampaigns.ctp
>
> $a = array();
>$i=1;
>
> foreach( $campaigns as $campaign ):
>$a[$i] =
> $campaign['Campaign']['jobno'];
>$i++;
>endforeach;
>echo $form-
> >select('campaign ', $a, 0,
>array('style'
> => 'width: 50%'),false);
>?>
>
>
> where i made the mistake please help me
>
> regards:
> Master
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Table Naming convention problem

2010-04-30 Thread Master Ram
HI. all i am new to cakephp

i have table name called: adb_campaign

my contorller is:
my controller Name: compaigns_controller.php

Campaign->find('all');
$this->set('campaign',$campaigns);
}

}
?>

my modle Name: campaign.php



in the view folder name: campaign

mycampaigns.ctp

select('campaign ', $a, 0,
array('style'
=> 'width: 50%'),false);
?>


where i made the mistake please help me

regards:
Master

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread Jeremy Burns
Not meaning to hijack this thread, but I use this locally and it works, but on 
a remote test server the CSS isn't being picked up. Where should I look for a 
remedy?

Jeremy Burns
jeremybu...@me.com


On 30 Apr 2010, at 09:11, Ed Propsner wrote:

> @AD7six
> 
> Nice, seems to have all cleared up. I'm still getting a fatal error on a few 
> pages though: 
> 
> Fatal error: Call to a member function children() on a non-object in 
> debug_kit\controllers\components\toolbar.php on line 563
>  -> $tbody = $table->children('tbody');
> 
> The output shows on the very bottom of the page and with the way my pages are 
> styled  it can be hard to read. I loaded a page that didn't have any content 
> yet, just the default.ctp, and the output showed up where (it seems) 
> $content_for_layout would normally display. It was styled with my CSS ... 
> bullets, colors, headings, etc. ... I was rather impressed. What makes the 
> diff ?? Is there a reason it don't display that way on all the pages ? 
> 
> - Ed  
> 
> 
> On Fri, Apr 30, 2010 at 3:46 AM, Ed Propsner  wrote:
> Ah ha, good thing at least one of us knows what the heck they are doing ... 
> now that you mention it I've had the same version since Cake 1.2x, I just 
> haven't been using it until recently. Let me take another crack at it and 
> I'll get back to ya' :)
> 
> - Ed 
> 
> 
> On Fri, Apr 30, 2010 at 3:41 AM, AD7six  wrote:
> 
> 
> On Apr 29, 11:24 pm, Ed Propsner  wrote:
> > Could anyone tell me where I went wrong with debugkit? The installation was
> > straightforward enough that it seemed impossible to screw up.
> >
> > Anyhow, it returns all the data that would be expected but it also returns a
> > ton of warnings, ie:
> >
> > *Warning*: Missing argument 2 for DebugKitDebugger::_output(),
> >
> > It repeats this error for args 3, 4, 5, etc. then starts displaying notices,
> > ie:
> >
> > *Notice*: Undefined variable: kontext
> >
> > It repeats this process several times over.
> >
> > Also, I can only get it work if I have debug to set on 2,
> > debug 1 returns all the errors I just described and nothing else.
> >
> > Did I screw something up in Cake to make debugkit freak out or am
> > I botching the installation of debugkit?
> 
> You've probably managed to install the 1.2 branch/version of debug kit
> and are running 1.3. Check which branch you've pulled from
> 
> http://github.com/cakephp/debug_kit/blob/master/vendors/debug_kit_debugger.php#L338
> 
> AD
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
> 
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread Ed Propsner
@AD7six

Nice, seems to have all cleared up. I'm still getting a fatal error on a few
pages though:

*Fatal error*: Call to a member function children() on a non-object in *
debug_kit\controllers\components\toolbar.php* on line *563*
* -> $tbody = $table->children('tbody');*
*
*
*
The output shows on the very bottom of the page and with the way my pages
are styled  it can be hard to read. I loaded a page that didn't have any
content yet, just the default.ctp, and the output showed up where (it seems)
$content_for_layout would normally display. It was styled with my CSS ...
bullets, colors, headings, etc. ... I was rather impressed. What makes the
diff ?? Is there a reason it don't display that way on all the pages ?

- Ed

*

On Fri, Apr 30, 2010 at 3:46 AM, Ed Propsner  wrote:

> Ah ha, good thing at least one of us knows what the heck they are doing ...
> now that you mention it I've had the same version since Cake 1.2x, I just
> haven't been using it until recently. Let me take another crack at it and
> I'll get back to ya' :)
>
> - Ed
>
>
> On Fri, Apr 30, 2010 at 3:41 AM, AD7six  wrote:
>
>>
>>
>> On Apr 29, 11:24 pm, Ed Propsner  wrote:
>> > Could anyone tell me where I went wrong with debugkit? The installation
>> was
>> > straightforward enough that it seemed impossible to screw up.
>> >
>> > Anyhow, it returns all the data that would be expected but it also
>> returns a
>> > ton of warnings, ie:
>> >
>> > *Warning*: Missing argument 2 for DebugKitDebugger::_output(),
>> >
>> > It repeats this error for args 3, 4, 5, etc. then starts displaying
>> notices,
>> > ie:
>> >
>> > *Notice*: Undefined variable: kontext
>> >
>> > It repeats this process several times over.
>> >
>> > Also, I can only get it work if I have debug to set on 2,
>> > debug 1 returns all the errors I just described and nothing else.
>> >
>> > Did I screw something up in Cake to make debugkit freak out or am
>> > I botching the installation of debugkit?
>>
>> You've probably managed to install the 1.2 branch/version of debug kit
>> and are running 1.3. Check which branch you've pulled from
>>
>>
>> http://github.com/cakephp/debug_kit/blob/master/vendors/debug_kit_debugger.php#L338
>>
>> AD
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Using html5 video tag.

2010-04-30 Thread Phil
Thanks for the answer but it didn't worked.

If i use the $html->tag:

echo $html->tag('video','your browser does not support the video tag',
array('src' => '/1.ogv', 'controls' => 'controls'));

, I still have the same behaviour.

I see the player in the browser but can't play de movie. The route is
correct because if i make right click on the player and then click on
save as... i download the video correctly.

It's very strange because if i make a look to the generated source
code and I copy it into a normal html file outside cakephp it works.

On 30 abr, 05:58, tristan_ph  wrote:
> You may use HtmlHelper->tag()
>
> $this->Html->tag(__('your browser does not support the video tag',
> true), array('src' => '/video.ogv', array('controls' => 'controls'));
>
> On Apr 29, 10:03 pm, Phil  wrote:
>
>
>
> > Hi!
>
> > I'm trying to add a video file into my cakephp project using the html5
> >  tag. If i write a simple html file with this code:
>
> > 
> > your browser does not support the video tag
> > 
>
> > If works properly in firefox. But if I try to the next code to my .ctp
> > file in cakephp, firefox shows the player but is not playing the
> > video:
>
> > 
> > your browser does not support the video tag
> > 
>
> > The video.ogv is in the webroot folder.
>
> > Thanks.
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others 
> > with their CakePHP related questions.
>
> > 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
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread Ed Propsner
Ah ha, good thing at least one of us knows what the heck they are doing ...
now that you mention it I've had the same version since Cake 1.2x, I just
haven't been using it until recently. Let me take another crack at it and
I'll get back to ya' :)

- Ed

On Fri, Apr 30, 2010 at 3:41 AM, AD7six  wrote:

>
>
> On Apr 29, 11:24 pm, Ed Propsner  wrote:
> > Could anyone tell me where I went wrong with debugkit? The installation
> was
> > straightforward enough that it seemed impossible to screw up.
> >
> > Anyhow, it returns all the data that would be expected but it also
> returns a
> > ton of warnings, ie:
> >
> > *Warning*: Missing argument 2 for DebugKitDebugger::_output(),
> >
> > It repeats this error for args 3, 4, 5, etc. then starts displaying
> notices,
> > ie:
> >
> > *Notice*: Undefined variable: kontext
> >
> > It repeats this process several times over.
> >
> > Also, I can only get it work if I have debug to set on 2,
> > debug 1 returns all the errors I just described and nothing else.
> >
> > Did I screw something up in Cake to make debugkit freak out or am
> > I botching the installation of debugkit?
>
> You've probably managed to install the 1.2 branch/version of debug kit
> and are running 1.3. Check which branch you've pulled from
>
>
> http://github.com/cakephp/debug_kit/blob/master/vendors/debug_kit_debugger.php#L338
>
> AD
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Cakephp Ajax is not including the javascripts in the view

2010-04-30 Thread Andrei Mita
Another guess here. I had a similar situation when developing a non-cake
app.

I was using jquery to animate some tabs. JQuery was included in the head of
the document, the first set of tabs where working OK. But when the user
requested for some more information on the related item he was viewing, a
new set of tabs was loaded via ajax but the animation wasn't working. That's
because jquery had now way of knowing some new elements were inserted. The
solution was to force jquery rescan my page and re-apply the effects.

Tell me if this makes any sense to you and I'll get into details.


On Fri, Apr 30, 2010 at 10:23 AM, Vijay  wrote:

> Thanks for reply andrei.
>
> I am calling the normal javascript functions or any javascript file.
> I have some jquery effects for the text boxes & drop downs. That are
> not including when the ctp get called.
>
> my code is,
>
>  echo $html->css('mycss);
>
> echo $html->script(array('jquery', 'another script'));?>
>
> rest my html code
>
>
> It is including the css but no js is included.
> here i am using jquery with prototype.
>
>
>
> On Apr 30, 12:10 pm, Andrei Mita  wrote:
> > What type of js do you have in the loaded ctp?
> >
> > Maybe you forgot to include something in the layout.
> >
> > It's a blind guess without seeing the actual code. At least for me.
> >
> >
> >
> > On Fri, Apr 30, 2010 at 9:23 AM, Vijay  wrote:
> > > Hello All,
> >
> > > I am using the ajax for the internal links in my site.
> >
> > > When i click on the link & the new ctp loads, it is not including the
> > > javascripts that are included in that ctp.
> > > So the effects are not working.
> >
> > > It includes the css but not including the javascript.
> >
> > > Any idea.
> >
> > > Thanks,
> >
> > > Vijay Kumbhar,
> > > CTO, Weboniselab.
> > > 9766251100
> >
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help
> others
> > > with their CakePHP related questions.
> >
> > > 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
> > > cake-php+unsubscr...@googlegroups.com
> >For
> more options, visit this group at
> > >http://groups.google.com/group/cake-php?hl=en
> >
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> with their CakePHP related questions.
> >
> > 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
> > cake-php+unsubscr...@googlegroups.comFor
> >  more options, visit this group athttp://
> groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread AD7six


On Apr 29, 11:24 pm, Ed Propsner  wrote:
> Could anyone tell me where I went wrong with debugkit? The installation was
> straightforward enough that it seemed impossible to screw up.
>
> Anyhow, it returns all the data that would be expected but it also returns a
> ton of warnings, ie:
>
> *Warning*: Missing argument 2 for DebugKitDebugger::_output(),
>
> It repeats this error for args 3, 4, 5, etc. then starts displaying notices,
> ie:
>
> *Notice*: Undefined variable: kontext
>
> It repeats this process several times over.
>
> Also, I can only get it work if I have debug to set on 2,
> debug 1 returns all the errors I just described and nothing else.
>
> Did I screw something up in Cake to make debugkit freak out or am
> I botching the installation of debugkit?

You've probably managed to install the 1.2 branch/version of debug kit
and are running 1.3. Check which branch you've pulled from

http://github.com/cakephp/debug_kit/blob/master/vendors/debug_kit_debugger.php#L338

AD

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-04-30 Thread AD7six
Matthew,

They aren't /supposed/ to be in subfolders - please run through (I.e.
don't just read) the blog tutorial and try with a browser.

On Apr 29, 7:12 pm, Miles J  wrote:
> Well its simple. You cant put controllers within subfolders. Cake
> doesn't support it.

Miles,

You're doing that my-assumptions = fact thing again.

http://book.cakephp.org/view/530/Importing-Core-Libs (it's exactly the
same for any type).

If your intention is to learn by stating your opinion until someone
points out your wrong (which is exactly how I learn most things) -
please clarify.

AD

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Cakephp Ajax is not including the javascripts in the view

2010-04-30 Thread Vijay
Thanks for reply andrei.

I am calling the normal javascript functions or any javascript file.
I have some jquery effects for the text boxes & drop downs. That are
not including when the ctp get called.

my code is,

css('mycss);

echo $html->script(array('jquery', 'another script'));?>

rest my html code


It is including the css but no js is included.
here i am using jquery with prototype.



On Apr 30, 12:10 pm, Andrei Mita  wrote:
> What type of js do you have in the loaded ctp?
>
> Maybe you forgot to include something in the layout.
>
> It's a blind guess without seeing the actual code. At least for me.
>
>
>
> On Fri, Apr 30, 2010 at 9:23 AM, Vijay  wrote:
> > Hello All,
>
> > I am using the ajax for the internal links in my site.
>
> > When i click on the link & the new ctp loads, it is not including the
> > javascripts that are included in that ctp.
> > So the effects are not working.
>
> > It includes the css but not including the javascript.
>
> > Any idea.
>
> > Thanks,
>
> > Vijay Kumbhar,
> > CTO, Weboniselab.
> > 9766251100
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > 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
> > cake-php+unsubscr...@googlegroups.comFor
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread Ed Propsner
I have it set in appController and for the heck of it tried to set it again
in the controller I'm actively using but it didn't work. It's been like this
for a long time and I've just been sort of "dealing with it." I'm not
familiar with the inner workings of debugKit so I don't where to begin
troubleshooting.

- Ed

On Fri, Apr 30, 2010 at 3:08 AM, NdJ  wrote:

> Try adding Session to your controller components -- I just happened to
> notice your same issue when I removed Session from my controller
> components.
>
> N
>
>
> On Apr 30, 7:24 am, Ed Propsner  wrote:
> > Could anyone tell me where I went wrong with debugkit? The installation
> was
> > straightforward enough that it seemed impossible to screw up.
> >
> > Anyhow, it returns all the data that would be expected but it also
> returns a
> > ton of warnings, ie:
> >
> > *Warning*: Missing argument 2 for DebugKitDebugger::_output(),
> >
> > It repeats this error for args 3, 4, 5, etc. then starts displaying
> notices,
> > ie:
> >
> > *Notice*: Undefined variable: kontext
> >
> > It repeats this process several times over.
> >
> > Also, I can only get it work if I have debug to set on 2,
> > debug 1 returns all the errors I just described and nothing else.
> >
> > Did I screw something up in Cake to make debugkit freak out or am
> > I botching the installation of debugkit?
> >
> > Thanks,
> >
> > -Ed
> >
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> with their CakePHP related questions.
> >
> > 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
> > cake-php+unsubscr...@googlegroups.comFor
> >  more options, visit this group athttp://
> groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Cakephp Ajax is not including the javascripts in the view

2010-04-30 Thread Andrei Mita
What type of js do you have in the loaded ctp?

Maybe you forgot to include something in the layout.

It's a blind guess without seeing the actual code. At least for me.


On Fri, Apr 30, 2010 at 9:23 AM, Vijay  wrote:

> Hello All,
>
> I am using the ajax for the internal links in my site.
>
> When i click on the link & the new ctp loads, it is not including the
> javascripts that are included in that ctp.
> So the effects are not working.
>
> It includes the css but not including the javascript.
>
> Any idea.
>
> Thanks,
>
> Vijay Kumbhar,
> CTO, Weboniselab.
> 9766251100
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: DebugKit

2010-04-30 Thread NdJ
Try adding Session to your controller components -- I just happened to
notice your same issue when I removed Session from my controller
components.

N


On Apr 30, 7:24 am, Ed Propsner  wrote:
> Could anyone tell me where I went wrong with debugkit? The installation was
> straightforward enough that it seemed impossible to screw up.
>
> Anyhow, it returns all the data that would be expected but it also returns a
> ton of warnings, ie:
>
> *Warning*: Missing argument 2 for DebugKitDebugger::_output(),
>
> It repeats this error for args 3, 4, 5, etc. then starts displaying notices,
> ie:
>
> *Notice*: Undefined variable: kontext
>
> It repeats this process several times over.
>
> Also, I can only get it work if I have debug to set on 2,
> debug 1 returns all the errors I just described and nothing else.
>
> Did I screw something up in Cake to make debugkit freak out or am
> I botching the installation of debugkit?
>
> Thanks,
>
> -Ed
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en