Re: Better Performance in Separate Database Tables?

2008-06-12 Thread Cheeze

Cool. Thanks to everyone who replied!

On Jun 12, 10:37 pm, villas <[EMAIL PROTECTED]> wrote:
> If there are lots of differences then maybe the_woodsman's idea may
> help.  Or, if the info is completely different then two tables is
> probably right.
>
> However,  if the information required for both is somewhat similar (eg
> name, address, tel no, email etc),  then I would definitely suggest
> one single table.  Even if you have to make a couple of extra fields
> specific to students or teachers,  it's still better in one table.
> It's so much more flexible and easier to integrate into the rest of
> your application.  With of course the added bonus that once a student
> becomes a teacher,  you can just change the flag  :-)
>
> Say, for example,  you want to send newletters:  one to teachers,
> another to students and then a third one to everyone.  You can
> essentially use the same code.
>
> With regards performance,  don't even think about that being a
> problem.  MySQL for example would handle tens of thousands of records
> without even blinking, especially if all the data was indexed in one
> single table.
>
> HTH
>
> On Jun 12, 2:20 am, Cheeze <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I'm planning for a project for schools. As you might imagine there are
> > mainly two groups of users - Students and Teachers.
>
> > I'm at the stage of designing the database tables and was wondering if
> > having separate tables for students and teachers might yield better
> > performance than having a single table with a column indicating the
> > user as a student/teacher.
>
> > I'm thinking that having separate tables might improve concurrency
> > when many students and teachers are using the site at once (think read/
> > write locks) since they are using different tables.
>
> > Granted, I'm not writing the app for millions of users, but if it
> > helps to improve the performance, it'll translate to better user
> > experience. And I guess there are others out there who are curious
> > about it as well.
>
> > Thanks.
>
> > P.S. Kudos to the Cake team for coming up with RC1 of 1.2. Yet another
> > great release. Thanks to all who made this possible!
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Better Performance in Separate Database Tables?

2008-06-11 Thread Cheeze

Hi,

I'm planning for a project for schools. As you might imagine there are
mainly two groups of users - Students and Teachers.

I'm at the stage of designing the database tables and was wondering if
having separate tables for students and teachers might yield better
performance than having a single table with a column indicating the
user as a student/teacher.

I'm thinking that having separate tables might improve concurrency
when many students and teachers are using the site at once (think read/
write locks) since they are using different tables.

Granted, I'm not writing the app for millions of users, but if it
helps to improve the performance, it'll translate to better user
experience. And I guess there are others out there who are curious
about it as well.

Thanks.

P.S. Kudos to the Cake team for coming up with RC1 of 1.2. Yet another
great release. Thanks to all who made this possible!
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Missing PaginatorHelper Method in View

2008-05-06 Thread Cheeze

On May 7, 12:37 am, Gwoo <[EMAIL PROTECTED]> wrote:
> The PaginatorHelper is added automatically when you call
> Controller::paginate(). So, since you have it wrapped in a control
> structure it is not always called. For your case, adding it to the
> helpers array would solve your issues.

Believe me, I've tried that. I put the below in app_controller.php
first and products_controller.php second to no avail.

var $helpers = array('Html', 'Form', 'Paginator');


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Missing PaginatorHelper Method in View

2008-05-06 Thread Cheeze

On May 6, 9:43 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Tue, May 6, 2008 at 9:41 AM, Cheeze <[EMAIL PROTECTED]> wrote:
>
> >  I've tried to use my application on different servers and all gave the
> >  same result.
>
> >  Can anyone provide some advise on how I can proceed to debug this?
>
> Paste your code intohttp://bin.cakephp.org
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard:http://www.littlehart.net/atthekeyboard

Thanks for replying, Chris. Much appreciated.

The code for products_controller and its view are at
http://bin.cakephp.org/view/801713435

I assume the model is not important so I didn't paste it there.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Missing PaginatorHelper Method in View

2008-05-06 Thread Cheeze

I've tried to use my application on different servers and all gave the
same result.

Can anyone provide some advise on how I can proceed to debug this?

Thanks.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Missing PaginatorHelper Method in View

2008-05-03 Thread Cheeze

Upz anyone?

My suspicion is the resolution of the path, but I've checked
CAKE_CORE_INCLUDE_PATH and ini_get('include_path') and both show the
right path.

Looking at cake/libs/view/helpers/ paginator.php is there.

I don't know where else to look.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Missing PaginatorHelper Method in View

2008-05-02 Thread Cheeze

Hi,

I'm using Cake 1.2.0.6311.

I've followed the example from 
http://bakery.cakephp.org/articles/view/basic-pagination-overview-3
to try out the pagination feature in 1.2.

However, I get the error:
Warning (512): Method PaginatorHelper::count does not exist [CORE/cake/
libs/view/helper.php, line 148]

I've tried on my application and a fresh installation and get the same
error in both cases.

Searching through Google group and googling doesn't help.

I've tried other methods such as numbers() and get the same error.

Any advise on how to solve this?

Thanks!
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Building a forum plug-in

2007-11-02 Thread Cheeze

I've seen many projects with a lot of talk at the beginning but
nothing concrete was done about it. Perhaps the guys who really need
should start something first? And if there are people who want more
features, then more will start contributing? Of course documentation
must be good ;)

On Nov 1, 4:21 am, Zoltan <[EMAIL PROTECTED]> wrote:
> I was thinking of putting something simple together and posting it.
> Unfortunately, I just don't have time to work on it at the moment,
> since I first posted, I found myself getting quite busy on non-Cake
> projects.
>
> Zoltanwww.yyztech.ca
>
> On Oct 31, 12:14 pm, saltymule <[EMAIL PROTECTED]> wrote:
>
> > I think it might be cool.
> > I've been looking for something like that, and if we need to make it
> > for ourselves than we might as well share it.
> > How much time would we spend per week on it?
> > Also a Dan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to Retrieve Query() Results

2007-10-22 Thread Cheeze

Ah... I seem to have found the answer.

$this->ProductsUsers->getAffectedRows() will return non-zero for any
changes made. Can use this to check for successful operation.

On Oct 23, 10:19 am, Cheeze <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have some questions on getting results of a query function call.
>
> E.g.
>
> $this->ProductsUsers->query("UPDATE `products_users` SET
> `modified`=NOW() WHERE `product_id`='{$pid}' AND `user_id`='{$uid}'");
>
> How do I know whether the operation completed with any errors? E.g.
> whether this statement created any errors or was it successful?
>
> I checked the return value of query(). But because it is not a SELECT
> call, nothing is returned i.e. the array is empty.
>
> I checked getNumRows() but it returned 0 even if the operation was
> completed successfully.
>
> The above statement is made in the ProductsController. I created a
> model for the join table because I store some attributes in the join
> table. I then gave ProductsController access to the ProductsUsers
> model using:
> $uses = array('Product', 'ProductsUsers')
>
> I'm using Cake 1.1
>
> Thanks in advance!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How to Retrieve Query() Results

2007-10-22 Thread Cheeze

Hi,

I have some questions on getting results of a query function call.

E.g.

$this->ProductsUsers->query("UPDATE `products_users` SET
`modified`=NOW() WHERE `product_id`='{$pid}' AND `user_id`='{$uid}'");

How do I know whether the operation completed with any errors? E.g.
whether this statement created any errors or was it successful?

I checked the return value of query(). But because it is not a SELECT
call, nothing is returned i.e. the array is empty.

I checked getNumRows() but it returned 0 even if the operation was
completed successfully.

The above statement is made in the ProductsController. I created a
model for the join table because I store some attributes in the join
table. I then gave ProductsController access to the ProductsUsers
model using:
$uses = array('Product', 'ProductsUsers')

I'm using Cake 1.1

Thanks in advance!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: find all by relationship

2007-10-22 Thread Cheeze

I second Jon's suggestion. Most straightforward.

On Oct 22, 8:29 am, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> > I've been looking for a while but I can't seem to find the solution.
>
> > Basically, I have Countries, which has many States, every State has
> > many Cities, and every City has many Users.
> > I'm trying to get all the Users in a specified State, and I don't want
> > to put a state_id in the user table, because it's relative to the city
> > hes.
>
> I would do this with 2 queries. First, get the IDs of all the cities
> in the state, then get all the users that belong to those Cities, eg:
>
> $cities = $this->User->City->generateList(array('City.state_id'=>$state_id));
>
> $users = $this->User->findAll(array('User.city_id'=>$cities));
>
> hth
>
> jon
>
> --
>
> jon bennett
> w:http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: pastemonkey.org now live!

2007-10-03 Thread Cheeze

seems cool!

On Oct 2, 7:29 am, "Tane Piper" <[EMAIL PROTECTED]>
wrote:
> Hey folks,
>
> I'm pleased to announce the full service of Paste Monkey is now
> running athttp://pastemonkey.org.  This is a collaborative pastebin
> developed in CakePHP 1.2, and running AJAX with jQuery.
>
> It is still in the beta stage, but very functional, with features such as:
>
> * Use of Live Query and jQuery UI to create a rich interface
> * A permalink for both the user
> (http://pastemonkey.org/add/yournamehere) and for pastes
> * Expiry time for pastes (Day, Week, Month or Never)
> * The ability to edit a paste, and download a diff patch file, as well
> as download the origional source
> * Live Search, where you type in the word you are looking for in the
> source, tab off the field and it will be searched and highlighted for
> you
> * SPAM CAPTCHA using ReCaptcha (a captcha project with a purpose,
> check outhttp://recaptcha.net)
> * You are able to search by tags and by language to find similar posts.
>
> Hopefully you will all find it useful, and I am happy to offer
> subdomains to any communities that may want to use the bin (or you can
> host your own if you dare!), and please submit any bugs or
> enhancements athttp://code.google.com/p/pastemonkey/issues/list
>
> --
> Tane Piper
> Blog -http://digitalspaghetti.me.uk
> AJAX Pastebin -http://pastemonkey.org
>
> This email is: [ x ] blogable [ ] ask first [ ] private


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Beginner questions about the blog tutorial

2007-07-06 Thread Cheeze

Interesting observation. I didn't see that when I first started.

Anyway I just use $this->Model->save($this->data) for both Add and
Edit methods. As far as I know, the key difference is the presence of
a hidden $id field in the form.

On Jul 4, 6:57 pm, "vinh.chuc" <[EMAIL PROTECTED]> wrote:
> Hi !
> I'm learning cakephp, i juste read the blog tutorial, but there is
> something i didn't understand :
>
> in the add method, this line saves the data to the model :
>
> $this->Post->save($this->data)
>
> while, in the edit methode, it's this line :
>
> $this->Post->save($this->data['Post'])
>
> What's the exact difference between the two ?  why "data" fot the add
> method and "data['Post']" for the edit one ??
>
> thanks


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: The Cake is Rising

2007-05-21 Thread Cheeze

Kudos to the Devs for another great release!

On May 21, 3:09 pm, "Tane Piper" <[EMAIL PROTECTED]>
wrote:
> Very nice release on 1.2.  I had a little surprise when trying to bake
> a new application, but I prefer the new console.
>
> Also, can't wait to test out the new cache stuff.  Is there comparison
> of each one's features, speed, etc anywhere?
>
> Keep up the good work guys and girls!
>
> Tane
>
> - Original messaage -
> The latest bug fix release of 1.1.15.5134 is read...
>
> On 5/20/07, Larry E. Masters aka PhpNut <[EMAIL PROTECTED]> wrote:
>
> > The latest bug fix release of 1.1.15.5134 is ready [1]. Check out the
> > changelog[2] to see what was fixed. The latest release of
> > 1.2.0.5137alpha[3] moves closer to beta with the addition of the new
> > Cache Engines, Console
> > Shells and the Translation behavior.
>
> > You may notice fewer queries in both 1.1.15.5134 and 1.2.0.5137alpha the use
> > IN() in hasMany queries. This should help to speed up some of the bigger
> > associations.
>
> > The Cache Engines include apc, memcache, xcache, file, and model. When you
> > are ready to speed up your application, you can have a look at one of these
> > engines. Special thanks to Jiri Kupiainen aka aakour for his hard work.
>
> > The Console Shells are a new way to access Cake based scripts from the
> > command line. A 'cake' bash and dos wrapper have been provided to make the
> > commands shorter and these can be placed in your PATH to be accessed from
> > anywhere. All the scripts previously located in /cake/scripts have been
> > refactored to use this new functionality. The Bake shell provides a good
> > example of how you can separate your code to make it more maintainable and
> > extensible.
>
> > The Translation behavior also made it into the core in this release. This
> > allows you to maintain copies of dynamic information in multiple languages.
> > Special thanks to Jitka Koukalova aka poLK for her hard work. With the
> > addition of this behavior i18N should be complete in 1.2.
>
> > Security: If you add the Security component to your AppController or any
> > other controller, all your forms will expect a token and maintain a hash of
> > the hidden values so they can not be changed. If you have difficulty with
> > your ajax forms refer to you can disable security[4].
>
> > Deprecated methods[5] were removed from 1.2. So, this means if you may need
> > to use an earlier version of 1.2 if you have not been keeping up with the
> > latest releases.
>
> > Read the 1.2 changelog for complete details[6].
>
> > We have some more changes before we can release the Beta. The most major
> > change will be the transition from defines in core.php to the $config array
> > used by the Configure class. This will be the last release that allows for
> > defines inside of core.php. Moving away from defines provides much greater
> > flexibility. The next release will also see the inclusion of a Session
> > model, which will allow easier access to the database session handling.
>
> > We hope everyone enjoys this latest release. Though some people in the
> > community don't like polls, we still want to thank everyone who voted in the
> > latest one. The results pretty much speak for themselves.
>
> > [1] Download 1.1.15.5134:
> >http://cakeforge.org/frs/?group_id=23&release_id=232
> > [2] 1.1.x.x branch change log:
> >https://trac.cakephp.org/wiki/changelog/1.1.x.x
> > [3] Download 1.2.0.5137alpha:
> >http://cakeforge.org/frs/?group_id=23&release_id=234
> > [4] Disabling Security:https://trac.cakephp.org/changeset/4978
> > [5] Removed methods:https://trac.cakephp.org/changeset/4981
> > [6] 1.2.x.x branch change log:
> >https://trac.cakephp.org/wiki/changelog/1.2.x.x
>
> > --
> > /**
> > * @author Larry E. Masters
> > * @var string $userName
> > * @param string $realName
> > * @returns string aka PhpNut
> > * @access  public
> > */


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: leading slash problem

2007-05-13 Thread Cheeze

Maybe you can share with us which line did you add to .htaccess?

On May 13, 3:09 am, bingo <[EMAIL PROTECTED]> wrote:
> nevermind, i was able to solve the problem...the problem was with
> my .htaccess
>
> on my localserver, the files had a different structure and because of
> that I add another line in .htaccess and that was giving the problem
>
> Regards,
>
> On May 12, 9:56 am, bingo <[EMAIL PROTECTED]> wrote:
>
> > hi,
>
> > Today I moved my development from local windows machine to a remote
> > linux server and seems to getting some installation issues.
>
> > On my remove server, the setup is as follows
> > /home/
> > cake/
> > app
> > cake
> > vendor
> >  public_html/ <-- webroot
> >  js
> >  img
> >  css.
>
> > The problem is my website get loaded but without images, css, and
> > javascript. I checked the image url and the problem is with the
> > leading slash.
>
> > Checkouthttp://host201.ipowerweb.com/~findnwri/
>
> > The path to all my images in the final generated webpage have leading
> > slash. for instance
> > 
> > >. Same problem goes with js, css, etc
>
> > if I change src="img/logo.png" ...then the images are displayed
> > properly.
>
> > I tried searching a lot for the problem of leading slash but didn't
> > find any relevant topic. Please help me.
>
> > Regards,
> > Ritesh


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How can I do install xinha to CAKEphp

2007-05-11 Thread Cheeze

It's fairly straightforward. Just put the Javascript files (the entire
Xinha folder) into the Javascript (js) directory. Link the related
Javascript code in your layout file (or at least on those pages which
you want the editor function).

Finally get the ID names of the fields that you want to Xinha-enable.
Add these names to the configuration file for Xinha.

Is this clear enough?

On May 10, 5:05 pm, tekcorap <[EMAIL PROTECTED]> wrote:
> dear masters,
> I want use xinha text editor in my all textarea. How can install xinha
> web editor in my project?
> thanks your helps.
> tek.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Strange behaviour when saving data

2007-05-04 Thread Cheeze

Have you tired calling the model's create() method before calling the
save() method? create() initializes the model for saving a new record
(http://api.cakephp.org/
class_model.html#2edb2497b980ad65e76ddda6d2494d97)

On May 3, 8:33 pm, ifcanduela <[EMAIL PROTECTED]> wrote:
> I'll follow your advice and paste the relevant code :)
>
> The Region model:
> 
>
> class Region extends AppModel
> {
> var $name = "Region";
>
> var $validate = array(
> 'name' => VALID_NOT_EMPTY
> );
>
> var $hasMany = array(
> 'Country' => array(
> 'className' => 'Country',
> 'foreignKey' => 'region_id'
> )
> );
>
> }
>
> The Country model:
> 
>
> class Country extends AppModel
> {
> var $name = "Country";
>
> var $validate = array(
> 'name' => VALID_NOT_EMPTY
> );
>
> var $belongsTo = array(
> 'Region' => array(
> 'className' => 'Region',
> 'conditions' => '',
> 'order' => '',
> 'foreignKey' => 'region_id'
> )
> );
>
> var $hasMany = array(
> 'Travel' => array(
> 'className' => 'Travel',
> 'foreignKey' => 'country_id'
> )
> );
>
> }
>
> The add() action in countries_controller:
> 
>
> function add($region_id = null)
> {
> if (!empty($this->data))
> {
> $this->data['Country']['region_id'] = $region_id;
> if ($this->Country->save($this->data))
> {
> $this->flash('New country added.', '/countries/index/' .
> $region_id, 2);
> }
> }
> else
> {
> $this->set('region_id', $region_id);
> }
>
> }
>
> And the add.thtml view:
> 
>
> New contry
>
> 
> *Country name:
> input('Country/name', array('size' =>
> '25')) ?>
> tagErrorMsg('Country/name', 'A name is
> mandatory.') ?>
> 
>
> 
> submit('Save'); ?>
> 
>
> All fields marked * are mandatory.
> 
> 
>
> If thre's something missing, just tell me.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: creating static links to documents

2007-04-16 Thread Cheeze

Hi,

You mentioned that you place the controllers in a sub-domain. Do you
mean something like this:

subdom.example.com/admin/userscontroller?

If not, can you provide an example?

On Apr 16, 2:13 am, "jyrgen" <[EMAIL PROTECTED]> wrote:
> > I get missing controller errors
>
> > "AdminusersController" should be Users Controller and so on...
>
> even though the problem described above has turned into another one,
> i need some help or instructions to get my cake URLs fixed. where to
> patch what ?
>
> Where does the derivation of controller names take place? It seems
> obvious that
> the subdomain string is taken into account here.
>
> thank you so much !
>
> jyrgen


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: adressing css-files (for yui) outside the css folder

2007-03-20 Thread Cheeze

> $this->controler->webroot.$this->yui_folder . DS . $file . DS .
> $file . ".css";

I don't understand what you are trying to achieve with this line. What
kind of result do you expect to get from this line?



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: my .htacces file

2007-03-17 Thread Cheeze

I'm not very sure of what the cause of your problem might be, so I'm
just gonna suggest some things you can check.

- Is .htaccess in the folder of your cake directory in your server
root?
- Have you made sure the .htaccess files are in the app and webroot
directories?

In any case I don't think accessing 
www.example.com/cake/articles/index.php/articles
will work. If the rewrite rules are working correctly, you should see
the index page.

On Mar 16, 10:18 pm, Ámon Tamás <[EMAIL PROTECTED]> wrote:
> Where is your app? In the cake/app?
> (My english is poor too :)
>
> tekcorap írta:
>
>
>
> > Hi masters,
>
> > I have one question. my cake directory is under my root directory
> > ( e.g.www.example.com/cake). and  my .htaccess is
>
> > 
> >RewriteEngine On
> >RewriteRule^$ app/webroot/[L]
> >RewriteRule(.*) app/webroot/$1 [L]
> > 
>
> > when I into my site (www.example.com/cake) I get this error;
>
> > Bad Request
> > Your browser sent a request that this server could not understand.
>
> > Client sent malformed Host header
>
> > and I use "/" (www.example.com/cake/) I get another error
>
> > Not Found
> > The requested URL was not found on this server.
>
> > but when I use index.php is work (www.example.com/cake/index.php/
> > articles ) is work *-)
> > I dont want use /index.php/articles/ I want use directly
> >www.example.com/cake/articles
>
> > my mod_rewrite engine is open.
> > What can I do solve this problem?
> > (sorry my english is very poor :( )
>
> > Thanks your helps.
>
> --
> Ámon Tamáshttp://linkfelho.amon.hu


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: My application using cakePHP

2007-02-16 Thread Cheeze

Very nice effort. I can see it is feature packed with a good effort at
incorporating JavaScript effects. But maybe it is the JavaScript that
is slowing the site down?

On Feb 15, 4:49 pm, "Eric C Blount" <[EMAIL PROTECTED]> wrote:
> Slow, so very slow (see traceroute at the bottom). Makes it hard to actually
> try your application.
> But very interesting.
>
> If it's an academic work, will you be releasing this as Open Source? Can we
> expect a couple of Bakery articles on the techniques you used to build it?
> Please don't forget to give back to a community that has worked hard to
> provide the framework! :-)
>
> Here is the traceroute from the point it leaves my ISP. I think there's a
> router problem (see the repeating IP address on steps 16 and 18).
>
>   735 ms36 ms36 ms  p1-1.tokjx-cr2.ix.singtel.com [
> 203.208.173.41]
>   8   164 ms35 ms36 ms  203.208.172.190
>   9   225 ms36 ms61 ms  203.208.168.98
>  10   240 ms   224 ms   245 ms  203.208.149.113
>  11   221 ms   226 ms   245 ms  203.208.149.73
>  12   246 ms   220 ms   313 ms  ge-0-0-0.gw2.jkt.ipbb.indosat.com [
> 202.93.46.113]
>  13   334 ms   324 ms   224 ms  203.208.143.250
>  14   346 ms   315 ms   324 ms  gi-1-1.271.co2.en.ipbb.indosat.com [
> 202.93.46.6]
>  15   315 ms   320 ms   316 ms  202.152.164.206
>  16   419 ms   373 ms   420 ms  202.93.243.238
>  17   327 ms   423 ms   329 ms  202.93.243.42
>  18   323 ms *  440 ms  202.93.243.238
>  19 * 3426 ms * dhe-202-67-8-20.static.dhecyber.net.id [
> 202.67.8.20]
>  20 *** Request timed out.
>  21 *** Request timed out.
>  22 *** Request timed out.
>  23 *** Request timed out.
>  24 *** Request timed out.
>  25 *** Request timed out.
>  26 *** Request timed out.
>  27 *** Request timed out.
>  28 *** Request timed out.
>  29 *** Request timed out.
>  30 *** Request timed out.
> Trace complete.
>
> HTH,
> Eric
>
> On 2/14/07, Riky Kurniawan <[EMAIL PROTECTED]> wrote:> Hi there,
>
> > I've worked application on my thesis.
>
> > We build virtual office application using Cake. It has features such as
>
> Timeline, create project wizardly, sms gateway, project timeline (gantt
> chart), project history (PDF report),  staff management, client management,
> skill and position management, backup file and database to zip file, and
> build with ajax approached.
>
> > If you're interesting, you can try it at:
>
> http://www.herowannabe.com/vyroo/
>
>
>
> > Any comment is appreciated
>
> > I'm sorry if my English is bad, coz english is not my native language
>
> > Thanx in advanced
> > --
> > 
> >http://riky.kurniawan.us
> > 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Regarding http://cakephp.org page layout

2007-02-10 Thread Cheeze

Maybe the client shouldn't need to know this in the first place. He/
She probably doesn't have enough knowledge about PHP or frameworks to
be in a position to know about this.

>From my experience, most clients just want things to get done - they
don't want to (or don't need to) know how those things are done. I'm
guessing most of us want people to know that we are using such a great
framework ;) so we want to let everyone else know. But for the purpose
and intent of the project, the client need not get involved in the
technical details. When they do, they get involved in making
uninformed decisions that dictate the project, usually affecting the
project's progress negatively.

Just my 2 cents worth.

Cheeze

On Feb 10, 8:59 pm, "NOSLOW" <[EMAIL PROTECTED]> wrote:
> Ask your client this:
>
> "Do you replace your keyboard every time you misspell a word?"
>
> When he answers "of course not", reply back with:
>
> "well I don't replace my framework every time a page doesn't
> display correctly in a particular browser!"
>
> :P
>
> NOSLOW


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake 1.2

2007-01-14 Thread Cheeze


How about an incremental documentation process? I'm not even sure what
exactly I'm talking about here, haha.

Right now I'm helping document the code (and hopefully a developer/user
guide in the future) for Bakesale with a few hours of work every week.
Been really busy but I still want to contribute in some ways.

So what I do is to document two files every week (at least). With the
complexity of a framework I guess that'll take longer. But my point is
maybe some system can be put in place such that the documentation can
be put up bit by bit?

Just my 2 cents worth.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: findAll() memory exhaustion

2006-09-22 Thread Cheeze

Ah! That's new!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: findAll() memory exhaustion

2006-09-22 Thread Cheeze

Ah! That's new!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Runniing application in different Time zones.

2006-09-19 Thread Cheeze

Appreciate the update. It'll help other people as well.

Just wanna check with you - by 'setting the cookie to domain wide root
path' do you mean you set the cookie in AppController?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Copying a db record

2006-09-19 Thread Cheeze

Very interesting indeed! Is this considered a bug? Maybe it ought to be
tracked? If correction of this bug isn't possible, maybe it should be
placed in somewhere obvious? Will help save a lot of headaches for
those unaware - even the veterans.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Session->Write() problems

2006-09-13 Thread Cheeze

I'm just throwing up suggestions here.

Maybe the session folder is not set in your php.ini file?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Import Existing Sessions into CAKE

2006-09-11 Thread Cheeze

Bumps for you. I would be very interested to know how to do this as
well.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: data associations

2006-08-28 Thread Cheeze

I would like to find out more about this as well. Any takers?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Notice: Undefined variable:

2006-08-11 Thread Cheeze

Argh!

I've found the problem. The reason being that I put the whole portion
of the code for the edit() function within an if-clause.

function edit($id=null)
{
if (!is_null($id)
{

}
}

When the form is returned to the same file for processing, it comes
without the parameter $id. That's why the variable $catedata is
undefined!

Stupid!!!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Notice: Undefined variable:

2006-08-10 Thread Cheeze

Hi,

I've got quite a fundamental problem when using Cake. I've searched
through the postings but no appropriate solution.

It's like this:

I've created an edit function in my controller and a corresponding
edit.thtml file. I've got 2 simple tables (abbreviated):

products (
  id int(11),
  name varchar(250),
  category_id int(11),
  price decimal(19,2),
  created DATETIME
  modified DATETIME
);

categories (
  id int(11),
  name varchar(250),
  parent_id int(11),
  created DATETIME
  modified DATETIME
);

PRODUCT belongsTo CATEGORY.
CATEGORY hasMany PRODUCT.

In the function edit() I sent two variables to the edit.thtml by doing
this:

$this->params['data'] = $this->Product->read();
$this->set('catedata',
$this->Product->Category->generateList());

In the edit.thtml view, the problem I got was with the $catedata
variable.
echo $html->selectTag('Product/category_id', $catedata,
$html->tagValue('Product/category_id'));

I put it into a select tag like the above. When I went to the edit
page, it worked fine. However, when I tried to save the edited data, it
gave me an

"Notice: Undefined variable: catedata in
/home/gsa/public_html/cake/app/views/products/edit.thtml "

error. The data was not saved to the database.

I've double-checked everything but everything seems to be okay. Am I
missing something that I should've done?

Any help is appreciated :)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---