Hey Brian, I just redid another app in the console and somehow someway
doing this: echo $product['Color']['name']; works now.
I really appreciate your help. Thanks so much!
clint
On Apr 3, 9:41 pm, justclint wrote:
> No, I dont have any afterFind code.
>
> On Apr 3, 9:29 pm, justclint wrote
No, I dont have any afterFind code.
On Apr 3, 9:29 pm, justclint wrote:
> Thanks Brian, I in regards to the category and other fields, they have
> the same issue but I've just deleted them so just to simplify and to
> work with one item and then I can repeat whatever the solution is.
>
> Yes, yo
Thanks Brian, I in regards to the category and other fields, they have
the same issue but I've just deleted them so just to simplify and to
work with one item and then I can repeat whatever the solution is.
Yes, you are correct about the foreach. It is as follows on the index
view:
--
Wait a sec--you also don't have any Category, Sport, or Material data
in that array, although they are clearly part of the query.
But, then again, you *do* have Color in there. Weird.
On Sat, Apr 4, 2009 at 12:17 AM, brian wrote:
> I just looked closer and see that you have:
>
> $this->set('pro
I just looked closer and see that you have:
$this->set('products', $this->paginate());
So, your view var should be $products. So, is this line inside of a loop?
IOW, you're doing something like:
foreach($products as $product)
Anyway, as you can see from the debug output, the Color array is
After struggle with email component source code, you should write the right
format for Email->to and Email->from. Like below:
$this->Email->smtpOptions = array(
'port' => '465',
'timeout' => '30',
'host' => 'ssl://smtp.gmail.com',
'username' => 'xx...
I forgot to mention, this is the dubug I ran: debug($products,
$showHTML = false, $showFrom = true);
On Apr 3, 8:56 pm, justclint wrote:
> I'd never used the debugger before so I had to do a little reading
> first but I ran it and here's the results:
> ---
> Array
>
I'd never used the debugger before so I had to do a little reading
first but I ran it and here's the results:
---
Array
(
[0] => Array
(
[Product] => Array
(
[id] => 1
[name] => Item 1
Odd. The query shows that it should be in there. Did you try the
debug() i mentioned? ;-)
On Fri, Apr 3, 2009 at 10:12 PM, justclint wrote:
>
> Thanks for the quick response Brian!
>
> When I add:
>
>
>
> I get error:
>
> Notice (8): Undefined index: Color [APP\views\products\index.ctp,
> line
Has anyone come across a nice tab menu using prototype that can load an
element?
Thanks
Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegro
Thanks for the quick response Brian!
When I add:
I get error:
Notice (8): Undefined index: Color [APP\views\products\index.ctp,
line 48]
Any suggestions?
Thanks!
On Apr 3, 6:56 pm, brian wrote:
> The SQL query is fetching Color.name. You're looking in the Product
> array. The Color nam
Any one can give an example configure if you have succeed on this?
On Fri, Apr 3, 2009 at 11:42 PM, joshua wrote:
> I try every way that I can find to send email from my gmail account or
> yahoo account , but both of them are failed. I use cake Email component to
> send.
> ##
The SQL query is fetching Color.name. You're looking in the Product
array. The Color name will be in the Color array.
When in doubt, do a debug($this->data) in your view.
On Fri, Apr 3, 2009 at 9:48 PM, justclint wrote:
>
> My app is working but a couple of my fields are not pulling the data
My app is working but a couple of my fields are not pulling the data I
want.
I have a table called products and another table called colors. My
colors table has 2 fields, id and name.
When adding the product, you select the color (from drop down menu)
and it will insert the color id into the col
How are you defining you layout for the methods?
Do you have ?
$this->layout = 'ajax';
Regards,
Alfredo
On Fri, Apr 3, 2009 at 8:30 PM, Aurelius wrote:
>
> I already tried making the Blogs/edit/ Output static (in the edit.ctp-
> file is only "I'm working"), the BlogsController Method is as w
The Cakebook actually has all the information you'd need to get
RequestHandler to work with an AJAX call to your controller's action.
http://book.cakephp.org/view/174/Request-Handling
The only "gotcha" is if you need to debug what's happening on the
server-side, and try to mimic the AJAX call man
I am willing to pay someone to build 2 search / compare functions for me.
What I have are multiple HABTM tables with options an INVESTOR can have on
their profile. When an AGENT creates a AD/POST looking for INVESTORS they
select from the same HABTM tables to select options related to their Post.
I already tried making the Blogs/edit/ Output static (in the edit.ctp-
file is only "I'm working"), the BlogsController Method is as well
empty, but still there's nothing coming from the Server other than an
empty Document with an working header and StatusCode 200. When opening
that link in the br
ad 1) yes, they are in the same app
ad 2) yes, they do
ad 3) I'm trying low and it doesn't work, is it possible that there's
something "wrong" with the AJAX Requests?
thx
Aurelius
On 3 Apr., 22:40, Miles J wrote:
> Im doing the same thing but have not run into this problem. A few
> questions:
>
Why is the % there in the first place?
--~--~-~--~~~---~--~~
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 to
cak
Yup, I know it should be url encoded. But if you URL encode it, it
STILL produces a 400 error because it STILL contains a '%'
Strange that the only CakePHP site that I can find that copes with it
without an error is the CakePHP website.
http://cakephp.org/pages/%
So, what are they doing right t
Krish,
I have not used it really myself so far, but since you asked for
starting points I might as well feed you with some links.
Teknoid wrote some a couple articles on using jQuery with CakePHP :
http://teknoid.wordpress.com/2009/01/19/jquery-in-the-cakephp-world-part-1/
http://teknoid.wordpres
3 - Also, is supposed to be visible in the source?
Because I see it when testing.
--~--~-~--~~~---~--~~
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 uns
So im reading up on this page:
http://book.cakephp.org/view/346/Caching-in-the-Controller
I had a few questions.
1 - Does the $cacheAction only cache the html? Or does it also cache
the queried results alongside the html, so that it doesn't do another
query?
2 - And im assuming the works for
Sorry, let me clarify...i was using the upload.php script that was
included with Uploadify... Could you please give me a little more info
about how i would use RequestHandler to map an AJAX call to my action?
Thanks again for the help.
On Apr 3, 11:34 am, Brendon Kozlowski wrote:
> If you're sen
hey its working now... it was the auto increment... i had set auto
increment for the entries.id had to set it for the
entries_revisions.id also... thanks a lot... for pointing a way
towards light...
i guess it was pretty dumb of me to have troubled u all...
so happy... :D
--~--~-~--~~
hey i think i made it work... jus give me some time to give u a
thumbsup and describe whr i was going wrong
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-ph
well .. no it (id) was not on autoincriment but i set it to auto
increment and chked... it didnt work... here is what i did...
I set id tag on auto increment and then chked... it didnt work
so i dropped all the table data...
i added a new entry called markup and it got saved without an issue .
He
Im doing the same thing but have not run into this problem. A few
questions:
1 - Are the controllers in the same folder, or different apps?
2 - Are you calling parent::beforeFilter() in both controllers?
3 - What lever is your security setting at? Try medium.
--~--~-~--~~---
Hello
I want enter one field record in multiple table.
input('Moviecast/movieid',array('label' => false,'type'
=> 'select',
'options' =>
array(
'' => 'Select Movie',$movielist
; ?>
I want insert this field multiple tables
whi
Duh- sorry
http://book.cakephp.org/view/150/Custom-Validation-Rules
On Apr 3, 11:11 am, mlecho wrote:
> hi...i am using the email validation feature for a few forms in my
> application. Today, we discovered a client was getting a failure from
> an email following a pattern like so: per...@websit
Hi All,
I am novice to CakePHP. I am using version 1.2. I have to submit a
from (which is a part of my page) to the database and update the page
information with newly saved data without refreshing the page(using
Ajax).
I am planning to use any of the javascript libraries like JQuery/
Prototype.
Hi togehter,
I've installed the plugin authake - it's a plugin for user management.
Now I want to connect one table of my aplication with the user table
of authake. The name of the table in authake is authake_users. In my
table "providers" I made a new field user_id (this is the foreign key
of id
> But after a single post there is a conflict of id key in the database.
> it may be that i have made a silly mistake in the code, however past
> 2-3 hours of searching for the bug has yielded no results.
did you set the autoincrement for the id in the database?
> I would appreciate if somebody
sorry... the repeated posts were a mistake
--~--~-~--~~~---~--~~
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 to
If you're sending it to a separate upload file that was not created
specifically for its use, I believe you're technically modifying its
originally intended and expected behavior. I would instead use the
supplied upload.php file and use the JavaScript's onComplete or
onAllComplete callback method
Hi Dave,
I tried the example myself! Got the ajax to work, but showing no
values. Looking at the debug information I could see that the created
SQL statement was wrong. The autocomplete component has an error in
line 90.
The line is:
$base = array($model.'.'.$field => 'LIKE %'.$data[$model]
[$fi
hi...i am using the email validation feature for a few forms in my
application. Today, we discovered a client was getting a failure from
an email following a pattern like so: per...@website-a.com
the "-" seems to throw the error. Is there a way i can alter the regex
or the validation rule?
--~--~-
hello people,
i have been trying to develop a wiki using cakephp with the help of
this tutorial. I am quite ok with php but this is the first time i am
using cakephp.
Thing is I am stuck. I think that tutorial was written for cakephp
1.1.x while i have installed cakephp 1.2.x. I have started the
hello people,
i have been trying to develop a wiki using cakephp with the help of
this tutorial. I am quite ok with php but this is the first time i am
using cakephp.
Thing is I am stuck. I think that tutorial was written for cakephp
1.1.x while i have installed cakephp 1.2.x. I have started the
It works if i try and call an unrelated upload.php in the document
root, but i still cannot get it to call the "upload" action of the
"photos" controller...
On Apr 3, 7:21 am, Brendon Kozlowski wrote:
> From reading over that topic - on quick glance after using the script
> a bit - it looks like
Hi,
i'm trying to get a grasp on caching right now, and i've stumpled over
a little problem and i'm wondering if i'm maybe missing something.
When a model automatically clears the view cache it searches for files
with the models name in the filename, so in the end that means that
only those cach
% is a reserved character for denoting url-encoded special characters
(e.g. space, '='). If you want to allow reserved characters in urls,
you need to urlencode them.
For reference, the url-encoded value of "%" is "%25".
-j.
On Apr 3, 12:27 pm, RichardAtHome wrote:
> Hi bakers! :-)
>
> I'm pre
hello i have some problems here
i have fields Active i'm try do a find in index find all conditions active => 1
i want only active to 1 to show not to 0
here is the code
function index($id = null) {
$this->Item->recursive = 0;
$this->set('items',
hello i have some problems here
i have fields Active i'm try do a find in index find all conditions active => 1
i want only active to 1 to show not to 0
here is the code
function index($id = null) {
$this->Item->recursive = 0;
$this->set('items', $th
CpAmf plugin is based on the latest AMFPHP package, and works with
cakePHP 1.2. The amf plugin uses all features of the AMFPHP package:
works with or without the amf php extension (if amfext is installed
and enabled, it will be automatically use by this plugin).
CpAmf plugin allows you to use cak
Ok its conf but how can i use ACL and admin routing together?
atta
On Feb 26, 6:33 am, Evelio wrote:
> I'm so new in CakePHP but...
>
> Routing.adminis an configuration value for define the prefix that
> will use CakePHP for name and route the "admin" actions... i.e. if you
> view the AuthCompo
hi all
I have searched alot and everybody is discouraging to use both admin
routing + acl at a time.
Can anybody tell me how can i access admin_xxx if a group is valid for
it.
Thanks
Atta
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Wow, setting the Variable "Security.level" to "medium" definetly did
the trick!!
Great! Thank you, Dr. Loboto.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cak
Hello all
I have a question regarding our website built using cakephp. I have
some idea of php but I am completely new to the frameworks. The thing
is our company got a webapp built from a firm to manage information of
our customers.
But the thing is that the sessions at the customer side are so
Thanks for reply
Must be some typo there, it was 2 am here in Belgrade when i worked on that,
must have been too tired to notice error, anyway my fix was (and i think
i'll keep to that in future) makig a plugin, so i can have my specific code
isolated and as far as i know there should be no perform
Hi Dave, I'm actually using dojo for this kind of stuff (http://
dojotoolkit.org). The good news is that with dojo you can build an
ajaxian UI very fast, the bad news is that binding dojo with cake
isn't very easy (at least the first time you try). I suggest you try
dojo and if you has any questio
Here is the code for the models and the table.
agent model:
var $hasMany = array(
'Bookmark' => array(
'className' => 'Bookmark',
'foreignKey' => 'agent_id',
'dependent' => false,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'exc
Hi!
I have this code:
debug(
$this->User->find('all',
array(
'conditions' => array(
'active' => 1,
Hi bakers! :-)
I'm pretty surprised I haven't come across this one before.
The following URL generated by the pagination helper causes a 400 Bad
Request response:
http://localhost/projects/jisc_pims_19/outputs/index/page:2/find:a%
Remove the '%' from the URL and its all fine
If you change the
Can you show us what the agents, investors and users tables look like? Also,
can you give the code you've used to create the associations for all of the
models?
On Fri, Apr 3, 2009 at 11:13 AM, Dave Maharaj :: WidePixels.com (via Nabble)
> wrote:
> I have included code as requested:
>
> I am t
Hi!
I have a UserController which loads a site and then the user can make
a AJAX Request to another Controller (BlogController). I'm using the
AuthComponent,but the other Controller always needs a second login,
why?
Any Ideas how to solve that problem?
thx
Aurelius
--~--~-~--~~-
I'm just beginning the process of exploring i18n in CakePHP and I've
bumped into something I can't get right via trial and error.
For my app, nearly every page has the same page title - only 2 pages
are different. In my layout, I'm using the $title_for_layout variable
and, because almost every p
I try every way that I can find to send email from my gmail account or yahoo
account , but both of them are failed. I use cake Email component to send.
###
$this->Email->smtpOptions = array(
'port' => '25',//for gmail 465
'time
of cource you also customise the built in html helper in
cake/libs/views/helpers/ putting the customised version in your
app/views/helpers/ - see the tags at the top would get you start
but depending on how many you have - guess you only have the one
- S
2009/4/3 donnerbeil
>
> Oh, thats easy.
Hi, i have 3 tables Users, Improvements and Bookmarks a user can
bookmark one or more improvements. The bookmark table holds the
user_id and improvement_id. When i'm pulling the information (query
below), i also need to show the author of the improvements username.
Is it possible to call a func
I have included code as requested:
I am trying to get info from 2 models (Posts and Bookmarks) displayed on a
third controller(Agents profile page).
The user hasMany Bookmarks belongsTo Post hasMnay Bookmarks
I have agents_controller to display the agents/profile
Bookmarks Table:
id
agent_id
po
Yes the scripts are included and loaded, component added to
controller...still nothing
-Original Message-
From: John Andersen [mailto:j.andersen...@gmail.com]
Sent: April-03-09 3:28 AM
To: CakePHP
Subject: Re: Autocomplete
Did you include the javascripts libraries Prototype and Scripta
Oh, thats easy. Is that HTML?
Just kidding. Sometimes it's still easier without cakebut only
sometimes
Thanks for helping my brain thinking in a non-cake way
Donnerbeil
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
$this->set('result', $this->Admin->query($query));
On Fri, Apr 3, 2009 at 5:01 AM, Ranju wrote:
>
> hello
>
>
> $query = "SELECT * from admins";
> $result = $this->Admin->query($query);
> print_r($result);
>
>
> I want show result in view file. which type i show result in view
> file.
>
> Thanks
On Fri, Apr 3, 2009 at 10:32 AM, Ernesto wrote:
>
> Code39 isn't the only barcode i need.
>
> if i can load new helpers from inside the method i'll load just the
> necessary ones.
Sorry, I don't know how to do that. Maybe send another post to the
list asking how to load helpers on the fly.
--~-
Code39 isn't the only barcode i need.
if i can load new helpers from inside the method i'll load just the
necessary ones.
On 3 Apr, 16:23, brian wrote:
> Why are you adding this Code39 to your $helpers array inside the
> method? When your controller loads BarcodeHelper, it won't be properly
> r
Why are you adding this Code39 to your $helpers array inside the
method? When your controller loads BarcodeHelper, it won't be properly
registered.
On Fri, Apr 3, 2009 at 8:23 AM, Ernesto wrote:
>
> Hello.
>
> i'm having some trouble with custom helpers.
>
> This code (same as Bakery) works:
>
>
>From reading over that topic - on quick glance after using the script
a bit - it looks like this is a case of something trying to be
helpful, and doing too much. Think Microsoft Office Word and it's
ability to auto-set your margins for you to be "helpful".
Without taking a deeper look at both t
Ya, I am using cakephp 1.2. what I use
On Fri, Apr 3, 2009 at 7:45 PM, brian wrote:
>
> Ranjana, are you using Cake 1.1? That looks like the older syntax. If
> 1.2, then use what mscdex stated.
>
> On Thu, Apr 2, 2009 at 8:28 PM, mscdex wrote:
> >
> > On Apr 2, 4:29 pm, Ranjana Sriavastava wro
Ranjana, are you using Cake 1.1? That looks like the older syntax. If
1.2, then use what mscdex stated.
On Thu, Apr 2, 2009 at 8:28 PM, mscdex wrote:
>
> On Apr 2, 4:29 pm, Ranjana Sriavastava wrote:
>> file('Cele/cele_image', array('class' => 'fullwidth'))); ?>
>>
>> file('Cele/cele_image'');?
It looks to me that this thing wouldn't work with Cake controllers
unless it's modified to accept absolute URLs. Why would they use
relative paths? Strange.
On Thu, Apr 2, 2009 at 6:22 PM, Robert McWay wrote:
>
> That was one of the first things i tried...When i changed this it
> created a "file
Thank you, I will try it later when I will be home.
One more thing that comes to my mind is also if it is possible to
rename the "page" to someone else as I'm developing this app in other
than English language.
On Apr 3, 1:35 pm, Penfold_99 wrote:
> With route you can define what variable are p
Hello! You could try something like what I am doing:
Controller code: (in the add action)
---
//grab list of Projects for dropdown list
$projectNames = $this->ProjectUpdate->Project->find('list', array
('fields' => 'Project.name',
Miles thanks much for the input. It worked!!!
One last question. With this code:
echo $form->input('Project.id', array('options' => $projectNames));
I need Project.id there so that it property associates, however, it
displays it in the browser with it's label reading "Id", can I change
Note to self: All that lines are not necessary. What works is:
emailversenden($vertrag);
}
function emailversenden($vertrag)
{
$user = ;
$responsibleperson = ;
$responsiblepersonname = ;
$responsi
Hi all,
I'm using the Auth component for a simple user controller system to
login/logout.
It worked fine with version 1.2.0.6311 beta.
Since I updated my cake to version 1.2 RC2 I found an error in IE7.
Logging in seems to work fine, but when I go to another page, I
instantly get logged out. Thi
Hi all,
In my rosters table I have a course_id, that points to the primary key
in courses table, and I have a student_id, that likewise points to
primary key in students, table...
Right now, in my baked of views/rosters/add.ctp:
create('Roster');?>
input('course_id');
echo $f
Hello.
i'm having some trouble with custom helpers.
This code (same as Bakery) works:
helpers);
$codedData = $this->Code39->encode($string);
}
}
?>
this doesn't
helpers);
$this->helpers[] = 'Code39';
Hey,
I'd like to see a summary of your book before buying, I think people
wants to know a little deep what are you talking about on the book,
chapters and sub-chapters names at least.
Thanks
On Apr 2, 11:50 am, Henrique Machado wrote:
> I bought XD
>
> 2009/4/1 Ma'moon
>
> > Thats awesome, Th
On Apr 2, 11:50 am, Henrique Machado wrote:
> I bought XD
>
> 2009/4/1 Ma'moon
>
> > Thats awesome, Thank you very much, and welcome back :-)
>
> > On Wed, Apr 1, 2009 at 4:42 PM, GrumpyCanuck wrote:
>
> >> I'm back!
>
> >> Some of you might remember me from my previous stint on the CakePHP
>
With route you can define what variable are passed, using 'pass' =
array()
this will then format the named arguments into the url as /key/value
instead of /key:value
On 2 Apr, 23:43, depi wrote:
> Hello guys,
>
> Currently I started adding routing to my application and I got stuck
> when I reali
Hi,
I am just running into the same problem. Have you found a solution yet?
I want to send an email via a shell script and have trouble passing teh body to
the Email component when using the mail functions from the example shell script
"my". I will now try your solution.
Anja
-Ursprünglic
Thanks John, got it! There was another query running from
beforeFilter when i was playing around and i didn't see it because i
had removed the debug styling which is now back in! I've now cleaned
things up and added recursive => -1 for my query. Thanks again
Ross
On Apr 3, 5:18 am, John Ander
In my controller I'm doing:
$ok = $test->deleteAll($conditions, false);
where $test is my model
this normally works just fine, but this was failing for some unknown
reason.
Now I want to be able to debug why this was failing.
Is there a way to get the last error?
I've only seen the problem in
hello
$query = "SELECT * from admins";
$result = $this->Admin->query($query);
print_r($result);
I want show result in view file. which type i show result in view
file.
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
Hi,
You can paste me code, I can check...
You have tipo or so. All classes in Cake can be extended. It is still OOP
in PHP.
There is very little things that you can not do because of cake fw.
BR,
majna
2009/4/2 stain
>
> @majna Sorry i accidently emailed you my post
>
> I have a similar proble
I know a few of you were looking for something like this, enjoy.
http://www.milesj.me/blog/read/30/proxy-search-_-doing-a-search-while-using-named-parameters
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP"
Yeah, I am interested in that matter too. I have a lot of ajax
requests and when I click some buttons multiple times while the
request is beeing processed, I get kicked out - i.e. the session is
destroyed and I end with the login form. So, what session storage
engine could be used? This is annoyin
It looks like problem with concurrent access to session files.
Standard advice in all such cases - try to set lower security level.
Actually, I don't know how can it help, but it is really common
advice.
Other advice - choose session storage engine that works better with
concurrent requests.
On A
90 matches
Mail list logo