Try:
echo $this-Form-input('parent_id', array('options' = $parentCategories));
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 20 Aug 2010, at 06:28, ashok.b wrote:
Hi everyone,
My Self Joined Categories table is as follows:
id, name, description,
Hi everybody
I'm learning CakePHP and I'm reading through the Blog tutorial. So far
everything works well, except the delete action. When clicking on
Delete, I get the following errors:
Warning (2): Missing argument 1 for PostsController::delete() [APP
\controllers\posts_controller.php, line 24]
Warning (2): Missing argument 1 for PostsController::delete() [APP
\controllers\posts_controller.php, line 24]
Code
i think problem is here.your link should look like
controller/action/params so in your case: posts/delete/post_id
--
LP,
Tilen Majerle http://majerle.eu
2010/8/20 psybear83
thank you very much.
that sounds very promising.
Is it possible to set dboSource::cacheMethods to false from within a
controller/shell-script?
Or do I have to do this in the config or (even worse) only inside
dbosource.php?
I wouldn't want to switch it off application-wide.
Just for the one
Ok, gave it a try this way.
Will have to wait for the next import tonight.
class importShopdataShell extends Shell
{
var $uses =
array(VsShop,VsArticle,VsCategory,VsMake,VsArticleHasVsCategory,'VsLog',VsArticleTest,VsArticleHasVsCategoryTest,AdminUser);
var $tasks =
This one is more of a css question but it relates directly to the cake
settings as im reluctant to use a completely new stylesheet
i have a filter area at the top of one of my views with 4 options - 3
text inputs and a drop down select. At the moment it has them all
running down the page as in
On Fri, August 20, 2010 1:43 pm, james wrote:
This one is more of a css question but it relates directly to the cake
settings as im reluctant to use a completely new stylesheet
i have a filter area at the top of one of my views with 4 options - 3
text inputs and a drop down select. At the
Is debugging on so you can see the sql error? It's having trouble
'finding one' - which is one generative sql call so if IT fails the
whole bloody thing fails and you get an empty array.
On Aug 19, 2:55 pm, Marcos Mendonça marc...@gmail.com wrote:
have you tried without the 'dependent' = true
Hi cricket,
thanks for that. Yes thats the kind of thing im looking for but the fields i
need to use as the display field actually belong to another model. Is that
possible to declare in the model?
Like
$displayField = OtherModel.displayField;
?
On Thu, Aug 19, 2010 at 5:10 PM, cricket
I'm getting this error on a given view.
Warning (2): range() [function.range]: step exceeds the specified
range [CORE\cake\libs\set.php, line 235]
range - [internal], line ??
Set::numeric() - CORE\cake\libs\set.php, line 235
DboSource::fields() - CORE\cake\libs\model\datasources\dbo_source.php,
Hi all.
I've done plenty of searching and been unable to find a solution yet. I'm also
fairly new to Cake, but not to PHP. I have ajax pagination working from the
currently-view controller/model. However, if I attempt to paginate a list that
comes from a different model/controller, I only get
On Fri, Aug 20, 2010 at 10:48 AM, james livsey
jamesliv...@googlemail.com wrote:
Hi cricket,
thanks for that. Yes thats the kind of thing im looking for but the fields i
need to use as the display field actually belong to another model. Is that
possible to declare in the model?
Like
On Thu, Aug 19, 2010 at 4:52 PM, Oriol Franquesa ofranqu...@gmail.com wrote:
I think there's a problem trying to do a save() in a model that
contains one Date type column:
Cake manages automatic conversions between human format date and
DataBase format.
In particular, when I make a save
Hi,
I'm using CakePHP on my domain abc.com
Now I want to create a subdomain where I want to run a couple of
scripts but they should not be influenced by cakePHP like y.abc.com
When I create the subdomain I get a 500 Internal Server Error when
surfing to y.abc.com
It seems like it has something
Hi all,
Apologies in advance if I have missed a solution to this or something
obvious.
I am setting up a Blog site and I have specified posts, comments and
users then used the console to generate my models, controllers and
views.
This has given me the following code in posts model:
var
Hi,
I'd like to know the best way to keep order in my photogallery. I
upload a new photo and I want it to display between the third and
fourth photo.
There can be a field 'order' and contain numbers. I can display photos
by 'order'. Sounds good. But when I try to put a photo somewhere in
the
On Wed, Aug 18, 2010 at 5:06 PM, Phoenix apd@gmail.com wrote:
Good day. I'm creating a dashboard with cakephp 1.3 that displays all
job line items. I am having trouble displaying the rep name instead
of the id. I don't know if I need a custom query instead or if I can
still use the find
On Wed, Aug 18, 2010 at 4:04 PM, Rob bizarro...@gmail.com wrote:
Hey, this is my first time using google groups (im used to forums) so
if this post is in the wrong are or something let me know.
I have a cake php application and I'm using auth, acl, groups and all
that jazz for users. I have
On Wed, Aug 18, 2010 at 8:34 PM, Daniel Rodriguez dor...@gmail.com wrote:
Hello all,
Here is my problem. I'm getting the following error:
Parse error: syntax error, unexpected '(', expecting ')' in C:\Users
\dann\xampplite\htdocs\myApp\app\controllers
\applications_controller.php on line
2010/8/20 Marcos Mendonça marc...@gmail.com:
I'm getting this error on a given view.
Warning (2): range() [function.range]: step exceeds the specified
range [CORE\cake\libs\set.php, line 235]
range - [internal], line ??
Set::numeric() - CORE\cake\libs\set.php, line 235
DboSource::fields()
On Fri, Aug 20, 2010 at 4:50 AM, frent frent...@gmail.com wrote:
Hi,
I'm using CakePHP on my domain abc.com
Now I want to create a subdomain where I want to run a couple of
scripts but they should not be influenced by cakePHP like y.abc.com
When I create the subdomain I get a 500 Internal
On Fri, Aug 20, 2010 at 5:34 AM, Andy Fitz Diack fitzret...@gmail.com wrote:
Hi all,
Apologies in advance if I have missed a solution to this or something
obvious.
I am setting up a Blog site and I have specified posts, comments and
users then used the console to generate my models,
On Fri, Aug 20, 2010 at 8:14 AM, Jack jacz...@gmail.com wrote:
Hi,
I'd like to know the best way to keep order in my photogallery. I
upload a new photo and I want it to display between the third and
fourth photo.
There can be a field 'order' and contain numbers. I can display photos
by
Those who can understand Bahasa Melayu language ( probably who's
living in Indonesia,Malaysia,Brunei ) , can read the book. But I use a
lot of screenshots in English, so probably you can follow the tutorial
This book is all about building Control Panel to
1. Manage ACOs
2. Assign Permission to
Oh okay. Thank you very much. I had tried the second way that you
mentioned, but for some I thought it had to be user('user_id') rather
than user('id'). id makes more sense.
Thank you
On Aug 20, 12:32 pm, cricket zijn.digi...@gmail.com wrote:
On Wed, Aug 18, 2010 at 4:04 PM, Rob
good afternoon ..
setei debug to 1 and managed to get some warnings that were oc ..
now where it appears to the captcha image is showing CAPTCHA image
is like a picture .. but if I click to display the image:
Warning (2): Can not modify header information - headers already sent
by (output
One thing you could do is use a next_photo_id field and chain the
photos one after the other, just like a linked list.
On Fri, Aug 20, 2010 at 12:11 PM, cricket zijn.digi...@gmail.com wrote:
On Fri, Aug 20, 2010 at 8:14 AM, Jack jacz...@gmail.com wrote:
Hi,
I'd like to know the best way to
Or you could use the Tree behaviour? That has reordering and moving built right
in.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 20 Aug 2010, at 21:20, Nabil Alsharif wrote:
One thing you could do is use a next_photo_id field and chain the
photos one
Has anybody had any success running a shell from a cron job on
bluehost? I have followed the instructions in the book about setting
it up but can't seem to get it to work. Below is the command I'm
using:
/home3/myusername/public_html/new/vendors/cakeshell email main -cli /
ramdisk/bin/php4
29 matches
Mail list logo