I am using actas-image-column-behavior for image upload, image upload
is successful, but giving error in displaying the image,
my model:
array('className' => 'Category',
'foreignKey' => 'parentID'
),
);
var $hasMany = array(
'Childnic' =>
I am have alot of data in my table and i do not want to do multiple
finds and rather do 1 find and use Set::combine or Set::extract, just
not sure how
This is my current data:
[0] => Array
(
[Attribute] => Array
(
[id] => 1
okok maybe not weeks ;) you can use the buil in XML class.. but still
using mysql and/or sqlite is cheap (as in maintainance etc)
--
Marcin Domanski
http://kabturek.info
On Mon, Jul 21, 2008 at 5:51 PM, James K <[EMAIL PROTECTED]> wrote:
>
> It's going to take you weeks to make a cake compatibl
are you sure that the contents_for_layout is in the body section of your
default.ctp layout?
should be
snip
(add whatever here)
(add more if you need it)
In the name of Life, Liberty, and the pursuit of my sanity.
Siebren Bakker(Aevum Decessus)
On Sat, Jul 19, 2008 at 05:53, vibhor <[EMAI
Solved. It's because of using requireAction() in my layouts and
helpers.
Ondrej
On Jul 5, 11:35 pm, angel333 <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a problem with SessionComponent::setFlash(). When I save
> something in flash, it should be shown on next page and it should
> expire when u
My tiny_mce folder is in the js folder. I switched my code around to
what yours is, no more errors, however the old ones are still there.
Predominantly the one that states that tinyMCE is not defined.
On Jul 21, 2:43 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> I have tinymce in the js directo
Wow, can't believe I forgot to check that.
But yes I am, tinyMCE is not defined in my coded included up above in /
views/news/edit.ctp
As well
syntax error in the tiny_mce.js code here apparently
On Jul 21, 2:07 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> are you getting any javascript erro
I got it to work thanks to irc jose_zap
Set::combine(Set::extract('/Attribute[item=Relationshipstatus]',
$data), '{n}.Attribute.id' , '{n}.Attribute.value');
On Jul 21, 8:35 pm, mrconfused <[EMAIL PROTECTED]> wrote:
> I am have alot of data in my table and i do not want to do multiple
> finds an
Maybe you need this:
http://api.cakephp.org/class_model.html#2525df39f43db3a76bff482265695d54
Save the data with the same Game.id in the second time. :)
---
kiang
On 7月21日, 下午2時19分, Christian <[EMAIL PROTECTED]> wrote:
> My situation is like so..(I'm new to cake/MVC frameworks, but I have a
> d
I'm trying to save multiple fields to a database which I've created
using the inputs() FormHelper method. However, only the first field
saves to the database. Here's the controller code:
class NamesController extends AppController {
var $name = 'Names';
function
Dave,
I looked at that link and I am not getting the same results as my
custom query with no pagination...
Here's the old custom query :
$q = "SELECT Member.id, Member.fname, Member.lname, Profile.gender,
Profile.primaryPhotoSrc FROM members Member JOIN profiles Profile ON
Member.id = Profile.me
is bakery code available ?
On Jul 21, 5:27 pm, Mech7 <[EMAIL PROTECTED]> wrote:
> Is the source code from the cookbook available somewhere... or some
> other example application where i18n is used with database data?
>
> Like looking at the bakery code helped me allot to figure out how
> certain
Normally you have a user object stored in the session that's used to
authenticate. Just include that in any query that needs to be locked
down to a specific user.
On Sun, Jul 20, 2008 at 3:22 PM, <[EMAIL PROTECTED]> wrote:
>
> I searched the archives of this group and never found an answer to
>
I just removed everything and decided to try again from scratch in
case I messed up a step. Here are my steps in order as I did them:
1. Download TinyMCE
2. Unzip archive
3. Copy tinymce/jscripts/tiny_mce folder
4. paste it into /app/webroot/js folder
5. add the following code in my edit.ctp loca
by any chance did you forget to _echo_ the $javascript->link( ... )?
FYI: $scripts_for_layout only matters if you set the second parameter
($inline) of $javascript->link to false.
http://api.cakephp.org/class_javascript_helper.html#cab1eb59cacd608ec02e79cfd8710094
On Jul 21, 2:15 pm, "Arak Tai'R
Yea, now just to figure out why it's not seeing it. Woohoo, thanks for
everyone's help dealing with my silliness.
On Jul 21, 3:35 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> well without a link its just shots in the dark.
>
> @king Jackal
>
> > > Is the TinyMCE code actually being included (c
Is the source code from the cookbook available somewhere... or some
other example application where i18n is used with database data?
Like looking at the bakery code helped me allot to figure out how
certain things where done :)
--~--~-~--~~~---~--~~
You received th
hmmm, using firebug I can't seem to find any reference to it.
On Jul 21, 3:18 pm, KingJackaL <[EMAIL PROTECTED]> wrote:
> Is the TinyMCE code actually being included (client side)? Check using
> Web Developer addon for Firefox or whatever. Like - can you see the
> TinyMCE JS code from the browser
And if it wasn't clear. Still the same error tinyMCE in tinyMCE.init
is undefined
On Jul 21, 3:15 pm, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote:
> I just removed everything and decided to try again from scratch in
> case I messed up a step. Here are my steps in order as I did them:
>
> 1. Downloa
Yes, was using Debug at '2'.
Thanks, will have a play with Xdebug and see if that helps - haven't
come across that project before.
On Jul 22, 2:36 am, kiang <[EMAIL PROTECTED]> wrote:
> 1. Had you tried to enable the debug settings in CakePHP?
> 2. Try to setup Xdebug to get more meanful debug i
I have the RewriteEngine turned on without any problems, this article
http://kb.mediatemple.net/questions/85/Basic+mod_rewrite (you may need to be
logged in to view) indicates its valid for all services including GS.
My .htaccess looks like this and seems to work correctly :-
RewriteEngine on
And I get the same error with it as well. tinyMCE is not defined.
On Jul 21, 2:59 pm, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote:
> Okay and I just tried that tinyMCE helper, pretty simple apparently.
> However it does not work either. And I did exactly as they have in the
> tut, including copying
I'm migrating my application right now too. I'm currently in the
process of writing up an article on my experience. There are several
articles out there. My experience has been anything but easy though,
however my application is complex. Maybe I'll have it posted in a
about a week and I'll pos
http://groups.google.com/group/cake-php/browse_thread/thread/e70d4147be079a08/c491f7eb4589c43c?lnk=gst&q=self+habtm#c491f7eb4589c43c
On Jul 21, 8:34 pm, hellfish <[EMAIL PROTECTED]> wrote:
> bumping...
>
> Any clues please?
>
> This should be simple for a more experienced user.
>
> On Jul 16, 11:
I have tinymce in the js directory
this:
echo $javascript->link('/js/tiny_mce/tiny_mce.js');
is this in my case
echo $javascript->link('tiny_mce/tiny_mce');
javascript->link expects the file to be in the js directory and expects it
to be a .js file
I suspect that you've got mce in a directory t
Thank you for all the suggestions!!
I first decided to create a custom helper as per Johnathan's advice.
I started on a helper to wrap an array of radios or checkboxes in
multiple formats - divs or tables, etc. The first pitfall I ran into
was the hidden field that automatically gets created by
hmmm, apparently it is looking for a tiny_mce controller from what I
can see.
On Jul 21, 2:11 pm, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote:
> Wow, can't believe I forgot to check that.
> But yes I am, tinyMCE is not defined in my coded included up above in /
> views/news/edit.ctp
>
> As well
> s
I'm trying to use the security component, but I'm having some problems
when I try to customize my forms on the edit and add views. If I
change any options in the options array of the form helper, the page
will just reload itself instead of actually doing the update. Here is
the code from my view h
bumping...
Any clues please?
This should be simple for a more experienced user.
On Jul 16, 11:56 pm, hellfish <[EMAIL PROTECTED]> wrote:
> I've been searching a lot and I'm still having a hard time to model
> something that I want to include on my bands website
> [shamelessPlug]http://www.ka
Can you give more details about what you had to do to fix this?
On Sun, Jul 20, 2008 at 2:24 PM, Mathachew <[EMAIL PROTECTED]> wrote:
>
> I found out what the issue was. I was trying to use the security
> component without creating all form items in the form helper.
>
> On Jul 19, 7:19 pm, Mathac
On Mon, Jul 21, 2008 at 5:01 AM, Ahsan <[EMAIL PROTECTED]> wrote:
> In the Packt Pub book, we have dedicated a whole chapter to the auth
> component. Basically this chapter is part of the last section, and discusses
> the building of the authentication system for the app we developed through
> out
It's going to take you weeks to make a cake compatible XML "dbo
driver" when you could just use MySQL and be done in 30 minutes...
Making a little admin panel for your client to use to update the
values is also a hell of a lot more user friendly than asking them to
FTP into the site, download an
Hello,
I just found that my problem with setFlash -
http://groups.google.com/group/cake-php/browse_thread/thread/2fcc3e3cb86526cc/556160abe7681c01?show_docid=556160abe7681c01
- caused requireAction() in my layout and helpers. Is there any good
equivalent of this method?
Please excuse my English
Thank you, Siebren and Femi. I figured out what was wrongthanks
for your help..
--~--~-~--~~~---~--~~
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 u
I have access to equipment to print and perfect bind 1 off books. If
we can get a good PDF of the entire book and a nicely designed cover I
can produce them for the group. Need a page count and size to
determine cost.
We could perfect bind it, or spiral bind it if you want the book to
lay flat.
P
Hi,
try the following in your check_login.thtml:
echo $javascript->codeBlock("window.location = '".$redirectURL."'");
or maybe because its ajax:
You may not need the header if you set 'evalScripts' => true in the
ajax call.
Hope this helps,
Michael
On 21 Jul., 14:20, vibhor <[EMAIL PROTEC
1. Had you tried to enable the debug settings in CakePHP?
2. Try to setup Xdebug to get more meanful debug information.
---
kiang
On 7月21日, 下午12時39分, KingJackaL <[EMAIL PROTECTED]> wrote:
> I have noticed that if you have different associations with the same
> name, CakePHP will die with an infa
Put $this->Name->create() above $this->Name->save($this->data);
---
kiang
On 7月21日, 下午6時34分, aaronfalloon <[EMAIL PROTECTED]> wrote:
> I'm trying to save multiple fields to a database which I've created
> using the inputs() FormHelper method. However, only the first field
> saves to the database
Hello all,
I am stuck at a point wherein i need to redirect to another page using
ajax. i have read many topics over here and tried many of them but
could not succeed. Perhaps there is something wrong in my code..Hence,
i thought to post this issue here.
Some details:
Initially, I have a login
hello,
I am calling AuthComponent::password to hash a password. When i try
and call this method I get
Fatal error: Class 'AuthComponent' not found in /home/stewart/
workspace/portable_contacts/models/user.php on line 40
Tried to include the Auth with
var $component = array('Auth');
still did
This is a common web app issue. The same problem exists with form
input - if you have a drop-down in your form with the values 'A', 'B'
and 'C' - that doesn't actually stop a user from sending you 'D', it
just makes it (very) hard for technically naive users to do so.
What you want to do is check
Hello,
I am getting an SQL syntax issue with the following:
$sort_order = 'Detail.user1+0 desc, Detail.keyword asc, Detail.user2+0
asc';
$this->Detail->findall("Detail.job_id = $job_id", '', $sort_order,
null, null, 1));
The error is in the Order By section of the sql that CakePHP
generates:
Could you post your view code too?
On Jul 21, 6:34 am, aaronfalloon <[EMAIL PROTECTED]> wrote:
> I'm trying to save multiple fields to a database which I've created
> using the inputs() FormHelper method. However, only the first field
> saves to the database. Here's the controller code:
>
> class
2008/7/21 Stewart <[EMAIL PROTECTED]>:
>
> hello,
>
> I am calling AuthComponent::password to hash a password. When i try
> and call this method I get
>
> Fatal error: Class 'AuthComponent' not found in /home/stewart/
> workspace/portable_contacts/models/user.php on line 40
>
> Tried to include th
On 20 Lug, 20:51, "Marcin Domanski" <[EMAIL PROTECTED]> wrote:
> Hey,
> Why not use sqlite ?
> Apart from that mysql is IMO a low cost/maintain solution and is
> probably on every hosting server.
>
> --
> Marcin Domanskihttp://kabturek.info
>
I don't wanna use a db beacause data to be treated ar
My situation is like so..(I'm new to cake/MVC frameworks, but I have a
decent grasp of the concepts and have done a lot of reading)
I have User and Game models... their respective tables and a
games_users join table.
Users HABTM Games and vice versa.
In one form action, I want to create a new G
One way is to use a counterCache method of storing number of products
in a category in the categories table. I've read that this is now
supported in cake core in 1.2, though I wrote my own approach a while
ago.
Adam
On Jul 21, 7:27 pm, bitkidoku <[EMAIL PROTECTED]> wrote:
> Hi everyone,
> I have
You can apply whatever naming convention you want when you copy the
uploaded "TEMPORARY FILE" to what the final destination will be. eg:
$tmp_file = $this->data['Gallery']['submitedfile']['tmp_name'];
/* you could create a helper that generates the filename */
$my_new_file = $this->Helper->gener
One more thing that is not mentioned in the url content is that the
template file extension .thtml for views and layout has been changed
to .ctp.
Regards,
-Ketan.
http://www.propertyjungle.in
On Jul 21, 10:12 am, Daniel Hofstetter <[EMAIL PROTECTED]> wrote:
> Hi Jack,
>
> > I'd like to know the
Hi,
I'm new here, and I start write in Cake, but I have problem on start,
when i wrote my first Model and Controller (very simple content), I
usually get message from PHP, about my execution time is ending (30s).
Why?
This problem is on 1.2.0.7296-rc2
My station is PHP 5.2.4 and Apache 2.2.9
Th
Encrypting URL's doesn't make a lot of sense to me (in most cases) -
there are of course exceptions like creating temporary URL's. There
are a few reasons why:
- adding hash crap into your URL's isn't a smart SEO move
- if it's a GET URL, it should be readable. Readable means short
...and you NEE
More accurately, all conventions need to be followed or it will make a
lot more work for you to configure it.
You CAN override a lot of the assumed conventions, like if you need to
connect to an existing database that you cannot modify. If you are
starting from scratch, though, it is much easier
Right ... sorted it
Ahh truns out it's simple
Change .htaccess from:
RewriteEngine on
RewriteRule^$app/webroot/[L]
RewriteRule(.*) app/webroot/$1[L]
To:
RewriteRule^$app/webroot/[L]
RewriteRule(.*) app/webroot/$1[L]
Seems an MT GS doe
Hi,
I'm creating a very small website that shows my customer's
informations and allows him to manage the contents to be shown. To do
that, in order to keep costs low, I'd like to use a simple xml file
instead of using a proper db, with its hosting costs and problems to
be managed. I thought I coul
No one can help me with this one, i guess?
--~--~-~--~~~---~--~~
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 t
Siebren is right, you need to add the contents_for_layout in the body
section of your default.ctp
However, to make it easier for you to start up and continue from where
you are right now, go to cake/libs/views/layouts/default.ctp and copy
its contents to your app/views/layouts/default.ctp. The
Maybe this will help you:
http://bakery.cakephp.org/articles/view/encrypting-urls
--~--~-~--~~~---~--~~
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 unsu
forgot to add this. if you need a script to recursively rename the
files please have a look at my blog
http://innovatechnologies.blogspot.com/2008/07/blog-post.html
-Ketan.
On Jul 21, 12:34 pm, Ketan Shah <[EMAIL PROTECTED]> wrote:
> One more thing that is not mentioned in the url content is th
I searched the archives of this group and never found an answer to
this question.
Suppose I have a page that is access via the URL
http://www.mydomain.com/mycontroller/5
There is nothing to stop a user from changing the URL to
http://www.mydomain.com/mycontroller/6
and viewing a different record
I may have clicked reply to author instead of reply, so I'm trying to
submit again...
On Jul 20, 1:48 pm, "Marcin Domanski" <[EMAIL PROTECTED]> wrote:
> you're crazy ;)
:P
> Do you have
> $form->input('id')
> in the form ? i'm pretty sure all baked views have it.
Yes, all my form items are crea
60 matches
Mail list logo