Questions tagged with t

3 answers

0 votes

Asked by new2cakephp, on 12/11/09 in Views

changing HTML/CSS layout and graphics

Hi all,

I have a cakephp script for an online store and I would like to change the default layout and design of the website. Is it possible to change the website design using wysiwig editor and what is the process for doing this? Also, do I have...

6 answers

2 votes

Asked by trevorsg, on 30/10/09 in Models

What do you think of my Validation tool?

I got frustrated with long complicated validation rules in my models, and the limited functionality of Bake's validation generation, so I made my own tool. If I get enough support I will clean it up, make it pretty, and probably get it its own...

4 answers

1 vote

Asked by bbender, on 12/11/09 in Controllers

Error: Controller could not be found.

Greetings All,

Thanks to the answer to my other question, I now have my app up and running. yay! Anyway, now I was moving on to replacing the default cake page and replacing it with a page more formatted to my site (assuming it to be in...

2 answers

0 votes

Asked by fly2279, on 11/11/09 in Models

How to find which combination Clubs is being used by Children?

Child hasMany Membership

Membership belongTo Child, Club

Club hasMany Membership

Basically Child HABTM Club with the Membership being the join table,

like at the bottom of this section:...

1 answer

0 votes

Asked by ojtibi, on 30/10/09 in Shells

Creating schemas for models on different databases

Hi,

Here's my question, I was able to create schemas a few months ago but stopped because I made some custom models for tables on a different database, and for this particular example, a PHPBB surrogate model under the main app, same database...

3 answers

0 votes

Asked by phpcurious, on 30/10/09 in Installation / Configuration

How do you configure a cake app to run in a Subdir?

I just created a new cake app in a subdir in our company's web server.

My problem is I don't know how to configure the web app to run on a Subdir.

Can you please tell me how to do it?

2 answers

0 votes

Asked by ojtibi, on 30/10/09 in

Odd code in sanitize.php 1.2.5 line 223?

Google Groups original topic

As the poster on the group says, the following code is quite odd:


$data = str_replace("'", "'", str_replace("!", "!", $data));

Any ideas why that line appears in the file?

1 answer

0 votes

Asked by marcusj, on 11/11/09 in Helpers

FormHelper ignores 'class' attribute for hidden fields

When I try to pass a class attribute to a hidden field, FormHelper ignores that. My code:


<?php echo($form->input('Foo.bar', array('type' => 'hidden', 'class' => 'baz')); ?>

FormHelper::input() calls[1] FormHelper::hidden() where name and class...

2 answers

0 votes

Asked by Lemon, on 31/10/09 in Models

How can i disable counterCache?

I need to create 1000 model records and i dont want counterCache to update the count in the parent model each time i add a record.

Is there an easy way to disable counterCache and enable it again afterwards?

1 answer

0 votes

Asked by lenzcom, on 31/10/09 in Helpers

How can i declare a ' atom:link ' with ' rel = "self" ' in my RSS-Feed?

Hi there,

just searching for hours now to get it fixed.

How can i declare a ' atom:link ' with ' rel = "self" ' in my RSS-Feed?

I'm using this layout in "app/views/layouts/rss/default.ctp":


<?php
echo $rss->header();
if (!isset($documentData)) {
   ...

2 answers

0 votes

Asked by lenzcom, on 31/10/09 in Models

How can i write to sqlite-memory:db?

Hi,

how must my db-config look like to write into sqlite memory:db?

thanks...

1 answer

0 votes

Asked by TheWorldofDan, on 1/11/09 in Models

Multi-model validation while $persistModel = true

I'm getting close to being finished on my site, and so after looking up ways of speeding up my site I found a tip to make $persistModel = true in my AppController. This seems to be working fine, until I need some multi-model validation.

I've got a...

1 answer

0 votes

Security::cipher()

I'm using the AutoLogin component Miles Johnson to add a 'remember me' feature to my login page.

All the while that debug is set to 0, it seems to work fine, but as soon as debug is higher than 1 I get the following error message at the top of...

3 answers

0 votes

Asked by tPl0ch, on 4/11/09 in

Eine deutsche Test Frage

Das ist eine Frage für "german" :)

Wann wird die Seite denn komplett übersetzt sein?

2 answers

-1 votes

Configure::write('Security.level', 'low');

Other than adjusting the length of the session, what else does the Security.level setting control? I want to set mine to either medium or low to lengthen the session period, but don't want to be putting my site under any undue risk.

1 answer

1 vote

Query a second database

Hi, sorry if this is a really newbie question, but how can I get Cake to use a second database?

I've gone into database.php and set-up the second database:

	var $default = array(
		'driver' => 'mysql',
		'persistent' => false,
		'host' =>...

1 answer

0 votes

vBulletin login system

Hi, I'm working on a system which will let Auth use the user table of a vBulletin forum.

The idea behind it is simple enough, you just need to point the User model at the forum's user table, modify the hashPasswords() function to take into account...

0 answers

0 votes

Asked by lvotusk, on 12/11/09 in Models

nested sql vs nested Set::extract?

Without going in to too much detail, I have found myself in a bit of a dilemma.

I have got some data that I need to sort, but the way that I need it sorted, it is not going to be doable by a single sql call.

The options I have tried are splitting...

4 answers

1 vote

Asked by monsat, on 13/11/09 in Models

ClassRegistryクラス についてはどこで学べますか?

Controller や Model で、動的にModelを呼ぶときは、ClassRegistry::init()が良いと言われていますが、それについての情報があまり見つかりません。

使い方は、以下の通り簡単なので、問題ないのですが、ClassRegistoryクラス全般についての理解を深めたいと思っています。

どこかにまとまっていたりしますか?


$User = ClassRegistry::init('User');
$users =...

2 answers

2 votes

Asked by Sukhwinder, on 13/11/09 in Behaviors

Containable behaviour, it causes multiple queries, instead of one big query

Cakephp containable behavior causes multiple queries to fetch required data, which causes a very much performance degradation.

See This Example

Is there any work around for this? if no, then there is no use of containable.

Thanx & regards

<< previous 1   2   3   4   5   6   7   8   9