I'm using AMPPS with Yosemite for my first CakePHP app. I downloaded
CakePHP 3 using the AMPPS installer and the browser successfully renders
the default home without any errors or issues. When I try `cake bake all
users` (as instructed in CakePHP tutorial) the console outputs the raw code
i
>
> No, it's on a hosted server and I don´t have permissions to rename the
> database (or create a new one).
>
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
But this seems to mess up my connection and instead I get this error:
*Error: *SQLSTATE[42000] [1044] Access denied for user 'XXX'@'YY.YY.YY.%'
to database '`XXX.se`' requires a database connection
Is there a better place to inject the escaped database name?
/Johan
--
L
connection and instead I get this error:
*Error: *SQLSTATE[42000] [1044] Access denied for user 'XXX'@'YY.YY.YY.%'
to database '`XXX.se`' requires a database connection
Is there a better place to inject the escaped database name?
/Johan
Den torsdagen den 20:e sept
d older posts saying that CakePHP does not support database
names with reserved characters in them.
So: is this still true in CakePHP 2.2.1? And are there any workarounds
since I cannot change the database name?
Best regards,
Johan
--
Like Us on FacekBook https://www.facebook.com/CakePH
ing a connected
route in the routes.php file.
Cheers,
- Johan
On Tue, Aug 2, 2011 at 3:54 PM, john lyles wrote:
> I'm building a blog plugin for CakePHP. It is called 'blog'.
>
> I am following the manual on plugin routing but my links won't work.
> http://boo
CakePHP 2.0 is not yet finished. If you migrate now to 2.0 you will probably
have to update your site with each release until they get to the stable
version.
Cheers,
- Johan
On Fri, Jul 29, 2011 at 1:37 AM, 24z wrote:
> Dear group,
>
> I've just build my first CakePHP app (gpc.fm
null));
Router::connect('/m/:controller/*', array('action' => 'index', 'prefix' =>
null));
Router::connect('/m/', array([YOUR MOBILE WEBROOT HERE]));
This will redirect all /m/* calls to your original actions through a faux
prefix (m).
them in the pages controller. Read more about passing arguments on
the Router configuration section of the Cookbook:
http://book.cakephp.org/view/948/Defining-Routes
Cheers,
- Johan
On Tue, Jul 19, 2011 at 8:55 AM, heohni <
heidi.anselstet...@consultingteam.de> wrote:
> Can anyone pl
You can use a third-party tool such as POEdit to scan your sources for i18n
strings. You can define which files to scan and what functions to search.
Cheers,
- Johan
On Tue, Jul 5, 2011 at 5:57 PM, Carlos Eduardo Sotelo Pinto <
carlos.sotelo.pi...@gmail.com> wrote:
> Hi people
>
If you are willing to pay for it, there is a company that translates .po
files, among other frameworks:
http://www.icanlocalize.com/site/
Cheers,
- Johan
On Mon, Jul 4, 2011 at 12:46 PM, Salines wrote:
>
> Try http://translate.umpirsky.com/
>
> On 1 srp, 17:00, Mati wrote:
>
I don't know why would you want that, because that will be a pain in the ass
for the users and there is no way to do it in a bullet-proof way:
- You can check the REFERER provided on each request to ensure that the user
is coming from another page of your server. The problem is that users can
fake
Could it be that this second page is coming through an ajax request?
This type of error usually pops up when you try to use the PaginationHelper
but no pagination has been done on the controller.
Cheers,
- Johan
On Wed, Jun 29, 2011 at 9:12 PM, Ed Propsner wrote:
> I've been poking aro
You can use a different view, even in a subdirectory (or in a totally
different directory if you play with relative paths) by using the
Controller's render() method:
http://book.cakephp.org/view/980/render
Cheers,
- Johan
On Wed, Jun 29, 2011 at 2:53 AM, nOLL wrote:
> Hi,
>
> I
be INNER and to group the find results by Product.id.
[1] http://book.cakephp.org/view/1047/Joining-tables
[2]
http://web-development-blog.co.uk/2010/09/14/cakephp-habtm-find-with-conditions-and-containable-behavior/(first
example)
Cheers,
- Johan
On Wed, Jun 29, 2011 at 9:54 AM, Cengiz
change the current behavior.
Cheers,
- Johan
On Tue, Jun 28, 2011 at 1:49 AM, Krissy Masters
wrote:
> I am submitting a value thru a form, based on the value a var is passed
> to the query.
>
> ** **
>
> function getValueSub( $data) {
>
> $primary = ( $data['
d'),
'conditions' => array('Nationality.language_id LIKE ?' =>
2) // Do you really need to use LIKE instead of equals?
)
)
)
);
If you require the Nationality to be an inner join, you may need to
rebind the models on runtime or add an explicit
d'),
'conditions' => array('Nationality.language_id LIKE ?' =>
2) // Do you really need to use LIKE instead of equals?
)
)
)
);
If you require the Nationality to be an inner join, you may need to
rebind the models on runtime or add an explicit
quot;recursive" => 2));
>
> "recusive" defaults to 1, meaning it will get data from news and its
> associated models (organisations_user). That's why you don't have User
> and Organisation. By setting it to 2 find will also get fields from
> models associated to
Ive got a small problem with my cakephp app...
I have in my design a habtm as a central table wich several other
table relates to.
This due to that Users can be members of different organisations over
time
news belongsTo organisations_user
organisations_user hasOne user, organisation
user hasAnd
Well, there are thousands of ways to render information at your
screen, but here are some 'CakeCorrect' methods:
1) Put all the code at your view (fastest to render, but hard to
maintain)
2) Put all the snippets in elements and print those at your view (way
slower, but easy to edit. also re-usabl
With the example url (http://myapp.com/my_controller/my_rss/user_hash)
you should create a controller like this:
set('data', 'No UserHash defined');
}
else
{
$data = $this->MyModel->findAll(array('user_hash' =>
$user_hash));
$this->set('data', $data
issuers;
}
And keep your controller and view the same.
Johan de Jong
On 24 feb, 14:24, Ronald <[EMAIL PROTECTED]> wrote:
> I know that, but the data does not come from my database, but from an
> API that delivers it in a specific format.
> I just need to know what I have to do
The following works for me:
$this->Dealer->Country->displayField = 'name';
$countries = $this->Dealer->Country->find('list');
$this->set('countries', $countries);
This will return an array like this:
Array
(
[1] => Netherlands
[2] => Belgium
[3] => Germany
[4] => France
)
The
s->pagination[$key] = $val;
}
$this->set('result', $this->paginate());
I hope this will help you out!
Johan de Jong
On 18 jan, 22:05, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Jan 18, 2008 1:54 PM, [EMAIL PROTECTED]
>
> <[EMAIL PROTECTED]>
ta = $this->paginate();
$this->set('results', $data);
}
/* more functions and stuff */
}
}
?>
The above script works, but when I remove one of the # it gives an
error, becuase it doesn't use the Occassion Model.
=latin1_general_ci
AUTO_INCREMENT=2 ;
INSERT INTO `menus` VALUES (1, 'Homepage', '/', 'header', 1, 'true');
And last but not least you need to add the following line at your
default html (eg. app/views/layout/default.thtml)
renderElement('menu'); ?&g
rked', '/');
}
}
}
add.thtml
formTag('/posts/add')?>
input('Post/title') ?>
input('Meta/tid') ?>
submit() ?>
I hope you understand my question and thanks for your time.
Cheers,
Johan Forngre
28 matches
Mail list logo