Hi Jeremy,
- There is a missing ' before category_id after
'associationForeignKey'
= sorry, my typo in this content only. sorry.
- Your conditions in the find-list look wrong; try 'conditions' =
array('stock_id' = $this-Stock-id)
= The results are the same. both ways are working, but your
When i tried to debug($this-data['BusinessCategory']); in the Edit
View, i can get correct array which is 3 records in the array.
On Apr 28, 2:19 pm, jackgoh kockh...@gmail.com wrote:
Hi Jeremy,
- There is a missing ' before category_id after
'associationForeignKey'
= sorry, my typo in
in the array, business_category_id is same as category_id in my
example, i just changed it. Sorry.
On Apr 28, 2:19 pm, jackgoh kockh...@gmail.com wrote:
Hi Jeremy,
- There is a missing ' before category_id after
'associationForeignKey'
= sorry, my typo in this content only. sorry.
- Your
1. I have a stored procedure that return an array of ids and can
return a comma delimited string of ids if its better
2. A have a paginator that return all the data from a table.
3. When the user perform a search I take the search parameters and
call the stored procedure.
Now I have an array or
class MyController extends AppController {
function beforeFilter(){
$this-layout = 'other';
}
}
OR
class MyController extends AppController {
function beforeRender(){
$this-layout = 'other';
}
}
On 28 tra, 07:41, thom cyber.phanto...@gmail.com wrote:
Hello,, I just wonder about how to make
What are the results of find list?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 28 Apr 2011, at 07:19, jackgoh wrote:
Hi Jeremy,
- There is a missing ' before category_id after
'associationForeignKey'
= sorry, my typo in this content only. sorry.
Hi,
I am using Cake 1.3.8 and get a Mysql error code 1064. Following is
the details in debug mode
Query: check
Error: 1064: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near '' at line 1
The associated mode has
Hi,
I am using Cake 1.3.8 and get a Mysql error code 1064. Following is
the details in debug mode
Query: check
Error: 1064: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near '' at line 1
The associated mode has
On Apr 28, 8:29 am, ZAky procsh...@gmail.com wrote:
1. I have a stored procedure that return an array of ids and can
return a comma delimited string of ids if its better
2. A have a paginator that return all the data from a table.
3. When the user perform a search I take the search parameters
Have you inspected you page in firefox with firebug extension and in
chrome with the developer tools? In case you run into a JavaScript
problem that one browser might tolerate and another might be strict on
the same matter, you will find hints in those tools.
Besides that, don't you think you
your search term is an array of ids, right?
than its as easy as using
array('Asset.id' = $arrayOfIds)
because cake will automatically make an IN here
On 28 Apr., 09:25, AD7six andydawso...@gmail.com wrote:
On Apr 28, 8:29 am, ZAky procsh...@gmail.com wrote:
1. I have a stored procedure
but thats awfully wrong and dangerous
your primary validation should be in php (in the model)
js validation is just a nice little addon
On 28 Apr., 04:15, cake-learner sh.koiz...@gmail.com wrote:
I always do validation with Jquery plugins not with cakephp function
since the form function is
Hello,
I have this problem.
I want create a menu for my website, so I use an element that I set in
my layout.ctp so:
div class=menu?php echo $this-element('menu',array(),true);?/
div
I need use link for my menu but the helper doesn't work!
I try with :
$this-html-link(..) //but doesn't
read the manuel for 1.3
$this-Html-link()
On 28 Apr., 11:40, Carachi carach...@gmail.com wrote:
Hello,
I have this problem.
I want create a menu for my website, so I use an element that I set in
my layout.ctp so:
div class=menu?php echo $this-element('menu',array(),true);?/
div
I need
Okay.
I'm doing it like this.
I'm havin a new file uploaded.
The file data, like mime type, name etc. will be saved in the db under
the file id.
I'm using that id as a filename for the files in my filesystem.
So i need to first create a db record to use the id.
Afterwards i'm trying to save the
Hi,
My idea is to have a list of database data listed in a table, one row
per member data details.
Each member has a link to open a popup (I am using a basic modal
jquery script). In this popup I would like to have a comment field to
add comments regarding the selected client.
I am not sure how
Thank you euromark!
I read it but I didn't find anythig about it.
I try with $this-Html-link(...)
but give this error:
Fatal error: Using $this when not in object context in /home/gege/www/
app/views/elements/menu.ctp on line 101
I thing because I isn't in a Class...
Thank you
On 28 Apr,
When use find('list',), it is:
Array
(
[1] = 4
)
But the result suppose is :
Array
(
[1] = 7
[1] = 14
[1] = 4
)
It is always get the last record.
Thanks
On Apr 28, 3:14 pm, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
What are the results of find list?
That's probably because the first value is the array key and you can't have
duplicate array keys (your desired result is impossible in PHP). Imagine it as
a select list; each option would have the same value (1), which defeats the
object. Cake is (in essence) simply doing a loop, adding each
ahh.. okay, let me try then.
Thanks.
Regards
On Apr 28, 7:00 pm, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
That's probably because the first value is the array key and you can't have
duplicate array keys (your desired result is impossible in PHP). Imagine it
as a
As to be expected, work's like a charm!
Many thanks David for the fix and the plugin.
d//t
On Apr 27, 11:55 pm, David Persson nper...@gmx.de wrote:
Hey,
I think this commit will fix the issues with the mapping between MIME-type
and
Hello People,
i'm using CakePHP 1.3.5.
When i pass a variable to an element, as the book says
(http://book.cakephp.org/view/1081/Elements) i can't use it, i get
this error message: Notice (8): Undefined variable: variable
[APP/views/elements/header.ctp, line 2]
Here's my code:
In the
Hi folks,
My boss ask me to create an appointment system, basically, I need a
calendar that I can add events, and maybe a message system.
I haven't found any good plug-in for this. So anybody has any related
experience doing this with php? Where should I start looking at?
Any input will be
i used to play around with full calendar (a plugin of jquery) when doing my
bachelor. It is good, but we still had to configure a lot (3000 lines of
javascript). In my opinion, building everything from scratch is a lot
better than trying to hack some complex systems. So if you still have time,
Had anyone implemented any in their websites?
any suggestions?
I need some users to set up their availabilities, then other users can book
them if they are free..
thanks!
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions
Yes, I had already gone through the Blog tutorial. But that doesn't
have a static page (just to display info). What I'm trying to do is
similar to contents of about page.
I tried creating a missing_controller.ctp with no contents as below:
?php
class Missing_Controller extends AppController {
}
?
Hi
Not working means no flash animation is displaying.
Can you access main_ani.swf directly in your web browser?
Yes, I can.
I haven't read that tutorial, but I just skimmed it, and it doesn't say to
call $this-renderSwf; it says to call $flash-renderSwf.
Yes, I had tried $flash-renderSwf
Really wrong. Please read the guide, even if the Blog tutorial isn't right for
you. Start here: http://book.cakephp.org/view/958/The-Pages-Controller. What
you are trying to do is one of the most basic things and you are way off line.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
Hi Jeremy,
U r right!!! it works!! THANKS!
the solution: find('list',
array( 'fields'=array('business_category_id',
'business_category_id'),);
But i m not able to save the record to this table, CategoryStock.
I did try save(), saveAll(), UpdateAll()...
if i split to :
Hello,
I have a table posts related with table categories with de habtm table
posts_categories.
posts.id
categories.id
posts_categories.post_id
posts_categories.category_id
I'm trying to get all the records WITHOUT category (because I have
posts taken from RSS and not categorized yet).
My model
Why don't you just use google calendar or some other management
support software ? Comparing to what he has to pay you to do it, plus
the time you will not be working on something useful it pays off.
On Apr 28, 5:14 pm, Tran Cao Thai jasonvoorhees...@gmail.com wrote:
i used to play around with
I would like to load an XML file from a plugin vendors folder. I get
the following error:
Error: myfile.xmlController could not be found.
Is there a way to serve xml files from a plugin's vendors folder?
Thank you,
Levi
--
Our newest site for the community: CakePHP Video Tutorials
Ok, in the app_controller, I've included my Security component and also
added this little snippet of code for admin pages:
if(isset($this-params['admin'])) :
$this-Security-blackHoleCallback = 'forceSSL';
$this-Security-requireSecure();
endif;
That one's straight
On Thu, Apr 28, 2011 at 6:06 AM, heohni
heidi.anselstet...@consultingteam.de wrote:
Hi,
My idea is to have a list of database data listed in a table, one row
per member data details.
Each member has a link to open a popup (I am using a basic modal
jquery script). In this popup I would like
Thank you. I will take a look into that, the full calendar looks
pretty good.
On Apr 28, 11:14 am, Tran Cao Thai jasonvoorhees...@gmail.com wrote:
i used to play around with full calendar (a plugin of jquery) when doing my
bachelor. It is good, but we still had to configure a lot (3000 lines of
It's a good point, man. But we are trying to integrate this into
another web app we developed before and share the same users table.
Thanks for your input.
On Apr 28, 12:37 pm, Miloš Vučinić milosvuci...@gmail.com wrote:
Why don't you just use google calendar or some other management
support
Why don't you just validate that the destination folder exists and is
writable?
On Apr 28, 2:57 am, func0der funco...@live.com wrote:
Okay.
I'm doing it like this.
I'm havin a new file uploaded.
The file data, like mime type, name etc. will be saved in the db under
the file id.
I'm using
Can you explain that a bit more precise.
On Apr 28, 7:59 pm, Miles J mileswjohn...@gmail.com wrote:
Why don't you just validate that the destination folder exists and is
writable?
On Apr 28, 2:57 am, func0der funco...@live.com wrote:
Okay.
I'm doing it like this.
I'm havin a
On Wed, Apr 27, 2011 at 3:28 PM, blue_negative james.dcu...@gmail.com wrote:
Hi,
I am using Cake 1.3.8 and get a Mysql error code 1064. Following is
the details in debug mode
Query: check
Error: 1064: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL
Hi
I am getting different xmls and after parsing I want them to be pushed
to database. Is there an easy way to accomplish that. Is there a
database to xml mapping tool available for cakephp.
thanks
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out
On Thu, Apr 28, 2011 at 10:10 AM, Santiago Basulto
santiago.basu...@gmail.com wrote:
Hello People,
i'm using CakePHP 1.3.5.
When i pass a variable to an element, as the book says
(http://book.cakephp.org/view/1081/Elements) i can't use it, i get
this error message: Notice (8): Undefined
On Thu, Apr 28, 2011 at 2:28 PM, cricket zijn.digi...@gmail.com wrote:
Looks ok to me. Are you sure the spelling is good? Does the call to
this element occur in any other layouts? Maybe you're in a different
layout, which doesn't also have the variable assignment. Long shot, I
know.
Also,
On Thu, Apr 28, 2011 at 11:47 AM, varai vaanip...@gmail.com wrote:
Hi
Not working means no flash animation is displaying.
Can you access main_ani.swf directly in your web browser?
Yes, I can.
Using what path? Is the flash file sitting in app/webroot? Try:
/main_ani.swf
(note the slash)
On Thu, Apr 28, 2011 at 11:49 AM, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
Really wrong. Please read the guide, even if the Blog tutorial isn't right
for you. Start here: http://book.cakephp.org/view/958/The-Pages-Controller.
What you are trying to do is one of the most
On Thu, Apr 28, 2011 at 10:36 AM, Janu asimmee...@gmail.com wrote:
Hi
I am getting different xmls and after parsing I want them to be pushed
to database. Is there an easy way to accomplish that. Is there a
database to xml mapping tool available for cakephp.
You can turn the XML into an array
On Thu, Apr 28, 2011 at 12:31 PM, david hc davi...@gmail.com wrote:
Hello,
I have a table posts related with table categories with de habtm table
posts_categories.
posts.id
categories.id
posts_categories.post_id
posts_categories.category_id
I'm trying to get all the records WITHOUT
On Thu, Apr 28, 2011 at 12:30 PM, lsenft lse...@gmail.com wrote:
I would like to load an XML file from a plugin vendors folder. I get
the following error:
Error: myfile.xmlController could not be found.
Is there a way to serve xml files from a plugin's vendors folder?
What's the code that
Hi Mates,
Am stuck at place where am not able to pass multiple order strings to
pagination. I am using pagination and have done this in my controller:
var $paginate = array(
'limit' = 15,
'order' = array(
'Model.field' = 'desc',
http://cakephp.lighthouseapp.com/projects/42648/tickets/325-adding-paginator-sort-to-order-by-two-fields
although it does not seem to be a duplicate of the other tickets - two
different things...
On 28 Apr., 21:45, Mr.Jayesh jayeshach...@gmail.com wrote:
Hi Mates,
Am stuck at place where am
'order' = array(
'Model.field' = 'desc',
'Model.field2' = 'desc')
should work, though
On 28 Apr., 21:47, euromark dereurom...@googlemail.com wrote:
http://cakephp.lighthouseapp.com/projects/42648/tickets/325-adding-pa...
although it does not
On Thu, Apr 28, 2011 at 2:17 PM, func0der funco...@live.com wrote:
Can you explain that a bit more precise.
http://php.net/manual/en/function.is-dir.php
http://www.php.net/manual/en/function.is-writable.php
I usually handle uploads on the controller/component side. Save your
model record, get
Well google does offer connectivity with it's data. You could do it
and still do what you want with the data.
On Apr 28, 2:01 pm, Tan Cheng davidtan...@gmail.com wrote:
It's a good point, man. But we are trying to integrate this into
another web app we developed before and share the same users
Tan,
Take a look at this note from Derick Ng that may give a jumpstart to
your effort ;)
http://planetcakephp.org/aggregator/items/535-cakephp-calendar-helper
cheers,
Sergio
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP
I gotta agree.
On Thu, Apr 28, 2011 at 12:37 PM, Miloš Vučinić milosvuci...@gmail.comwrote:
Why don't you just use google calendar or some other management
support software ? Comparing to what he has to pay you to do it, plus
the time you will not be working on something useful it pays off.
All I want to do is have one find for my comments in each associated
model. I would love to do this in the Comment model and only have to
do it once but that wasn't working out.
SHOW CONTROLLER
$this-paginate = array('comments', 'id' = $show['Show']['id'],
'model' = 'Show');
$comments =
You can also create the folders and make the writable before hand,
that way the file will always upload.
On Apr 28, 12:55 pm, cricket zijn.digi...@gmail.com wrote:
On Thu, Apr 28, 2011 at 2:17 PM, func0der funco...@live.com wrote:
Can you explain that a bit more precise.
I integrated a calendar plugin. Worked well. Had a few issues that still
exist but I'll post it up this weekend or later today.
On 29 April 2011 06:04, Matt Murphy mattyh...@gmail.com wrote:
I gotta agree.
On Thu, Apr 28, 2011 at 12:37 PM, Miloš Vučinić milosvuci...@gmail.comwrote:
Why
Hi
My cake version is 1.3.7
I'm just learning form validation and am having a few issues.
Firstly, the manual is crap in that it doesn't tell you how to
implement the validation in your model, and it doesn't tell you how to
show the validation error messages in your view. Took a lot of
digging
Before you call $this-User-validates() you must the data to model...do
this
$this-User-set($this-data)
On Apr 29, 2011 4:31 AM, Sanfly san...@gmail.com wrote:
Hi
My cake version is 1.3.7
I'm just learning form validation and am having a few issues.
Firstly, the manual is crap in that it
59 matches
Mail list logo