Jquery-ui -- how do I 'install' it?

2009-06-05 Thread Beedge

Hi all,

I am trying to use the jquery-ui framework in a project but Im a bit
confused on where I should put everything

When I download it there are .js files and image files and css
files.,

I tried putting each of these into the various img / css / js folders
in webroot in the app folder and then use Javascript and CSS helpers
to load them into my view, but that dosnt work

Has any one got these two to play together nicely?

Id appreciate if you could tell me how I should go about this, or
point me in the direction of an appropriate link

Thanks guys,


Kev
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



A little help needed on determining my model relation ships please

2009-06-04 Thread Beedge

Hi all, about to start on my first cake project. A straight forward e-
commerce site.
I am not used to having to visualise my database relationships so I
was hoping for a little help.

A product belongs in a category
A product can be in many categories
A Category has Sub categories

Is this just a HABTM relationship between products and categories?

I will be using tree behavior for my categories.

Any comments on this or helpers?  I would love to find a tutorial that
covered this, but all I can really find is blog tutorials!

Thanks in advance

Kev
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Routing an Admin dashboard

2009-05-29 Thread Beedge

Hi all, I have baked up a couple of simple controllers/models to add
news stories and the like to an app I am building (for no other reason
than to learn the ropes)

I want the administrator to be able to type www.siteurl.ie/admin and
be directed to a log in. I want there to be a dashboard with all the
CRUD functions available to the administrator after they successfully
log in

but I aint having much fun.

This is what Ive done:

turned on admin routing in config file

set up a controller called: administrators_controller.php

added the route: Router::connect('/admin', array('controller' =>
'administrators', 'action' => 'dashboard', 'admin' => true));

and set up dashboard method in my administrators controller

so now, when I go to www.siteurl.ie/admin it forwards me to the
dashboard view, no problem.

BUT when I try to do something like: www.siteurl.ie/admin/news/add I
get:

 Error:  AdminController could not be found.

Error: Create the class AdminController below in file: app\controllers
\admin_controller.php



any ideas?

Thanks (in advance)

Kev
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: a question on model relationships

2009-05-14 Thread Beedge



Now that I think about it, would a tree structure mean that each sub
category can only appear in one tree?

e.g a furniture shop might have

Living room > tables

and

Dining Room > tables

so can the sub category tables appear in both trees?
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: a question on model relationships

2009-05-14 Thread Beedge

Thats great thanks, looking at the cook book section on tree's and
although I dont quite get it at first glance, it looks like its
exactly what I need

Thanks again,

Kevin

On May 14, 10:49 am, PaulMan  wrote:
> Try Tree Behavior for category->SubCategory->SubCategory ,
> and "workit" all in the same model "Category" ...
>
> Product Model
> public $hasAndBelongsToMany = array('Category');
>
> Category Model
> public $hasAndBelongsToMany = array('Product');
>         public $hasMany = array('SubCategory'=>
>         array('className' => 'Category',
>                                                                 'order'      
> => 'lft',
>                                 'foreignKey' => 'parent_id',
>                                                                 'dependent'   
>  =>  true));
>         public $actsAs = array('Tree');
>
> http://book.cakephp.org/view/90/Using-Behaviors
>
> don't forget the Categories_Products table
> example:
> CREATE TABLE `categories_products` (
>   `category_id` int(10) unsigned NOT NULL DEFAULT '0',
>   `product_id` int(10) unsigned NOT NULL DEFAULT '0',
>   PRIMARY KEY (`product_id`,`category_id`)
> ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
>
> On May 14, 10:18 am, Beedge  wrote:
>
>
>
> > Hey all,
>
> > I have (or plan to have!) an app that will allow users to view
> > products by category. Each category can have a sub category and each
> > sub category can have further sub categories..
>
> > eg. sports>tennis>rackets>wooden
>
> > There is no limit to the dept of sub categories.. (like in Ebay)
>
> > I plan to have a table for the main categories and a table for the sub
> > categories
>
> > so a main category can have many sub categories, no problem, BUT, a
> > sub category can also have many sub categories? is it possible to set
> > up such a relationship? or should I just have another table with a
> > list of all the chains?
>
> > I hope I am making sense, and Im willing to listen to any suggestions
> > on how one would accomplish such a structure
>
> > Thanks
>
> > Kevin- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



a question on model relationships

2009-05-14 Thread Beedge

Hey all,

I have (or plan to have!) an app that will allow users to view
products by category. Each category can have a sub category and each
sub category can have further sub categories..

eg. sports>tennis>rackets>wooden

There is no limit to the dept of sub categories.. (like in Ebay)

I plan to have a table for the main categories and a table for the sub
categories

so a main category can have many sub categories, no problem, BUT, a
sub category can also have many sub categories? is it possible to set
up such a relationship? or should I just have another table with a
list of all the chains?

I hope I am making sense, and Im willing to listen to any suggestions
on how one would accomplish such a structure

Thanks

Kevin
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Bake a Cake

2009-05-08 Thread Beedge

I have gotten it to work now, but I basically had to take the long way
round, and I still dont know what caused the problem.
I uninstalled WAMP5 and installed XAMPP. after I got everything
configured it worked like a charm.! :)

Thanks

Kevin

On May 8, 9:59 am, Grzegorz Pawlik  wrote:
> Can You use php from command line? If yes, You could probably call
> console cake that way:
> php cake.php bake
> Have You tried that?
>
> On May 7, 7:47 pm, Beedge  wrote:
>
>
>
> > Thanks for that, but its not quite the same. Ive downloaded latest php
> > and installed, but no joy.
>
> > I wonder has anyone else any suggestions?
>
> > This is a killer, because I am completely stuck, I had been enjoying
> > coming home and making little bits of progress each night, but this
> > has totally put a spanner in my quest to master cake! :)- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Bake a Cake

2009-05-07 Thread Beedge

Thanks for that, but its not quite the same. Ive downloaded latest php
and installed, but no joy.

I wonder has anyone else any suggestions?

This is a killer, because I am completely stuck, I had been enjoying
coming home and making little bits of progress each night, but this
has totally put a spanner in my quest to master cake! :)
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Bake a Cake

2009-05-07 Thread Beedge

Ive followed that tutorial to the letter and still get the same
result,

my Path variable is correct (C:/wamp/www/cake/console) because Ive
copied that path into explorer and I can see the batch file

as far as I can tell my PHP is a CLI build because when I copied that
path into explorer (to check that it was the right path) I see a php
icon and when I hover over it the alt tag says 'File Description: CLI'

Any other ideas what could be causing this? I hate to have come so far
only to fail now! :(

On May 7, 11:37 am, majna  wrote:
> try withhttp://cakephp.org/screencasts/view/6
>
> check again Environment Variables->System Variables->Path
>
> On May 7, 12:20 pm, Beedge  wrote:
>
>
>
> > Hi all,
> > Im (still) trying to get my head around cake. Im following the
> > excellent IBM tutorial and Im on part 2. All is going well except for
> > one thing.. I cant get the console to work :(
>
> > This is my setup, Windows Vista using WAMP.
>
> > Ive set the environmental path variables to C:\wamp\bin\php \php5.2.6;
> > C:\wamp\www\cake\console
>
> > I change my directory on the comand line to c:\wamp\www\app>
>
> > and when I try to bake (by typing cake bake test) it tells me: 'cake'
> > is not recognised as an internal or external command, operable program
> > or batch file
>
> > Any ideas on what I am doing wrong?
>
> > Thanks in advance
>
> > Kevin- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Bake a Cake

2009-05-07 Thread Beedge

Hi all,
Im (still) trying to get my head around cake. Im following the
excellent IBM tutorial and Im on part 2. All is going well except for
one thing.. I cant get the console to work :(

This is my setup, Windows Vista using WAMP.

Ive set the environmental path variables to C:\wamp\bin\php \php5.2.6;
C:\wamp\www\cake\console

I change my directory on the comand line to c:\wamp\www\app>

and when I try to bake (by typing cake bake test) it tells me: 'cake'
is not recognised as an internal or external command, operable program
or batch file

Any ideas on what I am doing wrong?

Thanks in advance

Kevin
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



A question about configuring your root directory

2009-04-22 Thread Beedge

Hi all,

I have cake installed on my local machine.

The directory is:

http://127.0.0.1/cake

I type this in the URL and get the confirmation page saying everything
is ok with the install.

I am doing the IBM tutorial at:

https://www6.software.ibm.com/developerworks/education/os-php-cake1/section3.html

I am at the stage that I have set up a simple users view and model and
controller with register.ctp. I go to this page and it works fine:

http://127.0.0.1/cake/users/register/

however when I submit a new user the page tries to go to
http://127.0.0.1/cake/users/register/users/register/

when in the tutorial it goes to http://127.0.0.1/cake/users/register/

I know its not a typo/spelling mistake or anything, so I wonder do I
need to configure the root directory ?

Im sorry if this is vague or rambling but would really appreciate any
help

Thanks

Kevin
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Another Newbie question (or two!)

2009-04-21 Thread Beedge

Thanks a lot,
thats exactly what I was looking for,


Beedge

On Apr 22, 6:42 am, NegoBlack®  wrote:
> Hello Beedge,
>
> I think you will find this information 
> herehttp://book.cakephp.org/view/96/Layouts,
> but what you must to create a new layout on app/view/layouts/
> beedge.ctp setting the var "$content_for_layout" in the place where
> you want to wrap the content rendered by the views. You still can set
> $title_for_layout and $scripts_for_layout. After that you must to set
> the attribute $layout on your controller or action like this:
>
> 
> class ProductsController extends AppController
> {
>
>   var $layout = "beedge";
>
>   public function index()
>   {
>     $events = array();
>
>     # ...
>   }
>
>   public function view()
>   {
>         $this->layout = "another_by_beedge";
>         #...
>   }
>
> }
>
> # app/controllers/products_controller.ctp
>
> On Apr 21, 8:06 pm, Beedge  wrote:
>
> > Cool thanks,
>
> > next question
>
> > how do I go about editing the look of the page? where does the blue
> > header and footer come from?
>
> > again, I am working athttp://hbit.ie/cake/posts
>
> > is there some way of setting up a template look and feel for a page?
>
> > looking at the source code generated I can see a header and footer
> > div.. how do I go about editing these?
>
> > thanks,
>
> > Kevin
>
> > On Apr 21, 11:25 pm, BeroFX  wrote:
>
> > > Set debug = 0 in app/config/core.php
>
> > > On Apr 22, 12:17 am, Beedge  wrote:
>
> > > > Hi all,
>
> > > > I have recently decided to learn a framework, and from what Ive seen
> > > > Cake is the way to go,, So I ve gotten my hands on 'Practical cakePHP
> > > > projects'
>
> > > > Im doing the first blogging tutorial, and my first attempt differs in
> > > > appearance from the example in the book
>
> > > > it looks like I am in a debuggin mode or something, because the SQL is
> > > > being output. my example is at:
>
> > > >http://hbit.ie/cake/posts
>
> > > > is there a variable I should set to go to 'normal' mode?
>
> > > > thanks all.
>
> > > > Kevin
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Another Newbie question (or two!)

2009-04-21 Thread Beedge

Cool thanks,

next question

how do I go about editing the look of the page? where does the blue
header and footer come from?

again, I am working at http://hbit.ie/cake/posts

is there some way of setting up a template look and feel for a page?

looking at the source code generated I can see a header and footer
div.. how do I go about editing these?

thanks,

Kevin

On Apr 21, 11:25 pm, BeroFX  wrote:
> Set debug = 0 in app/config/core.php
>
> On Apr 22, 12:17 am, Beedge  wrote:
>
> > Hi all,
>
> > I have recently decided to learn a framework, and from what Ive seen
> > Cake is the way to go,, So I ve gotten my hands on 'Practical cakePHP
> > projects'
>
> > Im doing the first blogging tutorial, and my first attempt differs in
> > appearance from the example in the book
>
> > it looks like I am in a debuggin mode or something, because the SQL is
> > being output. my example is at:
>
> >http://hbit.ie/cake/posts
>
> > is there a variable I should set to go to 'normal' mode?
>
> > thanks all.
>
> > Kevin
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Another Newbie question (or two!)

2009-04-21 Thread Beedge

Hi all,

I have recently decided to learn a framework, and from what Ive seen
Cake is the way to go,, So I ve gotten my hands on 'Practical cakePHP
projects'

Im doing the first blogging tutorial, and my first attempt differs in
appearance from the example in the book

it looks like I am in a debuggin mode or something, because the SQL is
being output. my example is at:

http://hbit.ie/cake/posts

is there a variable I should set to go to 'normal' mode?

thanks all.

Kevin

--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



A newbie questions about URLs

2009-04-14 Thread Beedge

I have uploaded cake to a testing folder on my domain hbit.ie to play
around with it and see what I can do. I have called my testing
folder.. wait for it 'cake' :)

Can someone tell me if this is right.. the url

http://hbit.ie/cake/

shows the installation is ok. but if i leave out the trailing slash
( http://hbit.ie/cake ), I get a bad request page returned,

Do I need to configure something, or is this normal behaviour?

Thanks

Kevin

--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Newbie requires help! :)

2009-04-13 Thread Beedge

Hi all.
I recently decided that I got to get trained up in using a php
framework as up till now Ive been handcoding everything, and Ive been
told that its very inefficient! smile.gif

So I installed the latest version of cake on my windows vista machine
running WAMP.

I got the welcome page showing up ok saying that everything is working
fine etc. but when I went to do my first tutorial I got the follwing
error:


Error: Controller could not be found.


The tutorial I was doing is 
http://www.sitepoint.com/article/applicati...opment-cakephp/

Ive got as far as defining the data base and

note.php into apps/models




notes_controller.php into apps/controllers




as far as I can make out if I call note I should get the scaffolding
page, but instead I get the error saying:
Error: Controller could not be found.

Any ideas on what might be wrong? or on what to try to resolve it?

Thanks

Beedge

--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---