2 quick questions on building conditions for a findAll() query as an
array:
- is it possible to specify two conditions for the same field?
- is it possible to specify a 'NOT LIKE' clause? The
conditionKeysToString function of DboSource seems to be responsible
for handling the conversion from the
There's always ANT, NANT and MSBUILD. They all have FTP extensions for
them.
Ant: http://ant.apache.org/ (Java)
Nant: http://nant.sourceforge.net/ (.NET)
Msbuild: http://msdn2.microsoft.com/en-us/library/wea2sca5.aspx (.NET +
VS2005)
MSBUILD comes with Visual Studio 2005 which is great if you're
None needed,It has already been fixed in svn.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access public
*/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
I have not tried encoding my scripts but there is actually an open source PHP encoder.It is called Turck MMCachehttp://turck-mmcache.sourceforge.net/index_old.html#encoder
I am not for or against the use of an encoder in general. There are specific circumstances to argue one way or the other. Not
If need be I'll post some extra code for context, but I thought I'd
keep things simple at first.
James
--~--~-~--~~~---~--~~
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
We're running cake 1.1.7 on PostgreSQL and have a group model that is
associated with itself (each group has a parent, forming a tree
structure).
When I run findCount on this group model, the following SQL is
generated:
SELECT COUNT(*) AS count, "Parent"."id" AS "Parent__id",
"Parent"."name" AS
It's funny I the first time I remember seeing someone recomending this approach was in response to someone who wanted to know how to have cake stop doing anything after the redirect, and it soon became the standard way to tell people how to do it.
Sam DOn 9/21/06, Mika <[EMAIL PROTECTED]> wrote:
Th
This is exactly why I asked the question in the first place.
I see that exit() seems to be recommended all over the place, but
people should realise that it will stop the flow of cake totally at
that spot. This is usually not a problem, as Nate said, but if you've
set some callbacks or something
I wanted to get some advice on the best logic to process images via a
website. Various hosts and their parameters mean that anywhere from
only 3 to above 10 images can be processed before either the script
times out of the memory runs out. So, I am wanting the processing page
to 1. show progress
I must admit that okay so you are developing an application for sale
based on Open Source software, and you are looking for Open Source
software to encode it to protect it? That is a little far streached
even for me, Chris. So I am with the grumbling on this one.
Also, make sure to make a donat
I really seriously was considering it working on an Eclipse plugin.
Unfortunately, I know nothing about Java. I'd love to hear more about
a possible CakePHP IDE.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
On 9/21/06, yusuf <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> If I were to create a whole application using cake framework, and I
> want to distribute it to customers, is there a way I can protect the
> source code of the files being distributed? Like compiling to object
> code or something?
>
*grumbl
Note: please ignore the line
echo $html->hidden('Option/decision_id', 55);
That was in there for debugging and never actually did anything.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To pos
I wrote that original wiki article, but I haven't actually tried moving
the webroot out of the app - I only usually separate the core cake
files (for easy update, and switching cake versions). The WEBROOT_DIR
option is in the "do not change" part, as for normal cake installations
you don't need t
Lazy man's way of fixing the "redirect problem". Add:
function redirect($url)
{
parent::redirect($url);
exit();
}
to your AppController. The problems associated with deviating from
the default behaviour should be obvious, and it shouldn't really be too
hard to search your code f
Are there any freeware tools to protect php source? I tried searching,
but didn't have much luck...
--~--~-~--~~~---~--~~
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@goo
> you might try searching the list, this was talked about just recently,
> try using terms like
> 'Zend Guard' or 'SourceGuardian'
Thanks, its here:
http://groups.google.com/group/cake-php/browse_thread/thread/a17fcf56c273b0/b6c655fa77420176?lnk=gst&q=Zend+Guard&rnum=3#b6c655fa77420176
--~--~--
you might try searching the list, this was talked about just recently, try using terms like'Zend Guard' or 'SourceGuardian'
On 9/21/06, yusuf <[EMAIL PROTECTED]> wrote:
Hi,If I were to create a whole application using cake framework, and Iwant to distribute it to customers, is there a way I can pr
Hi,
If I were to create a whole application using cake framework, and I
want to distribute it to customers, is there a way I can protect the
source code of the files being distributed? Like compiling to object
code or something?
Thanks.
--~--~-~--~~~---~--~~
You
That is what I am saying Nate. exit() does indeed break normal CakePHP
functionality. Albeit you can break it if you want to. It is just
that it indeed does. So, I am wondering why not ever time we see this
instead recommend return false which gives the same result without
breaking CakePHP.
I
Thanks... but I took
http://cakeforge.org/snippet/download.php?type=snippet&id=176 and saved
it as... oh sh.t!!! I called it pagination.php instead of
pagination.thtml
Hey, what's a little embarrassment and humiliation if it gets you out
of a rut you've been in for hours?
I thank you, sir!
--~
That tutorial in the wiki does indeed work. I used it and mine is
working perfectly.
--~--~-~--~~~---~--~~
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
that is a renderElement error which happens when the element file
can't fe found. So, check that you have the navigation element in
place, and it should work.
On 9/21/06, vtbludgeon <[EMAIL PROTECTED]> wrote:
>
> I admit it: I'm dense. And I have consulted Mr Google on this to no
> avail. (There
Well, of course the callbacks won't work, you're calling exit().
Nothing happens after an exit. It's not a matter of special cases: its
too appication-specific for an exit() to be baked-in.
--~--~-~--~~~---~--~~
You received this message because you are subscribe
Thanks Troy, Sonic - appreciate the advice. Using Cake's associations
it should be quite simple to implement some of these ideas.
Will let you know how it all comes out.
On 21/09/06, Sonic Baker <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I don't think you'd have to set 'inactive' for all child record
I admit it: I'm dense. And I have consulted Mr Google on this to no
avail. (There was something in the IRC logs but it was inconclusive).
My basic, overarching question still is: how do we paginate database
results with Cake?
I have tried http://wiki.cakephp.org/tutorials:pagination and could
s
On 9/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> So it doesn't break anything except you said that the callbacks
> wouldn't work. And then also what about if you wanted to redirect and
> then after the redirect keep processing and actual delete the record
> (or something similiar).
>
So it doesn't break anything except you said that the callbacks
wouldn't work. And then also what about if you wanted to redirect and
then after the redirect keep processing and actual delete the record
(or something similiar).
I am just against special case advising. Of course in egineering I
> Nope, calling exit() after a redirect doesn't break anything. The only
> reason you wouldn't want to call it after a redirect is if you had some
> other functionality that needed to be executed in a controller
> callback, or if, for some reason, you really really wanted your view to
> render.
Thanks nate.
p.s. How does the example in the manual ever going to work then?
nate wrote:
> View caching bypasses the controller, so nothing that happens in the
> action would happen in a cached view. In your case you might be better
> off just caching the query results.
--~--~-~--~---
I thought someone was working on an Eclipse plugin at one point...
If not, feel free to start one ; )
--~--~-~--~~~---~--~~
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@
Nope, calling exit() after a redirect doesn't break anything. The only
reason you wouldn't want to call it after a redirect is if you had some
other functionality that needed to be executed in a controller
callback, or if, for some reason, you really really wanted your view to
render.
--~--~---
Dieter that is something I know, but undoubtedly still need to do.
So, the only solution I see (for me) is that I develop some kind of
update controller. This controller searches a site, a file, something
to get what tasks it needs to do to stay updated. Then performs those
updates. Upon compl
http://groups.google.com/group/cake-php/browse_thread/thread/b98fa6cf2048b637/#
In this is how I made alias work with only modifying my
CAKE_CORE_INCLUDE_PATH since I like to put CakePHP inside my app
folder. But then again I am not SEPERATING my webroot from my
application.
Also, did you edit
Doesn't Cake do some cleanup after the function? What about after
callbacks? Doesn't exit() break the Cake callback functionality? I
think it is better to always use a return false; after redirect (or
early render calls) so that you don't break CakePHP, add some
functionality later and then won
View caching bypasses the controller, so nothing that happens in the
action would happen in a cached view. In your case you might be better
off just caching the query results.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
I run into the same problem. It's a known bug? The manual is wrong?
What's the work around?
--~--~-~--~~~---~--~~
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@googlegro
Just curious - can you offer any information as to whether or not this
CakePHP is either based on Eclipse or will be offered as an Eclipse
plugin? If so - awesome! If not, I'm sure it will still be great but
I am a HUGE Eclipse fan.
--~--~-~--~~~---~--~~
You rec
In that case it doesn't really matter, since no code of any consequence
is being executed in the action once you break out of the if block.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post t
On 9/21/06, Mika <[EMAIL PROTECTED]> wrote:
>
> Shouldn't people actually be calling return instead of exit?
>
Um, exit() makes sure your application stops, so I think that's
probably what you're looking for after a redirect.
--
Chris Hartjes
"The greatest inefficiencies come from solving prob
Shouldn't people actually be calling return instead of exit?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this
Hi,
On this page: http://manual.cakephp.org/appendix/simple_user_auth in
the example under "/app/controllers/users_controller.php (partial)"
there is no exit() after the redirect in the "login" function.
I have read on the web that you need to provide an exit() after the
redirect, or addtional c
http://scotfl.ca/2006/07/25/capistrano-and-cakephp-in-perfect-harmony/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe
Man, I would love to see that!!! Hopefully the Cake Bakery might go live one day and you could get the tutorial in there. I have played around with trying to get some apps deployed using cruise control and ant (we have our major java struts app deployed with it and an in house guru for ant/cc)
Hi,
We have our application on svn. We are also using Capistrano to deploy
the project with great success.
The best part of my job is "cap deploy", and it does all the dirty work
for me :)
I will write a tutorial for anyone interested, over the weekend.
cheers
R
--~--~-~--~~--
You could also try Vertrigo http://vertrigo.sourceforge.net - I've been
using it happily for the last several months and find it very easy to
configure and use. Doesn't seem to get in the way as much as some of
the other WAMP servers.
--~--~-~--~~~---~--~~
You rec
On Sep 21, 2006, at 7:48 AM, [EMAIL PROTECTED] wrote:
>
> Hello, i looking for some code that would help me to
> 1) display "realtime" stats on my cake website (like number of hits in
> the last xx minutes, of which how many guests and how many registered.
> including the usernames of the regist
Hello, i looking for some code that would help me to
1) display "realtime" stats on my cake website (like number of hits in
the last xx minutes, of which how many guests and how many registered.
including the usernames of the registered ones) probably very usefull
to know that i use othauth for au
In trying to bring up an installation on our development server I ran
into a few problems with missing CSS, JS, and Images thanks to improper
references in the redered HTML. One thing that threw me off is that on
the wiki:
http://wiki.cakephp.org/tutorials:alternative_installation_locations
The
Hey Rik, are you using Cake 1.2 by any chance? If you are, I'm
guessing what you're experiencing is part of some functionality that's
only about half-finished. However, I would recommend a different
approach: get Cake 1.2 if you don't have it (you have to check it out
from SVN), and check out th
On 9/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> My only concern is sometimes I make database changes. How would I make
> it distribute those as well??
Ah, that's the holy grail of deployment tools. ;)
I think the best scenario is providing text files that you can import
using thi
> My only concern is sometimes I make database changes. How would I make
> it distribute those as well??
It's a concern for me too. phing can execute sql queries. modifying ,
deleting, etc of tables can all be done with simple sql queries.
But i don't know offcourse how well phing does it's jo
So if I am reading this PHING thing correctly. I could make PHING
upload my application to multiple servers and based on which server it
is uploading also upload custom files or manipulate files like ones
that have license numbers in them? Then I would run PHING anytime I
made a change to the co
The best solution how? There are already several posts and tutorials
about installing Cake on IIS. Do they not work for IIS 6?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this grou
On 9/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> chris also mentioned capistrano (
> http://manuals.rubyonrails.com/read/book/17 or
> http://rubyforge.org/projects/capistrano/ )
Hi Dieter,
Capistrano seems to be a good choice as long as you can get past
having to use Ruby and jump th
I use WAMP, www.wampserver.com. I tried the whole Triad thing, but
honestly in comparison to WAMP it looks like childsplay. Very poorly
installed, hard to change, and not system tray icon to change any
settings VERY quickly.
Maybe you could try to install it instead and see if same problem
occu
It is, but certain applications are more forgiving, in that they'll
intelligently compensate it you don't get the case of something right.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to
Hi folks,
I'm at my wit's end trying to figure out how to create a new related
record... should be easy for you seasoned pros. I'll be as detailed as
possible.
I have two tables: decisions, and options. One decision has many
options. Here's the decision model code:
and the Option model is
This thread here is very similar to this one, but i can't reply in it
cause it's too old, so..
http://groups.google.com/group/cake-php/browse_thread/thread/fc593046f677ffe9/58f3f1f73703c1e3?lnk=gst&q=deployment&rnum=1#58f3f1f73703c1e3
i'm looking for a good deployment tool. apart from the wishes
On 9/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> When you went production probably put on *NIX which is case sensitive
> whereas Mac and Windows aren't.
>
> Also, you could make the call use /bare/controllers/action as well.
I always thought that OS-X's file system as case sensitive,
On 9/21/06, Rik <[EMAIL PROTECTED]> wrote:
>
> Sorry to pop up this message but it would be great to have an answer
> (even to say I miss an information or something)
>
Hi Rik,
I don't think I quite understand what the problem is that you're
facing. You're saying you are trying to use the route
On 9/21/06, olle <[EMAIL PROTECTED]> wrote:
>
> I feel like that with Yahoo!'s Javascript framework, they want to be
> Java.
>
As a bit of an aside, I actually found the opposite when I use YUI. I
like that you don't have to include the entire YUI in your application
if you're only using small b
All three must match exactly before it will work across the board.
So, instead of aliasing your app/webroot directory, alias your app
directory.
Now, put the .htaccess back in your app directory.
The RewriteBase should be RewriteBase /app in both the .htaccess file
in app and app/webroot.
So,
Thanks a lot for your idea guys,
I will follow your advices and try to make it works
--~--~-~--~~~---~--~~
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
T
I just must be in the stone ages using JEdit, text editor for all my
development. I tried those IDE's but all the ones out there now aren't
built to help me do anything with CakePHP. And I have syntax
highlighting so what more do I need? I know, I know, I am a
minimalist.
But if there was an I
$Route->connect('/admin', array('controller' => 'pages', 'action' =>
'display', 'admin'=>'admin', 'home'));
$Route->connect('/admin/pages/*', array('controller' => 'pages',
'action' => 'display', 'admin'=>'admin'));
$Route->connect('/pages/*', array('controller' => 'pages', 'action
What version of Cake are you using? The version I am running loads the
RequestHandler component by default so it is there checking for those
ajax calls automagically.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Check the switches -app -project_name
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [E
When you went production probably put on *NIX which is case sensitive
whereas Mac and Windows aren't.
Also, you could make the call use /bare/controllers/action as well.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
textmate also can do it, especially with CAKE and Subversion bundle.
if you have a mac you'll love it.
--~--~-~--~~~---~--~~
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@
My idea would be to set debug > 0 and if you can't see something
obvious post some code ;).
An app_controller instance is only created for errors - that might help
narrow things down a bit.
HTH,
AD7six
--~--~-~--~~~---~--~~
You received this message because you
Sorry to pop up this message but it would be great to have an answer
(even to say I miss an information or something)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send ema
Hello,
i have a strange infinite loop any time i call a cake page,
the browser loop and repeat infinitly my project's header.
If i set debug level to 3, the output is very strange:
params is empty and the object printed is appcontroller
My env is Apache/1.3.33 (Unix) PHP/4.4.0
Any ideas??
___
[EMAIL PROTECTED]:
"A step further would be auto-completion & real-time documenting of
available cake functions "
Pulling out the javadoc-style comments? Yes, very important for having
an IDE that actually works with you.
Zend's Studio does that, and it also has "fingertip templates" (as in,
"f
This is a new business chance from USA, Many drivers used MPG-CAP to
save more than 20% of gasoline and Diesel fuel in USA and Canada, you
can see the websites here:
http://biz.yahoo.com/prnews/060614/dcw024.html?.v=62
http://www.todaystmj4.com/VideoPlayer/video.aspx?fs=081706_10pm_GasPillSaving
nate wrote:
> Too many frameworks out
> there try to make PHP look like Java or Ruby (insofar as it is
> possible).
I feel like that with Yahoo!'s Javascript framework, they want to be
Java.
It is nice to see some opinion in the slides, as well -- not just plain
information I could've gleaned by
> One thing I hope on, is to have the possibility to add our own "code
> templates" to the default ones.
Any decent editor/ide allows it's user to define chunks of code etc, to
be called.
Example in my environment (bluefish) i just have templates for .. like
everything.. models, controllers, vie
Hi.
What's the best solution for cake under iis?
Regards.
Dom.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from
78 matches
Mail list logo