( ) parenthesis in find fiels - causes invalid query

2008-01-16 Thread carSign
Hi - I am having a little trouble with the find function in a model. When I use opening and closing parenthesis cake generates an invalid query. For example in my model I have - $term = '(pasta)'; $cond = array("pizza" => $term); $num = $this->findCount($cond); and returns the SQL slightly

Re: include everywhere | app_controller.php

2007-12-28 Thread carSign
I am getting close. My beforeFilter function in the app controller is being called on each page (just like I want) but it seems to have trouble running something in a model. Anyone have any ideas on what I am doing wrong. app_controller.php AppModel->carSign(); return t

include everywhere | app_controller.php

2007-12-21 Thread carSign
Hi - So I am trying to include a small snippet of code in each page of my site. Is there a way to do this without modifying each controller? For example - I want to log visitors to my site. Each page visited would have some information put into the database. URL User info tiestamp browser inf

Re: Add Syntax Coloring to .thtml files with JEdit?

2007-11-08 Thread carSign
in jedit select Utilities -> Global Options. Then in the left navigation click on 'Editing'. In the first box 'change settings for mode' scroll down until you find php. Uncheck the Global settings checkbox. Then in the textbox that says File name Glob: change the entry from *.{php3,php4,php,phtml

shopping cart

2007-11-06 Thread carSign
Has anyone been able to integrate a third party shopping cart into cake? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscrib

cake php causes bad programming

2007-10-26 Thread carSign
So today I was having a discussion with a coworker who is not a fan of using CAKEphp. He is in favor of building his sites from scratch and clams that he gets a faster development time (though I argue that he is writing puny sites) He also claimed that use of a framework like CAKE will result in

Re: dynamic db connection | $useDbConfig

2007-10-23 Thread carSign
PROTECTED]> wrote: > http://api.cakephp.org/1.2/class_model.html#d45dbbc6a13d9921731abf738... > > On Oct 22, 2:24 pm, carSign <[EMAIL PROTECTED]> wrote: > > > Is there a way to change the config variables inside my model on the > > fly. > > > For example.

shopping cart

2007-10-23 Thread carSign
What have you found to be your best solution for a shopping cart system in cake php. List the pros and cons of what you have used. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to

dynamic db connection | $useDbConfig

2007-10-22 Thread carSign
Is there a way to change the config variables inside my model on the fly. For example. If a user visits: http://www.example.com/videos/rent/toy_story the page will be returned as normal. But if a user visits, http://www.example.com/videos_qa/rent/toy_story or something like it I want to use

catch all action

2007-09-28 Thread carSign
Is there such a thing as some kind of catch all action - or good way to handle when a user mistyps the url? for example if I have http://www.example.com/videos/rent/5124/0-235253 and a user types 'reny' instead of 'rent' like http://www.example.com/videos/renr/5124/0-235253 is there some kind

import or display RSS

2007-09-06 Thread carSign
Hi - I found some good information on using cake to display a rss feed from content on my site - any good tutorials or examples on how to use cake to pull an RSS feed and display the contents? thanks Drew --~--~-~--~~~---~--~~ You received this message because y

using the php exec() function inside of a cake view

2007-08-27 Thread carSign
I am trying to execute a command from within a view. Something like: And I get nothing. I get the output I need when run on the command line. Any ideas why this doesn't work? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed t