All Questions

RSS

0 answers

0 votes

Asked by zbhddd, 1 hour, 47 minutes ago in Shells

Cake console not working on server

When I try to execute a shell or simply going through the Console and typing cake, I get these errors messages :


PHP Notice:  Undefined index:  tag in path/lib/Cake/Console/ConsoleOutput.php on line 202
PHP Notice:  Undefined index:  emergency in...

18 answers

0 votes

Asked by gmchun83, on 10/5/10 in Controllers

How display 5 latest post by using find()?

Hai,

I want to display only 5 latest post rather display only one latest post by using 'first'.

Please refer following for my code:


function getlatest() {
		return $this->News->find('first', array('order' => array('created' =>...

8 answers

0 votes

Asked by mmcdonald, on 22/9/12 in Installation / Configuration

I cant get CakePHP to work on my webserver

I have installed CakePHP to use a script I purchased from CodeCanyon.

The OS is Windows Server 2008

I am using XAMPP

CakePHP V 1.3.8 (The purchased script requires this version)

The websites root is C:/xampp/htdocs

I have got to the 'success' screen...

6 answers

0 votes

Asked by adi130987, on 13/9/11 in Installation / Configuration

Warning (512) /tmp/cache is not writable

Hello!

I have a problem with cakephp tmp permitions. I have a fedora 14 virtual machine and i deployed my application developed with cakephp, but I'm getting 3 warnings:

Warning (512): /var/www/html/movies-reviews/app/tmp/cache/ is not writable...

5 answers

0 votes

Asked by sipman, on 18/12/12 in Models

How to get same data from add to index ?

hello guys,

I'll try and descripe my problem, but i dont really know whats going wrong so hard to explain.

BUT here is the case, im following along an OLD tutorial i bought from a website called www.phpvideotutorials.com the tutorial is based on...

4 answers

0 votes

Asked by pgandul, on 24/5/12 in Models

Created and modified fields with SQL Server

Hi, I'm having a problem with 'created' and 'modified' fields when I try to insert data in a SQL Server database. CakePHP try to insert data as string and SQL Server says "bad convertion from varchar to datetime".

Thank you!

49 answers

0 votes

Asked by , on 7/10/11 in Helpers

How to make an instance of AuthComponent within the custom helper?

Hi,

I'm using CakePHP 2.0 RC3.

I would like to make an instance of AuthComponent within the custom helper for acl.

I wrote as follows in the custom helper.


function beforeRender() {
	App::uses('AuthComponent', 'Controller/Component');
	$this->Auth =...

4 answers

0 votes

Asked by niceboy, on 28/11/12 in Models

download files with php curl directly and remotly

im looking for script that i put in my site and make links directly and remotly for download vistors look i put script it in my host then visitor see the page and put his download link into the text box and submit. then php script ( using curl...

1 answer

0 votes

Asked by samlowry80, 2 days, 7 hours ago in Controllers

How can I forbid to get back after submitting a form?

Hi,

I'd like to disable the possibility of going back after sending a form. For example, after sending (item/add) I go back to index. If I click back button, I thougt I would see a message like "the session has expired" or something like that, but...

1 answer

0 votes

Asked by poli, 1 day, 12 hours ago in Models

Unable to import DataSource class .DboMysql

Hi everyone,

I recently started working on an existing cakephp v2.x application.

I keep getting "ConnectionManager::loadDataSource - Unable to import DataSource class .DboMysql".

File "./cake/libs/model/datasources/dbo/dbo_mysql.php" exists and is...

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

How does CakePHP Questions work?

CakePHP Questions is easy to use: Register and login or directly login using OpenID and just ask your question!

After you ask your question you just need to wait until you have got some answers and pick the correct answer.

Other users might help you by finding the right answer by voting and giving comments.