Newbie 1.2: Using APC and memcache

2007-05-27 Thread DragonI
Hi, Based on core.php, it seems that you can only use only one of the caching engines. Can you use APC and memcache at the same time without screwing things up? Reason is I want to load some of my stuff, i.e. menus into shared memory via APC Thanks

Email Component - mails are being sent without attachment

2007-05-27 Thread bingo
hi, I am trying to send an attachment using CakePHP 1.2 native Email Component. I am correctly setting filePath and filename variable. However, my emails are being sent without any attachment. The email gets successfully sent but without any attachment. is anyone facing similar problem? Please

Re: $form-create not producing anything

2007-05-27 Thread Ita
Hi again, I'm not sure what enctype is. as simple as the problem seemed to be I still can't get the $form- create to produce anything. it now looks like this: h1Add User/h1 ?php echo $form-create('User',array('action'='/users/add'))? p ?php echo $form-input('User/user_name',

Re: $form-create not producing anything

2007-05-27 Thread Ita
OK its working now again a mess I made on my computer. On May 24, 9:20 pm, John David Anderson (_psychic_) [EMAIL PROTECTED] wrote: On May 24, 2007, at 12:50 PM, Ita wrote: Oh man, That was painful. I was hoping that my mistake was bigger than that. Thanks for pointing out my

Re: Complex SQL Conditions (multiple ORs)

2007-05-27 Thread AD7six
On May 27, 4:21 am, squidliberty [EMAIL PROTECTED] wrote: The $conditions I specify above create the following sql bit: WHERE NOT (`Listing`.`expiration` BETWEEN '1' AND '1180232564') AND (`Listing`.`title` LIKE '%cat%') OR (`Listing`.`description` LIKE '%cat %') AND (`Listing`.`title` LIKE

New SecurityComponent Blackhole

2007-05-27 Thread Ugo PARSI
Hello, Since the new SecurityComponent in 1.2, every form on my project that requires POST is blackholed. I've tried both the new 1.2 package, and the latest SVN checkout as of today, but I've got the same problem. I've read on this group, that some people were facing some issues with forms

Re: Newbie 1.2: Using APC and memcache

2007-05-27 Thread Chris Hartjes
On 5/27/07, DragonI [EMAIL PROTECTED] wrote: Hi, Based on core.php, it seems that you can only use only one of the caching engines. Can you use APC and memcache at the same time without screwing things up? Reason is I want to load some of my stuff, i.e. menus into shared memory via APC Of

form method post not work

2007-05-27 Thread selff
Hi. Help, pls. I'm used tutorial ibm/developers: cook up web sites fast with CakePHP. but my controller Users don't receive data from register.thtml $this-data is empty. %( but I see Controller dump object is not empty: userscontroller Object ( [_log] = [name] = users [here] =

Re: GenerateList Condition Statement

2007-05-27 Thread NE1
I think this should work: $this-set('user_list', $this-generateList('user != $ACTUAL_USER_ID', ' ASC', null, '' ,'', null)); Greetings On 26 Mai, 17:59, Ketan Patel [EMAIL PROTECTED] wrote: I want to use generatelist but want to skip a specific record. for eg. I want to create list of users

Re: Newbie 1.2: Using APC and memcache

2007-05-27 Thread DragonI
Thanks Chris, I guess it's time to dig into the code On May 27, 8:10 am, Chris Hartjes [EMAIL PROTECTED] wrote: On 5/27/07, DragonI [EMAIL PROTECTED] wrote: Hi, Based on core.php, it seems that you can only use only one of the caching engines. Can you use APC and memcache at the same

Re: New SecurityComponent Blackhole

2007-05-27 Thread Larry E. Masters aka PhpNut
Find the related methods in the FormHelper, $form- in your view. Right now you are using deprecated methods to build your forms using the HtmlHelper $html- -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */

Re: New SecurityComponent Blackhole

2007-05-27 Thread jonern
I use the form helper consistently and still end up blackholed every time I submit a form. Using cake_1.2.0.5146alpha. All my forms where working fine in 1.1 with the htmlHelper, but when I upgraded to 1.2 and started using the formHelper - the black hole gets me every time... Perhaps a bug

Re: New SecurityComponent Blackhole

2007-05-27 Thread Joshua Benner
Using 1.2.0alpha5146 and not experiencing any problems with forms using FormsHelper. jonern wrote: I use the form helper consistently and still end up blackholed every time I submit a form. Using cake_1.2.0.5146alpha. All my forms where working fine in 1.1 with the htmlHelper, but when I

Re: Interactive Console screencast

2007-05-27 Thread unimatrixZxero
Other features I find usefull * create new instances of models by inputing information Are you talking about creating brand new models, or adding info to a model via a save() method? Talking about adding info to a model via save. new Post(array('title' = 'example post', 'body' = 'example

Setting Up the Console screencasts

2007-05-27 Thread gwoo
Some of you may have already seen the Grumpy Canuck's screencast on running the interactive console. I just posted two more on setting up your environment to run the Cake Console Shells. There is one for windoze and one for *nix. They are not streaming but luckily the files are small.

Re: New SecurityComponent Blackhole

2007-05-27 Thread jonern
Thats great Joshua =) Please write a small working form example where the SecurityComponent is used, ie: $this-Security-requirePost('delete'); where $this-Security-blackHoleCallback also is included... It just won't work for me... Thanks! On May 27, 7:28 pm, Joshua Benner [EMAIL PROTECTED]

Re: Email Component - mails are being sent without attachment

2007-05-27 Thread bingo
hi, can someone give me a clue on how to deal with this..I am still not able to solve the problem Regards, On May 27, 12:10 am, bingo [EMAIL PROTECTED] wrote: hi, I am trying to send an attachment using CakePHP 1.2 native Email Component. I am correctly setting filePath and filename

Re: New SecurityComponent Blackhole

2007-05-27 Thread Ugo PARSI
On 27 mai, 16:21, Larry E. Masters aka PhpNut [EMAIL PROTECTED] wrote: Find the related methods in the FormHelper, $form- in your view. Right now you are using deprecated methods to build your forms using the HtmlHelper $html- -- Thanks ! It now works... But I would never have discovered

Re: New SecurityComponent Blackhole

2007-05-27 Thread Larry E. Masters aka PhpNut
But I would never have discovered this on my own... I don't have a single message telling me that thing is deprecated (which is usually the case !) https://trac.cakephp.org/wiki/changelog/1.2.x.x Read the first line: NOTICE ALL DEPRECATED METHODS ARE REMOVED FROM THE CORE AS OF [4981]

Re: Bulletin board system and cakePHP

2007-05-27 Thread [EMAIL PROTECTED]
So now its online! Check out www.freeride.cz/snb/forum You can write to the forum as a guest. After all, I didnt integrate cakePHP into phpbb (or otherwise). I just adjusted my login system built in cakephp to listen to the phpbb login system. It was much much simplier then keep my login system

Re: Complex SQL Conditions (multiple ORs)

2007-05-27 Thread squidliberty
Sorry, I didn't understand what you wanted me to do with those links. I see that I can post public code at CakeBin, but what are the Google results? I am using 1.1.15.5144 under PHP 4. The problem may have started after I upgraded from 1.1.14.4797, but I don't see anything listed under bugs at

Re: New SecurityComponent Blackhole

2007-05-27 Thread Ugo PARSI
Ok, my bad then :) But it still would have been clearly obvious with a simple deprecated warning as usual By reading the source code of the Form Helper, I was able to create a checkbox using : ?php echo $form-input('User.remember_me', array('label' = __(FORM_REMEMBER_ME, true), 'type' =

1.1.15 -- problem with conditions in SQL

2007-05-27 Thread [EMAIL PROTECTED]
code $filter['searchno'] = '0258007090'; // This is a string $criteria[] = array('Product.searchno' = LIKE . str_replace(array('?','*'),array('_','%'), $filter['searchno'])); // Product.searchno -- it's a VARCHAR field $data = $this-Product-findAll($criteria, null, $order, $limit, $page);

SQL unusual problem

2007-05-27 Thread DJ Spark
hi, When I upgraded from cake1.1.13 to 1.1.15 , the website started to mix the MySQL connection links, or something... There is another app, OpenAds managing banners. When a banner is called within the Cake code, cake's SQL queries are not executed anymore. Any Idea where the problem could

Re: Getting data from external applications / Constructing objects

2007-05-27 Thread Dazweeja
Thanks Hellbot, I've just switched to 1.2 and hadn't discovered the create() function yet. It's much cleaner than the way I was doing it. Cheers, Darren. On May 23, 8:17 pm, Hellbot [EMAIL PROTECTED] wrote: Depends on version cakePHP for 1.1.x in ModelController: $this-ModelName-id = null;

404 while working on IBM tutorial...

2007-05-27 Thread [EMAIL PROTECTED]
I just posted elsewhere on an identical post, but don't see it showing anywhere... apologies in advance if this shows up as a duplicate! I got about 1/2 way through the IBM tutorial last week before switching hosting providers. I am now starting on it again. I get the cake page, and DB

Re: get a 404 page

2007-05-27 Thread [EMAIL PROTECTED]
I am having the exact same problem. I was half way through the IBM tutorial then switched hosting companies. I started over, and now am getting a 404 when hitting .../users/register but when going to .../ index.php?url=users/register the page comes up fine. What's the story? I've tried

Re: Complex SQL Conditions (multiple ORs)

2007-05-27 Thread squidliberty
Err... actually, I was previously on v 1.1.13.4450 and I just did a rollback and everything works properly now. The same $conditions produces: WHERE (NOT (`Listing`.`expiration` BETWEEN '1' AND '1180320723')) AND (((`Listing`.`title` LIKE '%cat%') OR (`Listing`.`description` LIKE '%cat%'))) AND