thanks
what about Not Equals
I don't think <> works anymore. What is it replaced by?
On Fri, Jun 6, 2008 at 2:57 AM, grigri <[EMAIL PROTECTED]> wrote:
>
> $this->Category->find('all', array(
> 'conditions' => array(
>'name LIKE' => '%'.$parent.'%',
>'parent_id' => null
> )
> ));
>
> O
Looking back over my last reply I think I might have sounded a bit
rude, sorry about that
I did the search as you said and found one instance of the function,
but was not able to make sense of it. I did do some googling and
found this page though: http://grahambird.co.uk/cake/
quote from page:
On Fri, Jun 6, 2008 at 6:06 PM, Hermann Wacker <[EMAIL PROTECTED]> wrote:
>
> What are the steps that one has to do for getting some descent
> performance out of cakephp? Where are the bottlenecks?
If you are creating a sizable project and suffering performance issues the
first thing to do is s
Looks interesting, I'll play around with it. Thanks.
On 6 Jun 2008, at 17:19, Kim F wrote:
> I use piston for my vendor branching needs, really works perfectly.
> http://piston.rubyforge.org/
--~--~-~--~~~---~--~~
You received this message because you are subscr
On 6 Jun 2008, at 09:57, Grant Cox wrote:
> How do you list "all files" in spotlight?
Okay, wow, that was indeed surprisingly non-straight forward.
As I don't want to start an OS flamewar here, I'll just list the
facts: ;o)
Open the Cake folder.
Hit Cmd+F to initiate a Search.
Make sure the C
Huh? Is it too difficult to open the file and search for the word 'escape'?
I agree that Cake's inner workings are bloody mysterious, but if
you're using PHP--period--"you should very well know" how to search a
file for a method.
On Fri, Jun 6, 2008 at 10:31 PM, Turnquist, Jonah <[EMAIL PROTECTE
Yup. Bindable would easily trim those sql down easily to just what you need.
But most of the things bindable does is already available in the core of
cakephp using containable. Refer to cakebakers notes on it at
http://cakebaker.42dh.com/2008/05/18/new-core-behavior-containable/. Makes
cutting sql
OK... after working on this for a day or so I post the message and
then five minutes later stumble onto the right answer. For my case, I
used:
$this->Course->User->findByUsername(...);
This returned an array that included courses for the particular user.
It also came back with other HABTM associ
If you are using cakephp and publish websites to the internet, you
should very well know if it is secure. My question is do I have to do
something to the data before saving it to the database manually to
keep it mysql injection safe or does cake take care of that?
For instance do I need to use m
So, we all love the simplicity and magic that Cake gives us. It's
wonderful that we've even been able to deliver these things with
relative consistency and transparency across both major versions (and
many minor versions) of PHP. It's these things that make Cake what it
is. In order to get thes
Have you looked at the SQL that Cake is producing? I have a feeling that this:
$this->Session->read('User')
is not returning what you expect.
And have a look at Mariano's Bindable behavior. It will save you lots
of grief. You can find it at the bakery.
On Fri, Jun 6, 2008 at 8:11 PM, Ken <[EMA
I second SwiftMailer. Look into the AntiFlood plugin. I've been using
it for a couple of years now for a site that sends thousands of mails
at a time. When moving that site over to Cake i made sure to hang onto
Swift, as well. There's a component for it at the bakery, though
you'll need to modify
All of the various database frontends are in cake/libs/model/datasources/dbo/
On Fri, Jun 6, 2008 at 4:18 PM, Turnquist, Jonah <[EMAIL PROTECTED]> wrote:
>
> Thank you! That was exactally what I was looking for. That should
> work nicely.
>
> Still looking for the answer to this question though:
Ok, I'll attempt to re-iterate what you are attempting to do, because
it is not completely clear to me:
1) You want to be able to 'add items to an apartment', where items <-
HABTM-> apartments.
2) This should be accomplished through an HTML select drop-down, which
would be populated with all the
Just started developing with CakePHP a few weeks ago. Loved it until I
ran into this seemingly simple problem that is proving difficult to
navigate. Using CakePHP 1.2 Nightly from 6 Jun 2008:
I have a standard HABTM relationship. In this case it is Courses and
Users. A course can have many users
Why not just remove the password field from the form and create a
dedicated action/view for changing a password? Works for me.
On Fri, Jun 6, 2008 at 5:15 PM, benjam <[EMAIL PROTECTED]> wrote:
>
> I don't think beforeSave would work, because it gets hashed even
> before the method that calls Save
Hi all,
Sorry if this message has already been sent.
I'm having trouble with a habtm relation. I need a non unique
relation.
But even if I set unique to false in my models it's not used when I
use findAll.
So I looked in the code and found that in /cake/libs/model/datasources/
dbo_source.php ab
Check out the HttpSocket class in 1.2, particularly the post method,
which will allow you to pull from and push to the remote servers. The
same library also provides easy access to the headers if and when the
remote servers push data. Cake automatically sanitizes form input for
SQL automatically,
I agree with Chris too (who doesn't??) I have used the Zend IDE,
Eclipse PDT, Dreamwaver and Notepad toi develop PHP code.
My favorite is RapidPHP 2008 (http://www.blumentals.net/rapidphp/). It
is a well rounded tool.
My experience is the same with the Java-based tools as being sluggish
and needi
As far as i like the EmailComponent - it's not suitable for
mass-mailing (we're talking about 10 000s of emails) and wasn't
designed to be.Cake is great to build a fronted, prepare the data etc.
You can use SwiftMailer - it's a decent library that has _many_
options for mass mailing - using it wit
EmailComponent has worked fine for me. I haven't done any mass
mailing, though.
FWIW, it's ridiculously simple to drop in 3rd-party mailers with
cake's vendor setup.
On Jun 6, 2:11 pm, teum <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I need to bake an application to allow people to send newsletters. So
I don't think beforeSave would work, because it gets hashed even
before the method that calls Save( ).
I think I may have found a cheater (read: non-cake) way of doing it...
I run the following test:
if ($this->Auth->password('') == $this->data['User']['password']) {
unset($this->data['
Hi,
I need to bake an application to allow people to send newsletters. So
it is about mass mailing. There may be multiple users sending
newsletters to hundreds of email addresses at the same time. Mainly,
it's about the Cake Email component : will it be strong enough ?
They're not very positive a
As an addendum, you could also do what I did in my current project to
ensure that only certain fields DO validate when saving a model. This
would allow you to use the method I included in my last post
(specifying the fields you wish to save) while also allowing
validation to work. Take a look at
On Fri, Jun 6, 2008 at 4:42 PM, benjam <[EMAIL PROTECTED]> wrote:
>
> If you'll notice in my controller method, that's exactly what I do,
> but because it's already hashed, it's not empty, it's a hash of an
> empty string.
>
> I need to find a way to delete it before it gets hashed. And it gets
>
* at the same place.
2008/6/6 Timothée BRENNER <[EMAIL PROTECTED]>:
> Yeah Mark I noticed that today...I told myself "it is not possible that
> such a big application doesn't allow saving files as utf8" but I was kind of
> stubborn, I wanted this function to be in the window which appears when y
You could specify which fields to save, including all the fields you
need to update, and excluding the password field. However, you won't
be able to validate the model if you do this since password will
always be invalid.
if ($this->User->save($this->data, false, array('username', 'email')))
{
Yeah Mark I noticed that today...I told myself "it is not possible that such
a big application doesn't allow saving files as utf8" but I was kind of
stubborn, I wanted this function to be in the window which appears when you
save your file or somewhere in the settings so I didn't look further :(
D
Thank you for these links, I am reading them now. It's starting to
become more clear, I'll add another reply if any other questions come
up.
On Jun 6, 6:34 am, AD7six <[EMAIL PROTECTED]> wrote:
> On Jun 6, 8:25 am, "Turnquist, Jonah" <[EMAIL PROTECTED]> wrote:
>
>
>
> > What I want:
>
> > /scrip
Thanks, Smelly. I actually thought about that, and I almost ran with
it.
The problem with that solution is that if you're storing more than
just the username, you need to keep track of all the session variables
you set so you can delete them all before logout (or wherever else you
need to destro
If you'll notice in my controller method, that's exactly what I do,
but because it's already hashed, it's not empty, it's a hash of an
empty string.
I need to find a way to delete it before it gets hashed. And it gets
hashed before the data gets to the method. So I need to find a way to
delete
Ok, thanks for your help. I've tried to do it this way but I should have
done a mistake because it didn't work.
Hmm quoting by Dardo, if you have a beforeFilter() in another controller
extending AppController, it will not work unless you call
parent::beforeFilter() in the child beforeFilter()...
On Fri, Jun 6, 2008 at 4:33 PM, benjam <[EMAIL PROTECTED]> wrote:
> I was wondering if there was a way to prevent it from hashing the
> password if there is no password entered?
Well, before you save the data when you're editing, you could unset
the password field.
i.e. unset($this->data['User']
I have an admin section to my site, which is protected by Auth and
using a Users table.
The trouble I'm having is, when I set up a user, everything works just
fine.
When I go in to edit that user, the password field gets corrupted
because instead of re-hashing the original password (which would
Thank you! That was exactally what I was looking for. That should
work nicely.
Still looking for the answer to this question though:
Also, does cakephp take care of mysql injection checking automagically
or do I have to call mysql_real_escape_string for everything
manually? Or is there someth
> AD7six upload behavior is the best tool thast you will find for this.
Totally agree with Martin! Thanks AD7six for sharing this gem.
Regards,
Dardo Sordi.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP"
Send with a cron job called via the Cake console. You need to have an
emailer task (on the bakery or you can grab my copy at
http://bin.cakephp.org/saved/33206) and a shell file to be called (a
slimmed down version of one I use is at temporarily at
http://bin.cakephp.org/view/2108771248).
My syst
Aran,
I agree with your opinion about "crud" being cleaner, but, why do you
say what only with:
check('username', 'CamelCaseController', 'crudmappedaction');
will work? You can use:
check(array('model' => 'Model', 'foreign_key' => 'anID'),
'CamelCaseController', 'crudmappedaction');
and comp
I didn't take it personally . . . .i'm just really lazy today and what
i've read (the manual over and over) doesn't help me in my overall
goal . . . .was just looking for real world uses for populating a
hidden field value from a belongsTo model . . .i'll keep reading, i
missed something. . . .t
On Fri, Jun 6, 2008 at 2:04 PM, Rich <[EMAIL PROTECTED]> wrote:
>
> Kinda figured i'd get a response like that. . . .
>
Don't take it personally, I never do.
What do you need the data to look like?
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling s
Kinda figured i'd get a response like that. . . .
On Jun 6, 1:59 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Fri, Jun 6, 2008 at 1:36 PM, Rich <[EMAIL PROTECTED]> wrote:
>
> > I was actually following what cake baked for me but it did create the
> > list for me which was not what i wanted
Fixed in #cakephp
I had mistakenly capitalised my model filenames. Beware! Read the
conventions! This worked on my comp because Mac OS X has a way to find
files either way. Apparently Windows does too. Lowercasing the
filenames made it work.
Thanks to woopstash2!
On Jun 6, 10:18 pm, palam <[EMA
On Fri, Jun 6, 2008 at 1:36 PM, Rich <[EMAIL PROTECTED]> wrote:
>
> I was actually following what cake baked for me but it did create the
> list for me which was not what i wanted to do. Every time I try to
> change the type of find to something else . . i still don't get the
> data. . . kinda los
Generally what I do for production is have all my cake core files out
of my web root path, with each version of cake that I have used in
it's own subfolder then link to a cake_current folder to my production
release dependancy then in index.php in app/webroot/ I have the
following
if (!defined('
I was actually following what cake baked for me but it did create the
list for me which was not what i wanted to do. Every time I try to
change the type of find to something else . . i still don't get the
data. . . kinda lost here.
On Jun 6, 1:28 pm, "b logica" <[EMAIL PROTECTED]> wrote:
> On Fri
Nothing wrong with Dreamweaver. I've used it myself. To encode in
UTF8, click "Modify" --> "Page Properties" --> "Document Encoding".
Select UTF-8 (Unicode) and click "Reload".
This is how I do it in Dreamweaver MX. Your version might be
different.
I prefer Zend Studio 5.5/Zend Studio - Eclip
On Fri, Jun 6, 2008 at 11:36 AM, Rich <[EMAIL PROTECTED]> wrote:
>
> I'm having a problem reading data in my view from my controller.
>
> this is in my controller:
> $user = $this->Profile->Users->find('list');
> $this->set(compact('users');
>
> in my view I need to use a hidden control to pass t
On Fri, Jun 6, 2008 at 11:52 AM, theandystratton
<[EMAIL PROTECTED]> wrote:
>
> We're also thinking about standardizing this for all of our sites
> eventually, and will definitely want to create a safe, clean, upgrade
> process as Cake's development continues.
>
The best way I have found to handl
AD7six upload behavior is the best tool thast you will find for this.
Cheers,
mbavio
On Jun 6, 1:39 pm, Guillaume <[EMAIL PROTECTED]> wrote:
> What do you think of Attachment aka attm?http://cakeforge.org/projects/attm/
> It deals with the upload part and the multi-size display part too...
>
> O
Thanks for the help. When I attempted it, I was using the same names
for both the admin and standard controllers, so maybe there was a
conflict. I'll try to name them differently and see if that works.
For now, what I currently do is what omarh mentioned and is just have
one admin controller, and
I'm having a problem reading data in my view from my controller.
this is in my controller:
$user = $this->Profile->Users->find('list');
$this->set(compact('users');
in my view I need to use a hidden control to pass this data on to the
next controller but I can't get the value to display in the
Hey all,
I'm new to Cake, and have been playing with it the past few weeks.
I've been using a beta copy of 1.2 and want to upgrade to the release
that just posted.
Is there an Upgrade/Update tutorial or best practice out there anyone
can recommend? I haven't found anything with my initial search
I should add that it works okay on my localhost. It's a problem only
on the server.
Palaniappan C.
On Jun 6, 4:50 pm, palam <[EMAIL PROTECTED]> wrote:
> The problem is that custom model functions are not getting called from
> my controller. $this->Model->findById() works, but
> $this->Model->ge
That's not going to work. In fact, if you figured out a way to get
Cake to make it work, I'd file a ticket to say that it was a bug, not
a feature.
A "join table" should have only fields which are foreign keys to other
tables. Its sole purpose is to join records between 2 or more tables,
nothing
One doesn't "redirect" from an element. I think what you mean is that
you have a form submit button and that clicking it results in some new
layout elements being added asynchronously to the search div. Do you
have some javascript code attached to the form to get the results
using XHR / AJAX? If s
What do you think of Attachment aka attm?
http://cakeforge.org/projects/attm/
It deals with the upload part and the multi-size display part too...
On 6 juin, 17:38, aranworld <[EMAIL PROTECTED]> wrote:
> I agree with stefanski that it makes sense to put a lot of this into
> the model/behavior z
On Wed, Jun 4, 2008 at 9:27 AM, Adriano Varoli Piazza <[EMAIL PROTECTED]> wrote:
>
> On 3 jun, 17:07, mbavio <[EMAIL PROTECTED]> wrote:
>> Add this line to your app_controller:
>>
>> $os = env('OS');
>> if (!empty ($os) && strpos($os, 'Windows') !== false) {
>> setlocale(LC_ALL, 'Spanish (
I agree with stefanski that it makes sense to put a lot of this into
the model/behavior zone. I like to think of an imagefile as a piece
of data, that I just happen to store in the filesystem rather than the
database.
But as far as uploaders go, there are some limitations with PHP that
will prev
On Jun 6, 1:36 pm, Hermann Wacker <[EMAIL PROTECTED]> wrote:
> Hello everyone,
Are you using APC by any chance? if so, there is a ticket on trac
about an issue: https://trac.cakephp.org/ticket/4855
--
Ben
--~--~-~--~~~---~--~~
You received this message because yo
For a more general aproach regarding different requirements, I think
it makes more sense to split the tasks. For uploading i use this
http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/
which i modified to a behaviour because I see it more on the model-
side (happy to share code if w
I'm writing messages into my db's messages-table from different
controllers throughout my app using various functions of my Message
model. Depending on the user's notification settings, these messages
should be sent by email to the user as well and therefore written to a
mailqueue-table. I think t
Ah, wasn't aware of how the bootstrap.php file can be used. That looks
like what I need.
Thanks,
NickH
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@g
Hi Nick,
> I have one database which needs to be accessed by three different
> sites using Cake. The Model will be the same but Controllers and Views
> etc will be different.
>
> What's the best way to implement this, other than copying Model code
> three times?
You could store your model in a s
You could always write your own. It's pretty straightforward and if
you come up with something special, you can share it in the bakery ;)
I usually create them on the fly as the requirement for each site can
be very different. But a fragment I use to resize a photo to fit a box
is:
function
Hi Jonah,
> Problem:
> What if data is sent through that should NOT be stored in table? How
> do I stop that? For example, say I had a column named
> "do_not_store_data_here" in the table. For some reason I do not want
> any data stored there. I can't think of any particular cases where I
> w
The easiest approach would be to do like aranworld suggested and just
write different controllers for admins. Your controllers don't have to
be 1:1 with models. I write controllers based on logical grouping of
functionality as opposed to the literal base model - this also gives
you more meaningful
On Fri, Jun 6, 2008 at 9:43 AM, Sake <[EMAIL PROTECTED]> wrote:
>
> ok, so do I run the debugger on the index.php file? How does it work?
>
You're going off-topic from Cake and into the Land of Debugging.
Please use Google or your other favourite search engine to find info
on how to use XDebug or
ok, so do I run the debugger on the index.php file? How does it work?
On Jun 6, 9:00 am, Chowsapal <[EMAIL PROTECTED]> wrote:
> Apache handles the mod_rewrite stuff. As soon as PHP is called, you
> will be able to trace the code.
>
> On Jun 5, 11:21 pm, Sake <[EMAIL PROTECTED]> wrote:
>
>
>
> >
The problem is that custom model functions are not getting called from
my controller. $this->Model->findById() works, but $this->Model-
>getCitiesListForCentreType() (for example) doesn't work and the query
literally becomes getCitiesListForCentreType
I have setup a bare bones version on my serve
Hi everybody,
i'm very confused about saving and editing HABTM relationship and
probably a full example in the manual could help...
I've correctly created the models and MySQL tables.
My relationship is: an Employment has and belongs to many Employees.
I've inserted some data in the database by h
On Jun 6, 8:25 am, "Turnquist, Jonah" <[EMAIL PROTECTED]> wrote:
> What I want:
>
> /scripts/
> to route to
> /scripts/view
>
> Simple. What I have:
>
> Router::connect('/scripts/*', array('controller' => 'scripts',
> 'action' => 'view'));
>
> This works for urls such as /scripts/2
>
> But /scr
On Fri, Jun 6, 2008 at 2:25 AM, Turnquist, Jonah <[EMAIL PROTECTED]> wrote:
>
> grrr I'm starting to consider going back to codeigniter... they
> allowed for regular expressions...
Have you never heard of google?
Found this in under 5 seconds by searching for "regular expressions
cake routin
RE thumbs, I've always been very impressed with phpThumb.
And I believe someone added some CakePHP helpers for it in the Bakery.
As for file uploads, there's various things in the Bakery to look at -
in fact, there's so many I find it difficult to decide on one, and
usually roll my own.
On Ju
On Fri, Jun 6, 2008 at 1:49 AM, Reza Muhammad <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Actually, they haven't purchased the PBX system yet. I have the
> position to choose which PBX system i want to use since my concern is
> compatibility on Unix-based environment. I've looked at Asterisk, but
> wa
Hi,
I asked this question before but didn't get a response. I'm still
stuck with how best to do this.
I have one database which needs to be accessed by three different
sites using Cake. The Model will be the same but Controllers and Views
etc will be different.
What's the best way to implement
Ok, so i've been experimenting with model validation. It all seems
very cool, except I am seeing some holes.
>From the tutorial this is what I have in the controller:
http://bin.cakephp.org/view/2080892837
Problem:
What if data is sent through that should NOT be stored in table? How
do I stop
Hello everyone,
I'm trying to write a enterprise resource planning Software wirth
cake. My model system is therefore very large and complex (about 25
tables atm but this will grow to ~40). I heard that cake gets slow if
it has to handle a lot of linked models. This makes perfectly sense so
I'm no
I have 3 tables... On of them is a joint table...
Member, MemberRole, Role :)
Member= Member_id, name, address...
MemberRole= Member_id, Role_id, password, login...
Role= Role Id, Type
This is a typical relationship...
My relationship works find and I can assign a role to each member...
I use piston for my vendor branching needs, really works perfectly.
http://piston.rubyforge.org/
On Jun 6, 8:25 am, "David Zentgraf" <[EMAIL PROTECTED]> wrote:
> Oh, of course, deleting them in the Finder shouldn't be too hard. I
> was too fixated on the CLI. I'll try it when I get home.
>
> On 6
I am having a Mail table which is having a status field which will
tell whether it is read or unread. when a person receive a new mail,
status is 0
now in my read mail function i have written this
$read_mail = $this->Mail->findById($mail_id);
$read_mail['Mail']['status'] = 1;
$this->Mail->id = $
I have an element search.ctp, it has a simple text box and a search
button. When ever I press the search button and try to redirect (from
my controller action), It displays the redirected page with in the
element. What am I doing wrong? How do I redirect the whole page?
Thank you
--~--~-
What I want:
/scripts/
to route to
/scripts/view
Simple. What I have:
Router::connect('/scripts/*', array('controller' => 'scripts',
'action' => 'view'));
This works for urls such as /scripts/2
But /scripts/2fsdfsdfe will also work as /scripts/2 which it shout not
Also now /scripts/ with a
Apache handles the mod_rewrite stuff. As soon as PHP is called, you
will be able to trace the code.
On Jun 5, 11:21 pm, Sake <[EMAIL PROTECTED]> wrote:
> Does it deal well with the mod_rewrite stuff?
>
> On Jun 5, 10:56 pm, Chowsapal <[EMAIL PROTECTED]> wrote:
>
> > I use xdebug for php with vim
I use the pagination component in 1.1 written by Andy Dawson.
Everything works great in FF, but running under IE, the page gets
thrown into a never ending update cycle, and keeps reverting to
defaults.
In other words, after you change the sort order, or results per page,
it begins to reload ever
$this->Session->del('user');
$this->Session->setFlash('You have logged out');
On Jun 5, 5:03 pm, floob <[EMAIL PROTECTED]> wrote:
> I may be missing some key concept about how Sessions work in general,
> so if this problem is inevitable everywhere, do please help me learn
> why.
>
> The situation
YOu can always use $this->Language->sql('select myfields from
`languages` left join `packages` on id=id') (obvioously not complete)
and build your own query to return the nested results.
If that doesnt answer than I guess I dont understanf the question.
Dropboxes are pretty standard and you shoul
I have now tried several upload components and have been largely
disappointed with all. I thought for sure there would be a "holy-wow
this rocks" type component out there already.
What upload component do you use to resize and manage photos
associated with model items' i.e. Products?
Thanks in
Hi teum,
I too had a lot of problems trying to get this work using anything
other the standard users controller. I'm using 1.2 and I found that
this works:
In app controller:
Auth->userModel = 'Account';
$this->Auth->loginAction = array('controller' => 'accounts',
'action' => 'l
Click on http://groups.google.com/group/cake-php/web/cakephp-in-the-wild
- or copy & paste it into your browser's address bar if that doesn't
work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To
I hope it handles charsets better than you do.
On 6 Juny, 12:13, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hello,Salut,Je souhaite te parler de Flock. J'utilise Flock comme navigateur
> internet, et j'adore ce qu'il m'apporte à l'usage sur internet. Flock est
> un navigateur web socia
Hello,Salut,Je souhaite te parler de Flock. J'utilise Flock comme navigateur
internet, et j'adore ce qu'il m'apporte à l'usage sur internet. Flock est un
navigateur web social qui connecte les gens, photos, videos and site internet
que je préfère. Jetez-y un œil, je pense que vous pourrez
$this->Category->find('all', array(
'conditions' => array(
'name LIKE' => '%'.$parent.'%',
'parent_id' => null
)
));
On Jun 6, 10:26 am, . <[EMAIL PROTECTED]> wrote:
> Hi
>
> I just switched from cake 1.2.6311 to cake 1.2.7125 (RC1)
>
> what is the new syntax for this command?
>
> $th
Not aware that the syntax has changed. It would break a lot of apps if
it had.
I would do a plain vanilla findAll in that situation - I don't thing
you can pass any more than a value to findBy and it would only return
the first record anyway.
On 6 Juny, 11:26, . <[EMAIL PROTECTED]> wrote:
> Hi
>
Hi
I just switched from cake 1.2.6311 to cake 1.2.7125 (RC1)
what is the new syntax for this command?
$this->Category->findByName(array('name' =>'LIKE %'.$parent.'%',
'parent_id'=>null));
I want to find all categories where the name is like %parent% and the
parent_id is null
Thanks
--~--~
After some digging in the api and trac, I found an enhancement, by
Nate I think, that makes it very simple:
If you pass the name of a file, it assumes it's in 'img'
If you pass path/file it assumes it's in sub-directory 'path' of 'img'
Best of all, if you pass /path/file it assumes it's in sub-di
Yeah, oops.. wasn't thinking back there.. Yes, if this is going to be
used only in views, then a helper is more appropriate.
I also made a mind typo, it's not ~/app/bootstrap.php but ~/app/config/
bootstrap.php
Sorry ;-)
On Jun 5, 3:38 pm, Bob Mattax <[EMAIL PROTECTED]> wrote:
> Is that *really
96 matches
Mail list logo